Repository navigation
test(ci): copy the test-line ratchet's full import set into its guard fixture - #193170
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR copies three missing transitive dependencies into the test-line checker’s temporary repository fixture. Example: The shallow-merge fixture checks one unallocated test line.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR narrowly repairs a confirmed current-main fixture regression, with no introduced defect found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe workflow guard builds a temporary Git repository and executes the actual CI budget command against a shallow synthetic merge, checking its exit status and budget diagnostics. flowchart TD
A[Workflow guard test] --> B[Temporary Git repository]
B --> C[Actual workflow budget command]
C --> D[Test-line ratchet]
D --> E[Release context dependencies]
D --> F[Budget result assertions]
Technical reviewBest possible solution: Copy the three missing imports into the existing fixture while preserving its budget assertions and exact six-line allocation. Do we have a high-confidence way to reproduce the issue? The current-main import chain and incomplete fixture establish the failure path, and existing CI annotations record the matching missing-module error; no target code was executed during this review. Is this the best way to solve the issue? This is the smallest complete repair: the fixture must contain the real checker’s relative dependencies, and expanding its existing copy list restores that invariant without new machinery or weaker assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2270152d224a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +6, Other +2. Total +8 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 4, 2026, 11:40 PM ET / November 5, 2026, 04:40 UTC. |
Integrate the landed canonical #193183 baseline reconciliation and #193170 guard-fixture repair for the named inherited CI blockers. Candidate feature, cache, browser and backup blobs remain byte-identical to the validated b99bcba tree; preserve the exact remaining ratchet outcome without a local baseline edit or gate waiver. Co-authored-by: galiniliev <[email protected]>
Resolve the ci-workflow-guards fixture conflict with main's equivalent ratchet import-set fix (#193170) and reduce this change's test-line allocation to its exact remaining net growth (84). No dependency manifests or locks changed on main; the lock is unchanged. Co-authored-by: steipete <[email protected]>
… fixture (openclaw#193170) * test(ci): copy the test-line ratchet's full import set into its guard fixture * test(ci): copy the ratchet imports with one cpSync loop
Problem
#192806 (4a43644) made
scripts/check-test-lines-ratchet.mtsimport./lib/check-limits.mts, which in turn importsrelease-context.mjsandrelease-version.mjs. The guard test "checks release fast lane test growth against the shallow pull request merge base" intest/scripts/ci-workflow-guards.test.tsstill copies only the ratchet andshrink-ratchet.mtsinto its temporary repository. So the copied script fails withERR_MODULE_NOT_FOUND … scripts/lib/check-limits.mts, and the test is red on main. It only runs for PRs that select workflow-guard tests (for example #192601).Solution
Copy the ratchet's full relative import set into the fixture.
Impact
Test-only. Clears
ci-workflow-guards.test.tson main.Evidence
ERR_MODULE_NOT_FOUNDabove, locally and in CI: https://github.com/openclaw/openclaw/actions/runs/41965761310/job/127042981397config/test-lines-allocations/ratchet-guard-fixture-imports.txt(1; the copy loop is otherwise line-neutral). Main itself is currently over its test-line ceiling, sochecks-fast-baseline-ratchetsstays red on any line-adding PR until main gets back under.