Repository navigation
Check packaged macOS startup in PR CI - #324
Open
JuergenFleiss wants to merge 3 commits into
Open
JuergenFleiss wants to merge 3 commits into
JuergenFleiss wants to merge 3 commits into
Conversation
CI builds the app with PyInstaller on macOS 15 (no signing secrets) and starts the same build on macOS 15 and 27. A process that stays alive is no longer enough: the check needs "aTrain startup ready", printed after the deferred engine imports and the main page are complete, and fails on "aTrain startup failed" or a traceback. The splash screen retries the deferred import when torch loaded but aTrain_core.transcribe failed, instead of skipping it on the next visit.
On macOS 27 the first launch was still building matplotlib's font cache after 60 s, so the check failed although the app was starting. Poll once a second for up to 5 minutes, stop at the ready or failure line or when the app exits, then wait 5 s so a crash right after "ready" still fails.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Check packaged macOS startup on pull requests, so a broken bundle fails before merge instead of at release time.
aTrain startup ready, which the main page prints after the deferred engine imports and the page construction are complete. It fails onaTrain startup failedor a traceback.aTrain_core.transcribefailed. Before, the presence of torch skipped the import.The release workflow keeps its own startup checks: they run on the Developer ID build with the hardened runtime, which this ad-hoc build does not have.
References
Split out of #323.
Screenshots / Examples
Verification Steps
uv run --no-sync pytest tests/unit/test_macos_startup.pyruns the CI step bodies against stubbedscript/sleep(12 cases).uv run --no-sync pytest tests/ui/test_startup_readiness.py(needs the GUI stack).macOS startup (macOS 15)andmacOS startup (macOS 27)jobs on this PR.Once merged, add both job names to the required checks for
develop.