Repository navigation
test: preserve native workflow loader selection - #147403
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. Reviewed September 13, 2026, 4:58 PM ET / 20:58 UTC. ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherOpenClaw’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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +7. Total +7 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…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) ...
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
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.