Skip to content

test(tooling): configure fixture identity in the commit command - #134277

Merged
steipete merged 1 commit into
mainfrom
codex/test-apple-source-fixture-identity
Aug 31, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/test-apple-source-fixture-identity

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Each temporary repository in the Apple release source-check tests launches two extra Git commands only to configure the identity for its single fixture commit.

Why This Change Was Made

Supply that identity through git -c on the existing commit command, alongside the existing signing override. This removes ten Git subprocesses across five temporary repositories while retaining the actual commits and separate clean, wrong-commit, modified, staged, and untracked scenarios.

The source guard reads HEAD and porcelain status; it does not consume persistent fixture identity configuration. No runtime guard, release command, or ambient identity policy changes.

User Impact

Less fixture setup work in the release tooling tests, with the same provenance and dirty-checkout assertions.

Evidence

  • node scripts/run-vitest.mjs test/scripts/apple-release-source-check.test.ts test/scripts/ios-release-wrapper-args.test.ts test/scripts/write-build-info.test.ts passed all 35 tests before and after.
  • Full changed-file checks, formatting, diff checks, and structured Codex autoreview passed.
  • The installed Git manual confirms -c applies configuration to that command. Real Bash/Git execution and cleanup remain.
  • Production +0/-0; tests +16/-5. No elapsed-time speedup is claimed.

@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: XS maintainer Maintainer-authored PR labels Aug 31, 2026
@steipete
steipete marked this pull request as ready for review August 31, 2026 16:40
@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, 12:39 PM ET / 16:39 UTC.

ClawSweeper review

What this changes

The PR supplies temporary Git author identity through the existing fixture commit command instead of two separate fixture configuration commands.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking correctness finding. This draft remains open for normal maintainer handling because it carries the protected maintainer label.

Priority: P3
Reviewed head: dff9dcaf00cf6bf2f5c567c9f4515d4667860534

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, behavior-neutral fixture cleanup with direct Git-contract and source-path support.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored, test-only change has no user-visible runtime behavior; the contributor's stated targeted test run is supplemental rather than a real-behavior-proof gate.
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, test-only change has no user-visible runtime behavior; the contributor's stated targeted test run is supplemental rather than a real-behavior-proof gate.
Evidence reviewed 6 items Pinned introduced change: The verified PR-introduced hunk only changes the temporary-repository fixture, applying author name and email to its one commit invocation.
Guard boundary and caller: The fixture returns the repository root and commit to the test, while the unchanged guard reads only HEAD and porcelain status; it does not consume persistent fixture configuration.
Existing sibling convention: Other script-test fixtures already pass user identity through per-command Git configuration, matching this approach.
Findings None None.
Security None None.

How this fits together

The Apple release source-check test creates a temporary Git checkout, then passes its commit ID and root to the release source guard. The guard verifies that HEAD matches the supplied ID and the checkout is clean.

flowchart LR
  A[Temporary Git fixture] --> B[Fixture commit command]
  B --> C[Commit ID and checkout]
  C --> D[Apple release source guard]
  D --> E[Clean matching-source assertions]
Loading

Before merge

  • Resolve merge risk (P1) - The supplied context omits the newest ClawSweeper comment and GitHub could not be reached, so any prior rank-up moves could not be independently checked.
  • Complete next step (P2) - No repair job is warranted: the introduced fixture change has no concrete defect, and the protected maintainer label leaves ordinary PR handling in the maintainer flow.
Agent review details

Security

None.

PR surface

Tests +11. Total +11 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 16 5 +11
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 16 5 +11

Review metrics

Metric Value Why it matters
Production versus test LOC production +0/-0; tests +16/-5 The expanded call formatting is confined to a test fixture and introduces no runtime, configuration, or release behavior.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the per-commit identity configuration as the canonical fixture setup when this draft is made ready for review.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the per-commit identity configuration as the canonical fixture setup when this draft is made ready for review.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR refactors test-fixture setup rather than reporting a user-facing defect.

Is this the best way to solve the issue?

Yes. Per-command Git configuration supplies exactly the identity needed for the fixture commit and avoids persistent fixture configuration without changing the source-guard scenarios.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 692cb7b1f28f.

Labels

Label changes:

  • add P3: This is a low-risk test-fixture cleanup with no production behavior 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, test-only change has no user-visible runtime behavior; the contributor's stated targeted test run is supplemental rather than a real-behavior-proof gate.

Label justifications:

  • P3: This is a low-risk test-fixture cleanup with no production behavior 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, test-only change has no user-visible runtime behavior; the contributor's stated targeted test run is supplemental rather than a real-behavior-proof gate.

Evidence

What I checked:

Likely related people:

  • steipete: 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

The failing commands shard aborted in the unchanged public doctor transcript-import memory regression under its 256 MiB child heap. The Apple fixture test is not in that shard, and its patch changes only Git identity setup. The log establishes a real V8 heap-limit failure, but does not identify its allocation phase or repeatability.

Running one unchanged failed-job retry as a diagnostic Linux reproduction. Keeping all three memory scenarios, their order, payloads, deadlines and heap limit intact. A passing retry would establish non-reproduction on that attempt, not an infrastructure diagnosis or a heap fix. Named follow-up: locate the public doctor retained heap at the session-import and subsequent repair boundaries.

@steipete

Copy link
Copy Markdown
Contributor Author

The unchanged diagnostic retry passed the actual batch, deep and public memory cases with their original 256 MiB child heap. The public 100,000-event import completed in this attempt; this is non-reproduction, not a claimed heap fix. Required CI is now green for dff9dca. The retained-heap investigation remains named above.

Maintainer review is complete. Read the current full ClawSweeper comments directly, resolving the review's unavailable-latest-comment gap; no unaddressed finding or rank-up change remains. The35-case Apple source/build metadata proof and full changed-file checks passed. Proceeding through the native merge workflow for the fixture-only change.

@steipete
steipete merged commit a6e3ebd into main Aug 31, 2026
307 of 309 checks passed
@steipete
steipete deleted the codex/test-apple-source-fixture-identity branch August 31, 2026 17:37
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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: XS 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