Skip to content

test(android): read the install-timeout fixture from the helper manifest fixture - #2627

Closed
thymikee wants to merge 1 commit into
mainfrom
fix/android-snapshot-helper-install-fixture
Closed

thymikee wants to merge 1 commit into
mainfrom
fix/android-snapshot-helper-install-fixture

Conversation

@thymikee

Copy link
Copy Markdown
Member

Summary

pnpm typecheck is red on main at 2cafab3ad0, so Typecheck & Package fails for every open PR. #2618 removed installArgs from AndroidSnapshotHelperManifest and updated the shared helper fixture, the packaging script and the parse test — but snapshot-helper-install.test.ts kept a second hand-written manifest literal with the field still in it, which is an excess property on a type that no longer declares it.

Both tests in that file re-hash the manifest for the APK they write, so the identity fields carried no test intent. They now come from ANDROID_SNAPSHOT_HELPER_FIXTURE_ARTIFACT the way every other helper test reads it, which is also the reason a second copy cannot drift from the type again. The one case that needs a manifest carrying installArgs is the parse path that ignores it, and that case already spells the key inline in snapshot-helper.test.ts:913.

One file, +4/-15, test-only. This unblocks the gate for the open PRs, including #2607 and #2610.

Validation

Tested at f737dee6c6.

  • pnpm check:affected --run green: format:check, lint, tsc -b across all 24 projects (the check that is red on main), check:layering, check:fallow --base origin/main, vitest related.
  • snapshot-helper-install.test.ts and snapshot-helper.test.ts: 26 tests passed.
  • No production code or behaviour touched, so no runtime or device validation applies.

…est fixture

#2618 removed `installArgs` from `AndroidSnapshotHelperManifest` and updated the shared helper
fixture, the packaging script and the parse test, but this file kept its own hand-written manifest
literal with the field still in it, which is what `tsc` rejects on main today's tip: an excess
property on a type that no longer declares it. A second copy of the manifest is also how that field
survived this long.

Both tests re-hash the manifest for the APK they write, so the identity fields carry no test
intent; they now come from `ANDROID_SNAPSHOT_HELPER_FIXTURE_ARTIFACT` like every other helper test.
The one case that still needs a manifest carrying `installArgs` is the parse path that ignores it,
and that case spells the key out inline in `snapshot-helper.test.ts`.
@github-actions

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
Installed (including dependencies) 4.56 MB 4.56 MB 0 B
Package (unpacked) 4.56 MB 4.56 MB 0 B
Package (download) 1.35 MB 1.35 MB +7 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 27.7 ms 27.2 ms -0.5 ms
CLI --help 78.0 ms 78.0 ms +0.0 ms

@thymikee

Copy link
Copy Markdown
Member Author

Closed: #2625 landed the same fix on main (snapshot-helper-install.test.ts no longer carries installArgs) and Typecheck & Package is green at aba54b4cc6, so there is nothing left for this PR to unblock.

@thymikee thymikee closed this Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant