Skip to content

fix(android): saving a device reads a config.ini with spaces around = - #1379

Merged
V3RON merged 3 commits into
mainfrom
bug/1369
Nov 6, 2026
Merged

V3RON merged 3 commits into
mainfrom
bug/1369

Conversation

@V3RON

@V3RON V3RON commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1369

Status

Implement: done (1/1 green) Review: round 1, round 2, fix-check; 0 open Hardware: n/a Gate: not run
Next: gate

  • Saving an Android baseline succeeds when the AVD's config.ini has spaces around = (avdmanager's real format) — index-lifecycle.test.ts "spaces around" test, red before the fix, green after

Assumptions

none

Review

Spec review: 1 blocking, 1 fixed, 0 notes. Code review: 0 blocking, 0 fixed, 1 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 2. Tokens: 2.0M.
Runs: 10. Cost USD: 1.6974. Agent seconds: 643.
Assessment: complete

Written by an agent.

@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Android baseline source detection now uses iniValues to read the image path and device model from config.ini. A new test verifies that saving a device with spaces around the assignment operators succeeds and that the listed source has the expected image tag, model, and OS version.

Suggested reviewers: leonardoxr

Severity of issue fixed: Medium

Merge Risk: Minimal · up to 04e7a

The change addresses saving Android baselines from config.ini files with spaces around equals signs. No actionable merge-blocking risk remains after normal checks.

Architecture risk: Low · up to 04e7a

The change affects 1 system.

Changed systems: src

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — src (service) was modified; 2 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in src/drivers/android/index-lifecycle.test.ts: Added a test using spaced config.ini assignments and verifies that saveSource succeeds and the listed baseline source contains the expected image tag, model, and OS version.
  • observed — Modified behavior in src/drivers/android/seeds.ts: The avd-config.js import now includes iniValues.
  • observed — Modified behavior in src/drivers/android/seeds.ts: savedKindOf now obtains image.sysdir.1 and hw.device.name values through iniValues instead of matching literal key-value lines in the config text. The image path validation and "unknown" model fallback remain.
Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title describes the Android baseline saving fix for spaces around = in config.ini.
Description check Passed The description identifies the baseline saving fix and its test.
Linked Issues check Passed [#1369] savedKindOf uses iniValues to read the system image and device model with whitespace around =. The new saveSource test uses avdmanager-style entries and checks the saved baseline's ima…
Out of Scope Changes check Passed [#1369] The parser change and lifecycle test address Android baseline saving. Both changes are within scope.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Linked Issues check

Explanation

[#1369] savedKindOf uses iniValues to read the system image and device model with whitespace around =. The new saveSource test uses avdmanager-style entries and checks the saved baseline's image, model, and OS version.

Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 2 files.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

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: 8355960a-c487-4459-ae30-bd0f4d4430bd
Commits

Reviewing files that changed from the base of the PR and between ba6582d and 04e7aef.

Files selected for processing: 2

  • src/drivers/android/index-lifecycle.test.ts
  • src/drivers/android/seeds.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@V3RON

V3RON commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Review ledger

Round 1: 868c9fa
Round 2: 04e7aef
Round fix-check: 04e7aef

Runs: 10. Cost USD: 1.6974. Agent seconds: 643.
Tokens input 155, output 34770, cache read 2489392, cache write 316979.
- build implementer: claude-sonnet-5-5 57 s $0.1036
- audit implementer: claude-sonnet-5-5 34 s $0.1282
- review 1 reviewer: claude-sonnet-5-5 161 s $0.2752
- review 1 spec: claude-sonnet-5-5 10 s $0.0661
- review 1 code both: claude-opus-5-5 62 s $0.3032
- review 1 claims: claude-sonnet-5-5 18 s $0.0725
- fix 1 implementer: claude-sonnet-5-5 36 s $0.1038
- review 2 reviewer: claude-sonnet-5-5 36 s $0.1202
- review fix-check reviewer: claude-sonnet-5-5 164 s $0.2119
- review fix-check code behaviour: claude-opus-5-5 65 s $0.3127
Finding outcomes: {"fixed":1}. Classes: {"Simplest fix delivered differently":1}.
{"findings":[{"id":"R1","role":"spec","class":"Simplest fix delivered differently","outcome":"fixed","path":"src/drivers/android/seeds.ts","round":"1","fix":"04e7aef9e1841531a2a34556fc7cec3ff0ee4846"}]}

Written by an agent.

@V3RON

V3RON commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Review notes

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

  • code: src/drivers/android/avd-config.ts:86,139,165,198 older readers (config hash filter, mergeConfigIniLines, readDurableMark, isSeedHardwareLine) match key= with no spaces; untouched by this PR, no failure shown.

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review November 6, 2026 12:30
@V3RON
V3RON merged commit 5b0c552 into main Nov 6, 2026
57 checks passed
@V3RON
V3RON deleted the bug/1369 branch November 6, 2026 12:38
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.

Saving an Android baseline fails: config.ini has spaces around =

1 participant