Skip to content

test(ci): copy the test-line ratchet's full import set into its guard fixture - #193170

Merged
RomneyDa merged 2 commits into
mainfrom
fix/ratchet-guard-fixture-imports
Nov 5, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
fix/ratchet-guard-fixture-imports

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Problem

#192806 (4a43644) made scripts/check-test-lines-ratchet.mts import ./lib/check-limits.mts, which in turn imports release-context.mjs and release-version.mjs. The guard test "checks release fast lane test growth against the shallow pull request merge base" in test/scripts/ci-workflow-guards.test.ts still copies only the ratchet and shrink-ratchet.mts into its temporary repository. So the copied script fails with ERR_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.ts on main.

Evidence

@clawsweeper

clawsweeper Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 5, 2026
@clawsweeper

clawsweeper Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The checker exits with ERR_MODULE_NOT_FOUND for scripts/lib/check-limits.mts.
  • After: The checker reaches the budget assertions: unallocated growth fails and an exact one-line allocation passes.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-verified fixture repair supported by failure annotations and passing compact CI; validation remains harness-based and the inherited budget gate is red.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored, test-only repair changes fixture setup; the body reports local success and exact-head compact test jobs pass, with no shipped runtime behavior requiring separate demonstration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Contributors selecting workflow-guard tests encounter an unrelated missing-module failure before budget enforcement can be checked.
Reason: The maintainer-authored change restores useful existing CI coverage without changing release policy, runtime behavior, or assertions.

Regression provenance

Regression provenance — verified: source commit 4a43644e7a7b by Tideclaw Bot; canonical PR #192806 (blame-to-merge-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
Reviewed head: 92b4201518b70c0d37f8662e21374ab317b0ec00

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Workflow guard fixture keeps the original intent (8d57c69: fix(ci): release fast lane can land unallocated test growth #192414 made the shallow-checkout regression execute the real workflow command to prevent release fast-lane PRs escaping test budgets.)
  • Checker release-context dependency keeps the original intent (4a43644: Release and extended-stable backports should avoid size-only baseline changes; the checker consumes the shared release-context resolver.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +6, Other +2. Total +8 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 7 1 +6
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 2 9 1 +8

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: A confirmed fixture regression breaks selected workflow-guard CI runs, with no shipped runtime impact.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A confirmed fixture regression breaks selected workflow-guard CI runs, with no shipped runtime impact.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 4, 2026, 11:40 PM ET / November 5, 2026, 04:40 UTC.

@RomneyDa
RomneyDa merged commit b8441f7 into main Nov 5, 2026
87 of 90 checks passed
@RomneyDa
RomneyDa deleted the fix/ratchet-guard-fixture-imports branch November 5, 2026 05:10
roboclaw-bot added a commit that referenced this pull request Nov 5, 2026
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]>
roboclaw-bot added a commit that referenced this pull request Nov 5, 2026
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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 6, 2026
… 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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