Skip to content

Add basic tests for macOS app bundle codesigning#7187

Merged
rokm merged 2 commits intopyinstaller:developfrom
rokm:macos-bundle-codesign-tests
Oct 25, 2022
Merged

Add basic tests for macOS app bundle codesigning#7187
rokm merged 2 commits intopyinstaller:developfrom
rokm:macos-bundle-codesign-tests

Conversation

@rokm
Copy link
Copy Markdown
Member

@rokm rokm commented Oct 25, 2022

Implement basic tests for macOS app bundle signing, to hopefully prevent regressions in basic relocation functionality, like the one caused by typo in #7180 (see #7184, #7185).

Add an option to turn the codesign error when signing the generated app bundle into fatal error, so we can catch it on the CI.

Add basic tests that:

Also sneak in a news fragment for #7184, so that the changelog for hotfix release will make note of it.

rokm added 2 commits October 25, 2022 13:32
If PYINSTALLER_STRICT_BUNDLE_CODESIGN_ERROR is set and its value
is different from 0, the error coming from codesign when trying
to sign the bundle will raise an error instead of just displaying
the warning. Intended for use in our CI.
The tests enable strict bundle signing error handling, and verify
three scenarios (using psutil as the test package):
 - we collect metadata for the test package, to ensure it is
   properly relocated
 - we collect the test package as .py files, which are not
   relocated
 - we collect the test package as .pyc files, which are not
   relocated
@rokm rokm merged commit 3b07670 into pyinstaller:develop Oct 25, 2022
@rokm rokm deleted the macos-bundle-codesign-tests branch October 25, 2022 13:45
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants