Skip to content

test(tooling): use value fixtures for mobile release renderers - #134293

Merged
steipete merged 1 commit into
mainfrom
codex/test-mobile-renderer-value-fixtures
Aug 31, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/test-mobile-renderer-value-fixtures

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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.ts passed all 59 tests before and after.
  • Full changed-file checks, formatting, diff checks and structured Codex autoreview passed.
  • Reviewed complete renderer/resolver modules, CLI and release callers, sibling file-writing tests and release-note/revision history. Exact-note priority, Unreleased behavior, revision-only note matching and gateway association assertions are unchanged.

@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 31, 2026
@steipete
steipete marked this pull request as ready for review August 31, 2026 16:59
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 1:06 PM ET / 17:06 UTC.

ClawSweeper review

What this changes

The PR replaces selected Android and iOS release-renderer test fixtures with direct version values and in-memory changelog text.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep 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 maintainer label.

Priority: P3
Reviewed head: dc77444c74a2d218d39536f9894038210335ea5a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving test cleanup with retained integration coverage and no actionable defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR changes only tests; the external-contributor real-behavior-proof gate does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR changes only tests; the external-contributor real-behavior-proof gate does not apply.
Evidence reviewed 5 items Verified introduced scope: The verified test merge changes only the two focused test modules, with no production source changes introduced by this PR.
Android renderer boundary: The current renderer accepts only canonical version and version-code values, while the sync path independently resolves files and reads the changelog before rendering.
iOS explicit-version boundary: With an explicit release version, resolution normalizes that value and retains App Store revision encoding without reading package.json; production release-note paths still read the resolved changelog file.
Findings None None.
Security None None.

How this fits together

Mobile 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
Loading

Before merge

  • Complete next step (P2) - No concrete repair is needed; this is a normal protected maintainer PR awaiting ordinary review and exact-head checks.
Agent review details

Security

None.

PR surface

Tests -50. Total -50 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 24 74 -50
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 24 74 -50

Review metrics

Metric Value Why it matters
Production versus test LOC production +0/-0; tests +24/-74 The patch removes fixture setup and duplicate renderer calls without changing release-tooling behavior.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a bounded test-maintenance cleanup with no user-facing production change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR changes only tests; the external-contributor real-behavior-proof gate does not apply.

Label justifications:

  • P3: This is a bounded test-maintenance cleanup with no user-facing production change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR changes only tests; the external-contributor real-behavior-proof gate does not apply.

Evidence

What I checked:

  • Verified introduced scope: The verified test merge changes only the two focused test modules, with no production source changes introduced by this PR. (test/scripts/android-version.test.ts:211, 39db3b195ac5)
  • Android renderer boundary: The current renderer accepts only canonical version and version-code values, while the sync path independently resolves files and reads the changelog before rendering. (scripts/lib/android-version.ts:185, d147d40f4f1c)
  • iOS explicit-version boundary: With an explicit release version, resolution normalizes that value and retains App Store revision encoding without reading package.json; production release-note paths still read the resolved changelog file. (scripts/lib/ios-version.ts:123, d147d40f4f1c)
  • Retained integration coverage: The same suites retain fixture-backed resolver, synchronization, and CLI assertions outside the changed renderer cases. (test/scripts/ios-version.test.ts:57, dc77444c74a2)
  • Feature-history routing: Current renderer lines blame to a recent source commit by Dallin Romney; its parent is unavailable in this promisor checkout, so this supports routing rather than an introduction claim. (scripts/lib/ios-version.ts:180, daf781a5e173)

Likely related people:

  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • joshavant: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete

Copy link
Copy Markdown
Contributor Author

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.

@steipete
steipete merged commit b6cd3c6 into main Aug 31, 2026
195 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete
steipete deleted the codex/test-mobile-renderer-value-fixtures branch August 31, 2026 17:19
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant