Repository navigation
Conversation
…device.hash2 is added to config.ini
Decision takenQuestion. Dropping Options.
Why 1. It is the triage's agreed fix, closest to today's code, and the cost is one rebuild per device, once. Library-profile AVDs (the default Pixel 9) are not affected: they have no Reverting. A fix run on this PR (or a new task after merge) adds the old-hash acceptance next to Written by an agent. |
Review notesNot blocking, not verified. Each is one reviewer's claim.
Written by an agent. |
Review ledgerRound 1: 32b3524 {"findings":[{"id":"R1","role":"code","class":"upgrade rebuilds baselines once","outcome":"intentional","path":"src/drivers/android/index.ts","round":"1"},{"id":"R2","role":"code","class":"testing 3 other hw.device keys unproven","outcome":"nonblocking","path":"src/drivers/android/index.test.ts","round":"1"}]}Written by an agent. |
|
Maintainer confirmed the decision above: the one-time wipe after the upgrade is accepted, with no hash-version migration. The fix shipped in #1147. Written by an agent. |
… ones, and driver tests replay recorded tool output (#1947) ## Why In 6 weeks, people found 58 product bugs by using the product. 26 were a real tool behaving unlike its hand-written fake. Nothing held the two fake drivers to the real ones, and 172 test files rest on them. ## What - `driverContract(name, options)` (`src/core/test-driver-contract.ts`): 24 cases covering resolve, catalog, components, the lifecycle through a baseline save, physical refusals, the lease environment and passthrough. It runs on `FakeDriver` and the out-of-process fake for both platforms in the unit lane. `src/drivers/driver-contract-real.test.ts` runs it on the real drivers, tagged `slow` and gated on `SIMLOCK_DRIVER_CONTRACT`. - `FakeDriver` fixed where the real drivers agree: a device no boot has started is `stopped`, running devices are listed as processes, and a phone's lease environment names the phone. - `RecordingProcessRunner` writes argv, exit code, stdout, stderr and the AVD `config.ini` files, one file per tool version. Seeded with deviceless output: Xcode 27.2, adb 37.0.0, emulator 36.5.11 and 36.1.9, cmdline-tools 20.0. - `recording-diff.config.ts` holds every scripted answer in `src/drivers/**` to the recordings. The Android launch tests replay the recorded `emulator -help`. ## Proof ``` contract on the 4 fakes: 24 cases, 92 runs (passthrough on the e2e fake only) FakeDriver: 4 divergences, fixed; e2e fake: 4, fixed (no past bug matches one) each of the 35 new tests fails with the one line it guards removed or changed recording diff, src/drivers/** at head: 1,570 tests, 0 findings replay at past commits (diff run or parser on today's recording): #1199 parent of #1232: 71 tests red (emulator 36.1.9 lacks -crash-report-mode) #1199 at #1186, which added the flag: 71 red #1297 parent of #1304: 71 red #1048 parent of #1147: config hash changes after avdmanager rewrites another AVD's config.ini (red); at #1147 unchanged (green) #1296: the recording holds `Invalid device` exit 148, but nothing says the driver must drop the row: not counted of the 26: replayed red 3; estimated 5 with the real-driver contract nightly (+#1369, #1714 baseline saves; not run) unit lane added: 0.03-0.04 s of test bodies, ~1.3 s import for the 5 files ``` Not verified: the real-driver contract (no device run). Whether a booted emulator writes `key = value` (#1369): neither `avdmanager` 19.0 nor 20.0 does. ## Review Spec review: skipped. Code review: 9 blocking, 9 fixed, 0 notes. Claims review: 1 blocking, 1 fixed, 0 notes. Rounds: 3. Tokens: 7.8M. Assessment: complete *Written by an agent.*
Closes #1048
Status
Implement: done (1/1 green, audit probed 1/1) Review: round 1 passed on 32b3524, 0 blocking Hardware: n/a Gate: not run
Decision taken: upgrade wipe accepted, no migration (pending the maintainer)
Next: gate
avdmanageradds that changes nothing about the emulator's hardware (hw.device.hash2) is not part of the hash. — "restores the clean baseline on a standard reclaim after a hw.device.hash2 line is added to config.ini" (src/drivers/android/index.test.ts), red with the#avdConfigfilter removed (audit and review probes)Assumptions
hw.device.hash2wipe once after upgrade — accepted, as the triage's agreed fix does and the## Decisionon Creating a new Android emulator makes every existing one wipe on its next reclaim #1048 confirms; a hash-version migration would add code for a one-time rebuild.Review
Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 0 blocking, 0 fixed, 2 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 1. Tokens: 41.6M.
Runs: 6. Cost USD: 1.1771. Agent seconds: 494.
Assessment: complete
Written by an agent.