Repository navigation
test(adb): cover staged APK names and evidence identity - #4354
Conversation
# Conflicts: # tests/boundary/cli/adbCli.test.ts
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Low impact] The PR appears safe to merge. SummaryStrengthens the adb reinstall test without changing production code.
No actionable defects or new security issues were found. Tests were not run during this review. The local diff retains coverage beyond the upstream fix; live supersession and discussion checks were blocked by missing GitHub authentication. Reviews (1) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile |
|
lgtm |
Summary
Strengthen the adb reinstall CLI regression for a staged APK whose basename contains spaces. The simulated adb compares each consumed snapshot's bytes to the caller file; assertions check the preserved basename, caller path/size/SHA-256 in Evidence, unique snapshot directories and cleanup. Fresh/replacement/fresh ordering, exact
-rchoices andreplaced: nullremain covered.Upstream
1b97b0falready fixed the stale original-path expectation. After merging main8ab5024, this PR retains only the additional filename/Evidence identity coverage instead of duplicating that fix. Conflict resolution keeps upstream's per-install byte comparison and snapshot-cleanup checks.One test file; no production, workflow, timeout, retry or skip changes. The fake adb does not contact a device.
Executed evidence
Synchronized head:
f0c8c89. Pinned Windows Node 24.18.0/npm 11.16.0, matching locked dependencies.npm run test:focused -- tests/boundary/cli/adbCli.test.ts: 10 passed / 2 existing POSIX cases skipped. The enhanced reinstall case is one of the platform skips; it is not locally verified. No Linux WSL distribution is available.npm run check: 6/6 tasks and architecture guards passed.git diff --checkpassed.No real device/install behavior is claimed. The human owner explicitly declared initial readiness after reviewing the final scope and validation evidence.
Author readiness
Human owner: @ShuaixinHuang
Before merge