Repository navigation
Conversation
…bounded like an image tag (#1596)
|
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 6 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. |
Decision takenQuestion. Should the gateway rank a tagless Android lease that names a baseline by the worker's default image tag? B7 does not say. The code skips the default for such a request (the Options.
Why A. It matches the worker's behaviour from #1595 and the code as written. It is the smallest change to undo. What it takes. B7 now has the case "a request that names a baseline ranks as today", and the next fix run pins it in Written by an agent. |
…fault image tag (#1596)
…he newest level with an image of it, else as it came (#1596)
…worker's CPU when ranking a tagless Android request (#1596)
Review ledgerRound 1: 72315ba {"findings":[{"id":"R1","role":"code","class":"spec I4 fallback to request as it came missing","outcome":"fixed","path":"src/gateway/routing/request-match.ts","round":"1","fix":"efc335a99df22897d24bcd21c2fd0ca365b6fcee"},{"id":"R2","role":"code","class":"spec I4 any paired level, not tag levels","outcome":"fixed","path":"src/gateway/routing/request-match.ts","round":"1","fix":"efc335a99df22897d24bcd21c2fd0ca365b6fcee"},{"id":"R3","role":"code","class":"spec I4 fallback ignores host CPU images","outcome":"fixed","path":"src/gateway/routing/request-match.ts","round":"2","fix":"e5d03cc10d249c6f3b45de89dacffa8993904d1a"},{"id":"R4","role":"claims","class":"routing.mdx newest level false for model-less request","outcome":"fixed","path":"website/src/content/docs/docs/gateway/routing.mdx","round":"2","fix":"e5d03cc10d249c6f3b45de89dacffa8993904d1a"},{"id":"R5","role":"code","class":"testing 3","outcome":"fixed","path":"src/gateway/routing/stages/warm-hit.test.ts","round":"fix-check","fix":"5a781b8775d35693e9deb1428f043551c947096c"}]}Written by an agent. |
…rm64 host and a baseline request are pinned (#1596)
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
--osthe named level is kept (revised by review R2 and R3).hostAbiOfinrequest-match.tsrepeats the driver'shostAbiForrule (arm64 isarm64-v8a, anything elsex86_64), since the gateway cannot import the driver; a view with nohostcounts 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
pnpm test:changedpasses, 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 insrc/daemon/dispatcher.test.ts, B7 insrc/gateway/routing/stages/warm-hit.test.ts, B8 insrc/cli/index-catalog-components.test.ts, B11 insrc/gateway/aggregate-catalog.test.ts.pnpm --dir website install && pnpm --dir website build && node website/scripts/check-openapi.mjspasses. — ran on head 80ea461: 92 pages built,check-openapi: 45 operations, 12 tags: ok.PROTOCOL_VERSION_RANGE.maxis one above Android leases that name no image tag get the worker's android.defaultImageTag where it fits #1595's, andminis unchanged. —src/contract/protocol.ts:13is{ min: 89, max: 91 }here;origin/task/1595has{ min: 89, max: 90 }.routing.mdxsays a gateway ranks a tagless Android lease by each worker's default tag.runtimes-and-images.mdxshows the catalog'sDefault image tagline and when a gateway prints it. — read inwebsite/src/content/docs/docs/gateway/routing.mdxandwebsite/src/content/docs/docs/worker/runtimes-and-images.mdx; the website build above passes.Feature #1590 completion conditions
google_apis_playstore, API 37google_apisandandroid.defaultImageTag: google_apis_playstore,simlock lease --platform android --device "Pixel 9"grants a Pixel 9 on API 36 whose spec namesgoogle_apis_playstore. — Android leases that name no image tag get the worker's android.defaultImageTag where it fits #1595 (PR feat(leasing): an Android worker tries its default image tag first (#1595) #1609):src/leasing/lease-acquisition-default-image-tag.test.ts(B1), green inpnpm test:changed.--os 37grants API 37 with no tag, and a Pixel 6 lease grants what it grants without the setting. — Android leases that name no image tag get the worker's android.defaultImageTag where it fits #1595: same file (B2).--image-tag, a baseline or--physicalgets the same result with and without the setting. — Android leases that name no image tag get the worker's android.defaultImageTag where it fits #1595: same file (B3).google_apis_playstorewarm. — Android leases that name no image tag get the worker's android.defaultImageTag where it fits #1595:src/leasing/create-leasing-warm-targets.test.ts(B4).google_apis_playstorewhen another worker has only free capacity. — A worker's catalog names its default image tag, and a gateway ranks and shows it #1596 (this PR):src/gateway/routing/stages/warm-hit.test.ts(B7).simlock catalog --platform androidprintsDefault image tag: google_apis_playstoreon 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. — A worker's catalog names its default image tag, and a gateway ranks and shows it #1596:src/cli/index-catalog-components.test.ts(B8),src/daemon/dispatcher.test.ts(B6),src/gateway/aggregate-catalog.test.ts(B11).simlock doctorreportsdefault-image-tag-not-installedwhen no installed image for the machine's CPU has the tag, and nothing for the setting when one does or the setting is unset. — simlock doctor warns when no installed image has the default image tag #1597 (PR feat(android): doctor warns when no installed image has the default image tag #1616):src/drivers/android/index-profiles-components.test.ts(B9) andsrc/daemon/driver-discovery.test.ts, green inpnpm test:changed.src/drivers/android/catalog.test.ts(B10) and the leasing file above (B2).src/core/config-platform-and-driver-settings.test.ts(B5).Written by an agent.