Repository navigation
feat(leasing): an Android worker tries its default image tag first (#1595) - #1609
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 28 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Contributor
Author
Review ledgerRound 1: 83a3cd2 {"findings":[{"id":"R1","role":"code","class":"protocol widen breaks min-based fixture test","outcome":"fixed","path":"e2e/physical-enrollment.test.ts","round":"1","fix":"ea4bec199563be84610e255a6a886ad6c9eb4ac0"},{"id":"R2","role":"code","class":"testing 1","outcome":"fixed","path":"src/gateway/service-worker-protocol.test.ts","round":"1","fix":"ea4bec199563be84610e255a6a886ad6c9eb4ac0"},{"id":"R3","role":"code","class":"testing 2","outcome":"fixed","path":"src/leasing/lease-acquisition-default-image-tag.test.ts","round":"1","fix":"ea4bec199563be84610e255a6a886ad6c9eb4ac0"},{"id":"R4","role":"spec","class":"B3 baseline and physical cases unproven","outcome":"duplicate","canonicalId":"R3","path":"src/leasing/lease-acquisition-default-image-tag.test.ts","round":"1"},{"id":"R5","role":"claims","class":"architecture 13","outcome":"fixed","path":"src/core/config-validators.ts","round":"1","fix":"ea4bec199563be84610e255a6a886ad6c9eb4ac0"}]}Written by an agent. |
Contributor
Author
Review notesNot blocking, not verified. Each is one reviewer's claim.
Written by an agent. |
V3RON
marked this pull request as ready for review
November 16, 2026 15:13
This was referenced Nov 16, 2026
V3RON
added a commit
that referenced
this pull request
Nov 16, 2026
…mage tag (#1616) 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 - [x] `pnpm test:changed` passes, with the B9 test among the tests it runs. — audit run at 8a973f1 (`run: pass`); review round 2 re-ran `index-profiles-components.test.ts` (25) and `driver-discovery.test.ts` (36) at 0640d5f - [x] `pnpm --dir website install && pnpm --dir website build && node website/scripts/check-openapi.mjs` passes. — audit run at 8a973f1 (Done when walk 3/3) - [x] `troubleshooting.mdx` lists `default-image-tag-not-installed`, what it means and how to fix it (install the image with `sdkmanager`, or correct the setting). — `website/src/content/docs/docs/worker/troubleshooting.mdx`, cause text matched to I5's message in review round 2 ## Review 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.*
V3RON
added a commit
that referenced
this pull request
Nov 16, 2026
…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.*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1595
Status
Implement: done (6/6 green) Review: passed (round 1, round 2; 4 fixed, R4 duplicate) Hardware: n/a Gate: waiting for the stack
Next: joins the #1590 stack; #1596 and #1597 build on it
Assumptions
taggedRefusals) for both the misfit and the foreign-CPU case, since leasing sees the same missing-runtime refusal; the CPU rule itself is proved in the B10 catalog test.min, not by moving both ends, sinceminstays by spec.Done when
pnpm test:changedpasses, with the B1–B5 and B10 tests among the tests it runs. — audit run at 83a3cd2 (6876 tests) and fix run at ea4bec1; the two daemon files that also fail on the merge-base are flaky: lease-files and relay-gateway-files tests answer 422 instead of 201 on a clean base #1613pnpm --dir website install && pnpm --dir website build && node website/scripts/check-openapi.mjspasses. — audit run at 83a3cd2PROTOCOL_VERSION_RANGE.maxis one abovemain's, andminis unchanged. —src/contractrange is {89, 90}; review round 1 confirmed the spec's range is delivered as writtenconfiguration.mdxlistsandroid.defaultImageTag.choosing-a-device.mdxsays what a tagless Android lease gets with and without it: the host-CPU rule, that Play Store images refuseadb root, and--image-tag google_apisfor a lease that needs it. The MCPleasetool's description says the worker's default applies whenimageTagis omitted. — audit Done when walk 4/4; claims review round 1 raised nothing on these pagesReview
Spec review: 1 blocking, 1 fixed, 0 notes. Code review: 3 blocking, 3 fixed, 1 notes. Claims review: 1 blocking, 1 fixed, 0 notes.
Rounds: 2. Tokens: 4.1M.
Runs: 8. Cost USD: 5.2759. Agent seconds: 2208.
Assessment: complete
Rejected:
src/daemon/server-roles.test.ts:663previous-protocol fixture overlaps the widened range — [incorrect] its {min-2, min-1} = {87, 88} still has no overlap with {89, 90}Written by an agent.