Repository navigation
Conversation
… the Android driver (#1597)
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Low Merge Risk:
|
Decision takenQuestion. B9 says the worker composition carries Options.
Why A. It is closest to the code today. #1595 left its sibling line, Reverting. Add a composition-level test as a new task. No code changes. Written by an agent. |
… advises with none when no host-CPU image exists; the context field is androidDefaultImageTag (#1597)
Review ledgerRound 1: 8a973f1 {"findings":[{"id":"R1","role":"spec","class":"advisory text differs from I5 exact message","outcome":"fixed","path":"src/drivers/android/index.ts","round":"1","fix":"0640d5f37201adc969b9a507975dc220bae8adae"},{"id":"R2","role":"code","class":"no host-CPU image must advise with none","outcome":"fixed","path":"src/drivers/android/index.ts","round":"1","fix":"0640d5f37201adc969b9a507975dc220bae8adae"},{"id":"R3","role":"code","class":"context field name androidDefaultImageTag","outcome":"fixed","path":"src/daemon/driver-discovery.ts","round":"1","fix":"0640d5f37201adc969b9a507975dc220bae8adae"}]}Written by an agent. |
…'s CRAP score passes (#1597)
…ateway ranks by it (#1615) Closes #1596 ### Status Implement: done (419 files, 6891 tests green) Review: passed (round 1, round 2, fix-check, maintainer-directed fix-check; 5 fixed); ADR 0078 flip 80ea461 verified by: coordinator Hardware: n/a Gate: running for the stack Next: merge-pr.sh 1615 ## Assumptions - Assumption: which levels count as warm for a tagless request on a defaulting worker — the newest level with a host-CPU image of the tag for a request naming a model, any installed level for one naming none; with `--os` the named level is kept (revised by review R2 and R3). - Assumption: how the gateway knows the worker's CPU image — `hostAbiOf` in `request-match.ts` repeats the driver's `hostAbiFor` rule (arm64 is `arm64-v8a`, anything else `x86_64`), since the gateway cannot import the driver; a view with no `host` counts every image, as before. ## Review Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 4 blocking, 4 fixed, 1 notes. Claims review: 1 blocking, 1 fixed, 0 notes. Rounds: 2. Tokens: 10.4M. Runs: 17. Cost USD: 5.8831. Agent seconds: 2299. Assessment: complete ## Done when - [x] `pnpm test:changed` passes, with the B6, B7, B8 and B11 tests among the tests it runs. — ran on head 80ea461: 419 files, 6891 tests passed; the B6 test is in `src/daemon/dispatcher.test.ts`, B7 in `src/gateway/routing/stages/warm-hit.test.ts`, B8 in `src/cli/index-catalog-components.test.ts`, B11 in `src/gateway/aggregate-catalog.test.ts`. - [x] `pnpm --dir website install && pnpm --dir website build && node website/scripts/check-openapi.mjs` passes. — ran on head 80ea461: 92 pages built, `check-openapi: 45 operations, 12 tags: ok`. - [x] `PROTOCOL_VERSION_RANGE.max` is one above #1595's, and `min` is unchanged. — `src/contract/protocol.ts:13` is `{ min: 89, max: 91 }` here; `origin/task/1595` has `{ min: 89, max: 90 }`. - [x] `routing.mdx` says a gateway ranks a tagless Android lease by each worker's default tag. `runtimes-and-images.mdx` shows the catalog's `Default image tag` line and when a gateway prints it. — read in `website/src/content/docs/docs/gateway/routing.mdx` and `website/src/content/docs/docs/worker/runtimes-and-images.mdx`; the website build above passes. ### Feature #1590 completion conditions - [x] On a worker with API 36 `google_apis_playstore`, API 37 `google_apis` and `android.defaultImageTag: google_apis_playstore`, `simlock lease --platform android --device "Pixel 9"` grants a Pixel 9 on API 36 whose spec names `google_apis_playstore`. — #1595 (PR #1609): `src/leasing/lease-acquisition-default-image-tag.test.ts` (B1), green in `pnpm test:changed`. - [x] On the same worker, `--os 37` grants API 37 with no tag, and a Pixel 6 lease grants what it grants without the setting. — #1595: same file (B2). - [x] On a worker without the setting, every lease in the Examples table gets its Today result. — #1595: same file (B3, setting unset). - [x] A request that names `--image-tag`, a baseline or `--physical` gets the same result with and without the setting. — #1595: same file (B3). - [x] A configured warm target for Pixel 9 with no tag, on that worker, keeps a Pixel 9 on API 36 with `google_apis_playstore` warm. — #1595: `src/leasing/create-leasing-warm-targets.test.ts` (B4). - [x] Through a gateway, a tagless Pixel 9 lease goes to the worker that has a ready Pixel 9 on 36 with `google_apis_playstore` when another worker has only free capacity. — #1596 (this PR): `src/gateway/routing/stages/warm-hit.test.ts` (B7). - [x] `simlock catalog --platform android` prints `Default image tag: google_apis_playstore` on that worker, and no such line on a worker without the setting. Through a gateway it prints the line only when every Android worker reports the same tag. — #1596: `src/cli/index-catalog-components.test.ts` (B8), `src/daemon/dispatcher.test.ts` (B6), `src/gateway/aggregate-catalog.test.ts` (B11). - [x] `simlock doctor` reports `default-image-tag-not-installed` when no installed image for the machine's CPU has the tag, and nothing for the setting when one does or the setting is unset. — #1597 (PR #1616): `src/drivers/android/index-profiles-components.test.ts` (B9) and `src/daemon/driver-discovery.test.ts`, green in `pnpm test:changed`. - [x] On an arm64 worker whose only image with the tag is x86_64, a tagless lease gets what it gets without the setting. — #1595: `src/drivers/android/catalog.test.ts` (B10) and the leasing file above (B2). - [x] A value that is not an image tag stops the config load with the message in I1. — #1595: `src/core/config-platform-and-driver-settings.test.ts` (B5). *Written by an agent.*
Closes #1597
Status
Implement: done (2/2 green; Fallow fix 74b99a8) Review: passed (round 1, round 2, fix-check; 3 fixed) Hardware: n/a Gate: waiting for the stack
Next: in the #1590 stack above #1609
Assumptions
none
Done when
pnpm test:changedpasses, with the B9 test among the tests it runs. — audit run at 8a973f1 (run: pass); review round 2 re-ranindex-profiles-components.test.ts(25) anddriver-discovery.test.ts(36) at 0640d5fpnpm --dir website install && pnpm --dir website build && node website/scripts/check-openapi.mjspasses. — audit run at 8a973f1 (Done when walk 3/3)troubleshooting.mdxlistsdefault-image-tag-not-installed, what it means and how to fix it (install the image withsdkmanager, or correct the setting). —website/src/content/docs/docs/worker/troubleshooting.mdx, cause text matched to I5's message in review round 2Review
Spec review: 4 blocking, 4 fixed, 0 notes. Code review: 3 blocking, 3 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 2. Tokens: 7.5M.
Runs: 8. Cost USD: 1.9311. Agent seconds: 815.
Assessment: complete
Written by an agent.