Skip to content

test(adb): cover staged APK names and evidence identity - #4354

Merged
N0zoM1z0 merged 2 commits into
morluto:mainfrom
ShuaixinHuang:codex/test-adb-staged-install-identity
Oct 16, 2026
Merged

N0zoM1z0 merged 2 commits into
morluto:mainfrom
ShuaixinHuang:codex/test-adb-staged-install-identity

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

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 -r choices and replaced: null remain covered.

Upstream 1b97b0f already fixed the stale original-path expectation. After merging main 8ab5024, 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 --check passed.
  • Prior-head Linux CI had shared browser cancellation/discovery failures; current main contains those fixes and they passed local regression checks. Current-head Linux CI passed, including all five shards and the required aggregate. Shard 5/5 executed adbCli.test.ts: 12/12 passed, including the enhanced reinstall case.

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

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • Focused staged-input filename and Evidence identity coverage, extending the merged upstream fix.
  • Existing install-mode and uncertainty assertions retained; no workflow or skip weakened.
  • Executed validation and unavailable POSIX/device coverage reported.
  • Human owner declares initial readiness.
  • Changed POSIX scenario and required current-head CI pass.

@ShuaixinHuang ShuaixinHuang changed the title test(adb): verify staged APK identity in reinstall CLI coverage test(adb): cover staged APK names and evidence identity Oct 16, 2026
@ShuaixinHuang
ShuaixinHuang marked this pull request as ready for review October 16, 2026 06:40
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T06:43:43.330165Z f0c8c89 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Strengthens the adb reinstall test without changing production code.

  • The staged APK test checks spaced names and receipt identity.

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

@N0zoM1z0

Copy link
Copy Markdown
Collaborator

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants