Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 3, 2026, 7:19 PM ET / 23:19 UTC. ClawSweeper reviewWhat this changesThe PR preloads an advancing fixed clock into five release-discovery CLI test processes so expiring fixtures continue reaching their intended branches. Merge readiness✅ Ready for maintainer review Keep open. Current main still leaves the CLI fixtures calendar-dependent, while this narrow test-only repair restores their intended coverage without changing release-discovery production behavior; no blocking correctness or security finding was found. Priority: P3 Review scores
Verification
How this fits togetherRelease discovery selects trusted release artifacts for release workflows. Its tests spawn the discovery CLI with fixture requests and verify expiry, provenance, bounded scanning, and sealed-artifact outcomes. flowchart LR
A[Fixture request] --> B[Discovery CLI child process]
C[Advancing fixed clock] --> B
B --> D[Artifact and provenance checks]
D --> E[Candidate result]
E --> F[CLI regression assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +10. Total +10 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain the advancing fixture clock so the CLI cases keep exercising the 14-hour expiry contract without changing production discovery behavior. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main uses the real child-process clock with an expiry fixture that the discovery owner rejects inside its 14-hour window. This read-only review did not execute repository code. Is this the best way to solve the issue? Yes. A child-process preload is the narrowest maintainable repair because it stabilizes fixture time while preserving elapsed-time deadline behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f1eb466dad64. 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)
|
|
The fixture-clock defect is now fixed on main by #137633, commit 01c7675. Its five discovery CLI calls receive the fixture clock, while production expiry, trust, and deadline code remains unchanged. Verified exact main Closing this duplicate repair as superseded. The elapsed-clock variant here is not needed to repair any remaining demonstrated failure. The separate npm audit timeout is handled by the subsequently landed #137716 and is not being waived. |
Related: #137502, #137563.
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers can help update the branch when needed.
What Problem This Solves
Resolves a problem where release-discovery CLI tests started failing after their fixed artifact expiry approached the real date. On September 3 at 22:00 UTC, two scenarios stopped reaching their intended bounded-scan and missing-package branches because the fixtures had less than the required 14 hours remaining.
Why This Change Was Made
The five discovery CLI cases now share the unit tests' existing artifact clock. Their child process still advances with real elapsed time, preserving timeout and deadline behavior. Production expiry, provenance, and authorization checks are unchanged.
User Impact
CI continues testing release discovery as the calendar advances. This is a test-only repair with no application behavior change.
Evidence
The unchanged baseline reproduced both CI failures; the repaired complete owner file passes all 30 cases, including expiry, deadline, provenance, and sealed-artifact checks. The actual discovery CLI runs in each affected case. Formatting and diff checks pass. Production delta: zero; tests: +22/−12, net +10.
The local changed gate reached test-root typechecking but found unrelated dependency/API mismatches in the shared dependency checkout; no source workaround or dependency reconciliation was applied. Fresh exact-head CI (
33814357153) has now passed its selected test and type gates. Its security audit alone timed out against the public bulk-advisory endpoint, with the aggregate gate failing downstream; landing waits for that service check to pass. Independent Codex review is scoped-clean with no accepted P0–P2 findings; the reviewer checked child-clock isolation and composition with the existing fetch preload.ClawSweeper reviewed head
57d8b65513328307f7b16a4cbc6b42685c67c3b7at 22:55 UTC and found no actionable findings or before-merge moves.