Skip to content

test: preserve native workflow loader selection - #147403

Merged
steipete merged 1 commit into
mainfrom
codex/faithful-workflow-shell-loader
Sep 13, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/faithful-workflow-shell-loader

Conversation

@steipete

@steipete steipete commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The workflow-shell test helper forced tsx into every extracted Node heredoc, including current preflight commands that deliberately use native Node. This added loader startup work and stopped the fixtures from exercising the workflow's actual loader selection.

What Changed

Preserve the original native, explicit-tsx, or shell-selected argument prefix while keeping regular-file heredoc transport, absolute loader resolution, and cleanup. The manifest fixture now supplies its scenario's GitHub event name to the shell selector. The existing heredoc test checks the real child process arguments.

No test cases, assertions, runner jobs, worker limits, or deadlines were removed. This is one test file: +11/-4 lines; production code is unchanged.

Evidence

  • A fixed four-case probe passed before and after. It observed 32 tsx initializations before; afterward, 22 children ran natively while all six historical-dispatch and four explicit-loader invocations retained tsx.
  • The extended existing heredoc assertion failed against the original helper and passed against the repair.
  • All 569 enabled cases have passing coverage, with two existing skips. The initial full invocation passed 568 cases; its sole failure came from the external test controller passing a Git fetch restriction into a synthetic local partial-clone fixture. After restricting that setting to controller identity reads, the failed case and all nine related no-network Git cases passed without source or assertion changes.
  • All 16 required changed-scope checks passed. Final independent P2 review included the complete changed file and completed all four evidence batches without actionable findings.
  • Exact-head CI passed. Linux ran the complete workflow-guard file: 571/571 cases passed in 87.67s. The selected Node job took 2m41s including checkout and setup.

Local four-case wall time was 20.03s before and 14.27s after, but an unchanged control also became faster. The confirmed result is removal of 22 unnecessary loader initializations in that probe; these timings are not a causal speed estimate or CI forecast.

@clawsweeper

clawsweeper Bot commented Sep 13, 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.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 13, 2026
@steipete steipete self-assigned this Sep 13, 2026
@steipete
steipete marked this pull request as ready for review September 13, 2026 20:52
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 4:58 PM ET / 20:58 UTC.

ClawSweeper review

What this changes

The workflow test helper preserves native Node or TypeScript-loader selection, supplies the fixture’s event name, and checks the child process arguments.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused repair: current main still forces the loader into native workflow fixtures. No blocking correctness or security defect was found, and the maintainer-protected PR should remain open.

Priority: P3
Reviewed head: 078199bd3457781a5036724ad6c73a5a40d3a3d0

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, maintainable repair with meaningful regression coverage and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies this as maintainer-authored test infrastructure, exempt from the external-contributor runtime gate; its body reports relevant child-process observations and regression coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies this as maintainer-authored test infrastructure, exempt from the external-contributor runtime gate; its body reports relevant child-process observations and regression coverage.
Evidence reviewed 8 items Introduced change verified: The pinned introduction diff changes only loader preservation, fixture event propagation, and the existing child-process assertion; cleanup and shell quoting remain intact.
Workflow owns loader selection: The manifest selects tsx for different-revision workflow dispatches and native Node otherwise. Passing GITHUB_EVENT_NAME into the fixture preserves that decision; the helper retains absolute resolution for selected tsx imports.
Still necessary on current main: Fetched main retains the unconditional tsx import in the shell helper, so its workflow selector does not already solve the fixture defect.
Findings None None.
Security None None.

How this fits together

OpenClaw’s workflow tests extract shell commands from GitHub Actions workflows and execute them in temporary fixtures. Faithful Node arguments let those tests exercise the same loader choices as CI.

flowchart LR
  A[Workflow shell command] --> C[Test shell adapter]
  B[Fixture event name] --> C
  C --> D{Selected loader}
  D --> E[Native Node]
  D --> F[TypeScript loader]
  E --> G[Assertions and cleanup]
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +7. Total +7 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 11 4 +7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 11 4 +7

Review metrics

None.

Technical review

Best possible solution:

Keep workflow definitions authoritative for loader selection and retain the existing fixture cleanup and child-process regression coverage.

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

Yes, source establishes a direct reproduction: a native Node heredoc passed through the current-main helper receives an unconditional tsx import. This review did not execute the fixture.

Is this the best way to solve the issue?

Yes. Preserving the captured argument prefix repairs the existing adapter without duplicating the workflow’s loader policy, and the event-name fix makes the shell selector scenario-specific.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5469328b6c31.

Labels

Label changes:

  • add P3: This improves internal test fidelity and avoids unnecessary loader startup without changing product behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies this as maintainer-authored test infrastructure, exempt from the external-contributor runtime gate; its body reports relevant child-process observations and regression coverage.

Label justifications:

  • P3: This improves internal test fidelity and avoids unnecessary loader startup without changing product behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies this as maintainer-authored test infrastructure, exempt from the external-contributor runtime gate; its body reports relevant child-process observations and regression coverage.

Evidence

What I checked:

  • Introduced change verified: The pinned introduction diff changes only loader preservation, fixture event propagation, and the existing child-process assertion; cleanup and shell quoting remain intact. (test/scripts/ci-workflow-guards.test.ts:364, 078199bd3457)
  • Workflow owns loader selection: The manifest selects tsx for different-revision workflow dispatches and native Node otherwise. Passing GITHUB_EVENT_NAME into the fixture preserves that decision; the helper retains absolute resolution for selected tsx imports. (.github/workflows/ci.yml:1195, 078199bd3457)
  • Still necessary on current main: Fetched main retains the unconditional tsx import in the shell helper, so its workflow selector does not already solve the fixture defect. (test/scripts/ci-workflow-guards.test.ts:373, 5469328b6c31)
  • Latest release comparison: The helper in v2026.9.4 also unconditionally injects tsx; the requested repair is not present in that release. (test/scripts/ci-workflow-guards.test.ts, 3a9d69db306c)
  • Merge result preserves scope: Raw test-merge parents match the pinned base followed by the exact PR head. Comparing that merge against its base reproduces the same focused helper patch. (test/scripts/ci-workflow-guards.test.ts:364, e5ef07c06819)
  • Regression evidence: The captured PR body reports that the extended assertion failed before the repair and passed afterward; its four-case probe retained six historical-dispatch and four explicit-loader invocations while removing 22 unnecessary loader initializations. These are contributor-reported observations, not executions performed during this review. (test/scripts/ci-workflow-guards.test.ts:2291, 078199bd3457)

Likely related people:

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

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.

@steipete
steipete merged commit 70dd24a into main Sep 13, 2026
130 checks passed
@steipete
steipete deleted the codex/faithful-workflow-shell-loader branch September 13, 2026 21:20
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to Alix-007/openclaw that referenced this pull request Sep 13, 2026
…1-prep

* commit '912ae8d96e5964dfdcdf419b79613fb941cdf0a8': (350 commits)
  fix: keep workspace preparation responsive during cleanup (openclaw#147358)
  docs: alphabetize donors and sponsors and add Red Hat logo (openclaw#147302)
  fix(plugins): retain update authority through doctor effects (openclaw#144316)
  refactor(qa): share Multipass mount retry lifecycle (openclaw#147084)
  fix(memory): emit one JSON result for command failures (openclaw#147366)
  improve(plugins): speed up cold metadata loading (openclaw#147411)
  fix(sessions): avoid duplicate work after waited child replies (openclaw#147394)
  fix(agents): retain outstanding child results in parent context (openclaw#112623)
  test: preserve native workflow loader selection (openclaw#147403)
  fix: reduce repeated work while polling session pull requests (openclaw#147373)
  test(qa): preserve task cancellation across process replacement (openclaw#147382)
  fix: prevent sidebar refresh storms during session activity (openclaw#147400)
  refactor: simplify skills CLI formatting (openclaw#147368)
  fix: prevent Git checkout certificate failures behind egress proxy (openclaw#147410)
  fix(qa): stop live threads after their process leader exits (openclaw#147386)
  refactor(release): share agent turn retry lifecycle (openclaw#147076)
  fix(ui): keep uploaded images aligned with their prompts (openclaw#147389)
  fix(fs): guard skill reads and bound worker bundle staging (openclaw#147336)
  fix(ci): restore Linux service ownership fixtures (openclaw#147398)
  fix(plugins): preserve manifest permissions when building plugins (openclaw#147393)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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