Repository navigation
test(build): import stamp writers from their shared owner - #133974
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 4:46 AM ET / 08:46 UTC. ClawSweeper reviewWhat this changesThe PR removes build-stamp writer re-exports from CLI wrappers and updates their tests to import the writers from the shared metadata module. Merge readiness✅ Ready for maintainer review The cleanup is owner-aligned and appears correct; fetched current main still has the redundant wrapper exports, so this PR remains useful and open. Priority: P3 Review scores
Verification
How this fits togetherThe build pipeline invokes two CLI entrypoints, each delegating to a shared metadata writer that creates a local stamp file. Build tooling executes the wrappers, while focused tests exercise the writer’s filesystem output. flowchart LR
Build[Build pipeline] --> Entry[Stamp CLI entrypoints]
Entry --> Writer[Shared metadata writers]
Writer --> Artifact[Local stamp files]
Tests[Focused filesystem tests] --> Writer
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -2, Other -8. Total -10 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep the CLI files as execution-only wrappers and the shared metadata module as the sole writer API, with focused tests importing that owner directly. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-neutral internal cleanup; source inspection shows both command paths still delegate to the same writers. Is this the best way to solve the issue? Yes: directly importing the shared owner removes unused CLI facades while retaining the command entrypoints used by build tooling. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 253ad3e545b7. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
d2c3ccd to
97bb4b1
Compare
|
@clawsweeper re-review The refreshed head adds the explicit build-stamp test owner required by the unchanged routing regression. All369 routing/writer cases, direct selector plans, the complete changed-file gate, fresh five-file Codex review and exact-head CI33379626153 passed. The original CLI/writer behavior is unchanged. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…33974) * test(build): remove unused stamp CLI re-exports * fix(test): preserve build-stamp regression routing
What Problem This Solves
Build-stamp tests import their writers through CLI entrypoints, keeping unused re-exports on those commands. The changed-file runner also relied on that incidental test import to select the build-stamp regression test.
Why This Change Was Made
Import both writers directly from their shared metadata owner and remove the CLI re-exports and inaccurate test headers. Record the build-stamp CLI’s existing regression-test owner in the selector’s exact map, since that test lives outside its conventional tooling directories. The runtime-postbuild sibling keeps its existing conventional route.
User Impact
The CLI entry guards, execution, error handling and artifact writers stay unchanged. Both filesystem tests retain every assertion and fixture, and changed-file execution retains its narrow regression target. Tooling +1/-8 (net -7); tests +2/-4 (net -2); product runtime unchanged.
Evidence
Both complete writer tests passed before and after (2 → 2). Both real CLI entrypoints also passed before and after in a temporary working directory, writing the expected timestamp fields, Git-head absence and trailing newlines. The canonical writer and packaging-path contracts were inspected.
The first hosted run, 33373379861, caught the lost selector edge: the existing build-stamp routing assertion expected
src/infra/build-stamp.test.tsbut received the broad tooling config. The repair preserves that assertion and adds the missing exact owner. It does not restore a test facade, introduce a fake import, or broaden discovery.On the refreshed main composition, the unchanged routing regression reproduced the same failure before the map repair. After the repair, all 367 selector cases and both writer cases passed (369 total). Direct selector checks preserve the exact build-stamp target, the conventional runtime-postbuild target and all nine shared-metadata targets. Fresh Codex review found no actionable findings in its configured scope. The full changed-file gate also passed. Exact refreshed head
97bb4b125e5dpassed CI33379626153, including the CI gate.The review’s generic stored-data warning does not describe a changed data contract here: stamp writer implementation and serialized artifact formats are unchanged; no vector/embedding metadata or SQLite store is modified.