Skip to content

fix: restore tooling fixture checks after helper changes - #156459

Closed
steipete wants to merge 1 commit into
mainfrom
codex/test-ci-tooling-fixtures-94c6
Closed

steipete wants to merge 1 commit into
mainfrom
codex/test-ci-tooling-fixtures-94c6

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #139428

What Problem This Solves

Tooling CI fails because copied test fixtures omit newly imported modules and a workflow assertion predates the trusted warning-relay checkout.

User Impact

Restores these developer checks with no product behavior change.

Why This Change Was Made

The legacy changelog fixture now copies the existing runtime import closure, and lint-launcher fixtures include the already-declared JSON5 dependency. Workflow checks verify the emitted trusted identity and its pinned warning-relay checkout while retaining the other bootstrap checks. Existing process, artifact-cleanup, and legacy-restoration assertions remain in place.

Evidence

The original three complete files reproduced seven failures across 58 tests. The repaired files passed all 58 with zero skips on Node 24.19/macOS through the normal test wrapper. Both runs cleaned up their temporary state. Required mapped checks and independent review passed.

The change adds 20 net test lines; no runtime improvement is claimed. Separate SwiftLint and Gateway CI repairs remain pending, so this PR is initially a draft.

@clawsweeper

clawsweeper Bot commented Sep 23, 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 commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 23, 2026, 7:10 AM ET / 11:10 UTC.

ClawSweeper review

What this changes

Repairs tooling test fixtures by including required imports and dependencies and updating assertions for the existing trusted warning-relay checkout.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open: this is a focused repair for fixture failures still present on fetched main. No introduced correctness or security defect was found.

Priority: P2
Reviewed head: bca82d882107c71d979ad4c06e72cecfc49ed58b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Recorded reviewer rating: A focused, source-supported fixture repair with preserved assertions and reported before/after validation. Real behavior proof remains required by host policy.
Proof confidence 🌊 off-meta tidepool Recorded reviewer rating; Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: GitHub verifies repository-admin authorship, so external-contributor proof is exempt; the reported 58-case run targets the changed tooling fixtures, and no production authority or stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Required by policy Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: GitHub verifies repository-admin authorship, so external-contributor proof is exempt; the reported 58-case run targets the changed tooling fixtures, and no production authority or stored-data contract changes.
Evidence reviewed 9 items Introduced scope: The pinned merge-base-to-head patch changes only test setup and workflow assertions; it does not change production tooling, dependencies, workflow execution, or stored-data contracts.
Repairs remain necessary on main: All three affected test files are identical between the merge base and fetched main, so main still lacks these fixture repairs. The latest supplied release also retains the old assertions that workflow identity outputs are undefined; no local tag contains the proposed head.
Missing fixture dependency: The real lint launcher imports JSON5, already declared in the root package. Adding its existing installation to the copied fixture preserves launcher execution and the unchanged child-settlement and artifact-cleanup assertions.
Findings None None.
Security None None.

How this fits together

OpenClaw’s tooling tests exercise build launchers, package restoration, and installation workflows. Their isolated fixtures must supply the dependencies those tools use so failures reflect broken behavior rather than incomplete test setup.

flowchart TD
  A[Tooling source and workflows] --> B[Isolated test fixtures]
  C[Required modules and dependencies] --> B
  B --> D[Run tooling entry points]
  D --> E[Check cleanup and restoration]
  A --> F[Check trusted checkout identity]
  E --> G[Developer validation results]
  F --> G
Loading

Before merge

  • Add real behavior proof - Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: GitHub verifies repository-admin authorship, so external-contributor proof is exempt; the reported 58-case run targets the changed tooling fixtures, and no production authority or stored-data contract changes.
  • Complete next step (P2) - Record measured wall times for the three changed test files in the PR body, including CI seconds when available, as required by repository test-cost policy.
Agent review details

Security

None.

PR surface

Tests +20. Total +20 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 46 26 +20
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 46 26 +20

Review metrics

None.

Technical review

Best possible solution:

Keep the fixtures aligned with existing tooling dependencies while preserving independent cleanup, restoration, and trusted-checkout assertions.

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

Yes, from source: current-main fixtures omit required imports and assert that existing workflow outputs are absent. The author reports a failing-before/passing-after run; this read-only review did not execute tests.

Is this the best way to solve the issue?

Yes: supplying existing dependencies, reusing the import-closure owner, and checking the actual workflow identity contract repairs setup without weakening the behavioral assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 0c7d77cd47ab.

Labels

