Skip to content

feat(android): android.emulator.cores sets the CPU cores of new emulators - #1767

Merged
V3RON merged 15 commits into
mainfrom
task/1740
Nov 19, 2026
Merged

V3RON merged 15 commits into
mainfrom
task/1740

Conversation

@V3RON

@V3RON V3RON commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1740

Status

Implement: done (5/5 green) Review: round 1 + 2 fix-checks, 1 claims finding fixed Hardware: pass (after 1 test-helper fix) Gate: not run
Next: gate

  • pnpm test:changed passes, with the B1, B2, B3 and B6 cases above. — build and audit runs (6 changed unit files, 119 passed); src/drivers/android unit project 736 passed after the main merge; CI Unit tests
  • pnpm typecheck and pnpm lint pass. — build and fix runs, pre-commit hooks; CI Static checks
  • Slow lane: scripts/slow-e2e.sh e2e/slow-android-smoke.test.ts -t "android.emulator.cores" passes (B4). — hardware verifier on ea6d11b, 3 pass, 4 min
  • website/src/content/docs/docs/reference/configuration.mdx lists android.emulator.cores and its note says only new devices get it; website/src/content/docs/docs/worker/configuration.mdx has the task row. — claims fix-check on de0859d verified the row and note against seeds.ts and the lease resolver

Feature #1737 Completion conditions:

  • On a worker with android.emulator.cores: 2, a new Android lease's device prints 2 for adb shell nproc and booted from its snapshot: the daemon log has no snapshot-cold-boot diagnostic for it. — slow-lane android.emulator.cores flow (B4), pass on ea6d11b
  • On a worker upgraded with the setting unset, no seed is listed stale and none is made again. — B3 cases "made unset, now unset" and "headless: true, fingerprint equal to today's" in src/drivers/android/index-image-fit.test.ts
  • simlock config set android.emulator.cores with 0, -1, 2.5 or abc exits 2 and writes nothing. — B1 cases in src/cli/index-device-config.test.ts
  • After the setting changes, a seed made before it is listed stale with android.emulator launch settings changed and is made again at the next lease of its kind. A baseline made before it is listed stale with the same reason, and a lease naming it is refused. — B3 cases in src/drivers/android/index-image-fit.test.ts
  • A baseline saved after the change from a device made before it boots its leases with the new core count. — B6 cases (driver harness) and the baseline half of the slow-lane flow (B4)
  • The configuration reference lists android.emulator.cores with its type, default and meaning, says that only new devices get it, and says that seeds are made again and older baselines go stale. — reference/configuration.mdx row and note, verified by the claims fix-check on de0859d

Assumptions

none

Review

Spec review: 0 blocking, 0 fixed, 2 notes. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 1 blocking, 1 fixed, 0 notes.
Rounds: 1. Tokens: 2.9M.
Runs: 14. Cost USD: 4.0647. Agent seconds: 2453.

Assessment: complete

Written by an agent.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: d78e8456-23ba-431d-a49e-a7e5b0578227
Commits

Reviewing files that changed from the base of the PR and between 97ba26d and ea6d11b.

Files selected for processing: 17

  • e2e/slow-android-smoke.test.ts
  • src/cli/index-device-config.test.ts
  • src/core/index.ts
  • src/drivers/android/AGENTS.md
  • src/drivers/android/avd-config.test.ts
  • src/drivers/android/avd-config.ts
  • src/drivers/android/definition.test.ts
  • src/drivers/android/definition.ts
  • src/drivers/android/device-table.test.ts
  • src/drivers/android/index-image-fit.test.ts
  • src/drivers/android/index-profiles-components.test.ts
  • src/drivers/android/index.ts
  • src/drivers/android/seeds.ts
  • src/drivers/android/test-seed-harness.ts
  • src/drivers/android/test-seeds.ts
  • website/src/content/docs/docs/reference/configuration.mdx
  • website/src/content/docs/docs/worker/configuration.mdx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@V3RON

V3RON commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Review ledger

Round 1: cad1162
Round fix-check: de0859d
Round fix-check: ea6d11b

Runs: 14. Cost USD: 4.0647. Agent seconds: 2453.
Tokens input 348, output 79264, cache read 10737674, cache write 705828.
- build implementer: claude-sonnet-5-5 621 s $1.3338
- audit implementer: claude-sonnet-5-5 61 s $0.2073
- fix implementer: claude-sonnet-5-5 171 s $0.2259
- review 1 reviewer: claude-sonnet-5-5 263 s $0.1951
- review 1 spec: claude-sonnet-5-5 43 s $0.1822
- review 1 code behaviour: claude-opus-5-5 177 s $0.8663
- review 1 claims: claude-sonnet-5-5 39 s $0.1659
- fix 1 implementer: claude-sonnet-5-5 33 s $0.1024
- review fix-check reviewer: claude-sonnet-5-5 89 s $0.1037
- hardware hardware-verifier: claude-sonnet-5-5 173 s $0.0976
- review fix-check claims: claude-sonnet-5-5 42 s $0.1574
- hardware-fix implementer: claude-sonnet-5-5 401 s $0.2195
- hardware hardware-verifier: claude-sonnet-5-5 300 s $0.0972
- review fix-check reviewer: claude-sonnet-5-5 40 s $0.1104
Finding outcomes: {"fixed":1,"nonblocking":1}. Classes: {"architecture 13 doc claim made false":1,"testing 2 weak fingerprint assertion":1}.
{"findings":[{"id":"R1","role":"claims","class":"architecture 13 doc claim made false","outcome":"fixed","path":"website/src/content/docs/docs/reference/configuration.mdx","round":"1","fix":"de0859d0b8df1c789c4c33f02e5b7328b97912e2"},{"id":"R2","role":"code","class":"testing 2 weak fingerprint assertion","outcome":"nonblocking","path":"src/drivers/android/index-image-fit.test.ts","round":"1"}]}

Written by an agent.

@V3RON

V3RON commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Review notes

Not blocking, not verified. Each is one reviewer's claim.

  • spec: website/src/content/docs/docs/worker/configuration.mdx:104 task row reads "Give new Android emulators fewer CPU cores", not the spec's wording; wording only
  • spec: src/drivers/android/AGENTS.md rewords two lines unrelated to cores (destroyLegacy and -crash-report-mode) to stay under the manual's size cap; nothing a user sees changes
  • code: src/drivers/android/index-image-fit.test.ts:236-272 compares the headless: true fingerprint with itself under the same code, so a changed fingerprint would stay green (R2, nonblocking)

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review November 19, 2026 13:11
@V3RON
V3RON merged commit f0339a9 into main Nov 19, 2026
67 of 69 checks passed
@V3RON
V3RON deleted the task/1740 branch November 19, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android: android.emulator.cores sets the cores of new emulators and baselines

1 participant