feat: deploy.sh verify + frozen-path mock tests (#175) - #186
Merged
Conversation
Adds 'verify' subcommand that builds the .app, launches it, waits for startup, greps the runtime log for ERROR/exception/Traceback, kills the app, and reports PASS/FAIL. Closes t-20260629134158194290-58748-39 Co-Authored-By: Claude <noreply@anthropic.com>
- Test _get_app_version() fallback chain (metadata → pyproject.toml → '0.0.0') - Smoke test that all 7 core modules are importable - Catches missing --hidden-import and frozen-build-only import errors Ref: #174 — check_update() broken in frozen build Co-Authored-By: Claude <noreply@anthropic.com>
Owner
Author
Review Verdict: VERIFIED ✅Scope
Reviewed
Stage 1 — Correctness
Stage 2 — Adversarial
Minor Observation
Evidence
|
Owner
Author
|
VERIFIED Scope
Findings
Evidence
|
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.
What
Add
deploy.sh verifysubcommand for pre-PR build verification + expand frozen-path test coverage with version fallback and import smoke tests.How
TestGetAppVersion(3-tier fallback: metadata → pyproject.toml → '0.0.0') +TestImportSmoke(7 core module imports)Scope
follows plan — Task 1 (deploy.sh) + Task 2 (test_frozen_paths.py) + Task 5 (integration test)
Lessons
sys.frozen=True) exercise code paths never hit in dev mode — catches regression like [bug] check_update() broken in frozen (PyInstaller) build — importlib.metadata.version fails #174--hidden-importat unit-test level, no .app build neededCloses #175
Build Verification
./deploy.sh verifyPASS — log clean, no errors detecteduv run pytest tests/test_frozen_paths.py -v— 17/17 PASSuv run ruff check tests/test_frozen_paths.py— clean🤖 Generated with Claude Code