Label changes:

  • add P2: Repairs concrete developer-tooling test failures with limited scope and no product behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit. This is the recorded reviewer rating; real behavior proof remains required by host policy.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: GitHub verifies repository-admin authorship, so external-contributor proof is exempt; the reported 58-case run targets the changed tooling fixtures, and no production authority or stored-data contract changes.

Label justifications:

  • P2: Repairs concrete developer-tooling test failures with limited scope and no product behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit. This is the recorded reviewer rating; real behavior proof remains required by host policy.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Required by policy: the recorded not-applicable assessment does not satisfy the current PR proof policy. Put relevant after-change evidence in the main PR body, then request a fresh review with @clawsweeper re-review. Recorded reviewer context: GitHub verifies repository-admin authorship, so external-contributor proof is exempt; the reported 58-case run targets the changed tooling fixtures, and no production authority or stored-data contract changes.

Evidence

What I checked:

  • Introduced scope: The pinned merge-base-to-head patch changes only test setup and workflow assertions; it does not change production tooling, dependencies, workflow execution, or stored-data contracts. (bca82d882107)
  • Repairs remain necessary on main: All three affected test files are identical between the merge base and fetched main, so main still lacks these fixture repairs. The latest supplied release also retains the old assertions that workflow identity outputs are undefined; no local tag contains the proposed head. (test/scripts/install-smoke-no-push-workflow.test.ts:124, 0c7d77cd47ab)
  • Missing fixture dependency: The real lint launcher imports JSON5, already declared in the root package. Adding its existing installation to the copied fixture preserves launcher execution and the unchanged child-settlement and artifact-cleanup assertions. (scripts/run-oxlint.mts:9, 0c7d77cd47ab)
  • Complete changelog fixture imports: The changelog packager imports check-limits.mts, which the previous handwritten copy list omitted. The existing import-closure collector supplies that module while the test still checks actual preparation, legacy restoration, and backup removal. (scripts/package-changelog.mjs:8, bca82d882107)
  • Trusted workflow assertions remain meaningful: The existing workflow emits its repository and SHA and uses them for the warning-relay checkout. The patch verifies emitted values and the relay’s pinned inputs separately, retaining the bootstrap assertions and wrong-repository/malformed-SHA rejection checks for other trusted checkouts. (test/scripts/install-smoke-no-push-workflow.test.ts:163, bca82d882107)
  • Validation and campaign context: The captured PR body reports seven original failures across 58 tests, followed by 58 passes with zero skips on Node 24.19/macOS and successful temporary-state cleanup. It links the maintainer-requested test-audit campaign at Test audit: reduce redundant test code and full-suite runtime #139428. These are reported results, not reviewer-executed checks; measured wall times are absent. (bca82d882107)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add the required measured test-file wall times to the PR’s Evidence section, with CI timings when available.

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.

@fuller-stack-dev

Copy link
Copy Markdown
Member

Superseded by Peter’s merged #156136, commit ceb109668b4396181205e330a2b466c132fede89 (2026-09-23 11:19:53 UTC). All three fixture-repair outcomes are present on main; no additional product behavior is introduced here.

Verified on unchanged main af7420cc367af23a395006f1eba8858e33c9a946 with:

node scripts/run-vitest.mjs test/scripts/dist-artifact-ownership.test.ts test/scripts/install-smoke-no-push-workflow.test.ts test/scripts/ocm-npm-workspace-deps.test.ts

58/58 passed, no skips. File test times: dist ownership 30 tests / 60.846s; install-smoke workflow 13 / 5.141s; OCM workspace packaging 15 / 2.431s. Complete wrapper wall time: 68.21s, Node 24/macOS. Task-private fixtures were cleaned and observed SQLite opens were confined to a private task root.

The landed code supplies JSON5 to both affected lint fixtures, includes the missing changelog helper while retaining exact restoration/backup-removal assertions, and verifies emitted workflow identity plus the pinned warning relay. Wrong-repository/malformed-SHA and transport checks remain. Independent review audited all three complete files and the exact PR-to-main differences, found no actionable P0–P2 issues, and confirmed no required behavior from this PR is missing on tested main. The same three file blobs were verified on later main 0dd7810da88d7edb44977d9e7f2945381e9680a.

Closing as superseded, not merging duplicate fixture repairs. The original head remains bca82d882107c71d979ad4c06e72cecfc49ed58b; its CI is not being represented as green. Run 35853901004 reported a separate server.sessions.create.test.ts shared-state cleanup/ENOENT failure in job 107158166888; no rerun or CI waiver was used.

@RomneyDa
RomneyDa deleted the codex/test-ci-tooling-fixtures-94c6 branch October 22, 2026 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants