Repository navigation
test(tooling): use value fixtures for mobile release renderers - #134293
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 1:06 PM ET / 17:06 UTC. ClawSweeper reviewWhat this changesThe PR replaces selected Android and iOS release-renderer test fixtures with direct version values and in-memory changelog text. Merge readinessKeep open. The introduced test-only cleanup preserves the renderer contracts and leaves filesystem-backed resolution and CLI coverage in place; the fresh PR also carries the protected Priority: P3 Review scores
Verification
How this fits togetherMobile release tooling resolves platform version metadata and renders Android properties or release notes. The changed tests cover pure rendering behavior, while other tests continue to exercise filesystem resolution and CLI entry points. flowchart LR
A[Version metadata] --> B[Version resolver]
B --> C[Android and iOS renderers]
D[Platform changelog text] --> C
C --> E[Release properties and notes]
F[Focused unit tests] --> C
G[Filesystem and CLI tests] --> B
Before merge
Agent review detailsSecurityNone. PR surfaceTests -50. Total -50 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the direct-value cases for pure rendering and retain the existing fixture-backed tests for file resolution, synchronization, and CLI behavior. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes test setup rather than addressing a reported runtime failure. Is this the best way to solve the issue? Yes. The Android renderers explicitly accept minimal values, and explicit iOS resolution preserves the real revision encoder without filesystem reads; retained tests cover the file-backed paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d147d40f4f1c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer review completed. The latest ClawSweeper review has no actionable findings or rank-up change; its remaining action is ordinary maintainer handling with exact-head checks. All 59 focused/sibling tests and full changed-file checks passed, and required CI is green for dc77444. The direct-value fixtures exercise the pure renderers; retained filesystem resolver, synchronization, and CLI tests cover their separate boundaries. Proceeding through the native merge workflow under the requested test-maintenance batch. |
|
Merged via squash.
|
What Problem This Solves
Eight Android and iOS renderer cases build temporary filesystem fixtures merely to supply known version values and changelog text. Some then reread text they just wrote or render the same output twice.
Why This Change Was Made
Pass Android's existing minimal value inputs directly. Resolve explicit iOS versions through its existing no-I/O path, retaining the real App Store revision encoder. Keep changelog text in memory and reuse each rendered result for its assertions.
User Impact
Removes eight temporary directory roots, 28 file writes, 12 recursive directory creations, ten input reads and two duplicate render calls. File-backed resolution, real CLI execution, version pinning and artifact-write integration coverage remain. Production +0/-0; tests +24/-74. No elapsed-time speedup is claimed.
Evidence
node scripts/run-vitest.mjs test/scripts/android-version.test.ts test/scripts/ios-version.test.ts test/scripts/android-pin-version.test.ts test/scripts/release-version.test.tspassed all 59 tests before and after.