Repository navigation
fix(ci): prevent workflow lint stdin deadlock - #131982
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 1:51 PM ET / 17:51 UTC. ClawSweeper reviewWhat this changesThe PR pins actionlint to an upstream commit across Workflow Sanity, pre-commit, and the local Go fallback to avoid a large-stdin ShellCheck deadlock. Merge readinessNo introduced correctness defect was found. This maintainer-authored, maintainer-labeled CI repair remains open for the explicit interim dependency decision and exact-head workflow completion. Priority: P2 Review scores
Verification
How this fits togetherWorkflow Sanity installs actionlint and ShellCheck before linting repository workflow files in CI. The local workflow checker and pre-commit hook use the same linter revision so developer and CI paths agree. flowchart LR
A[Workflow files] --> B[Workflow Sanity]
C[Local workflow checker] --> D[actionlint revision]
E[Pre-commit hook] --> D
D --> F[ShellCheck subprocess]
F --> G[Lint result]
Decision needed
Why: This is an intentional CI supply and maintenance tradeoff, not a mechanical defect: the release archive path is replaced with a pinned source build before upstream publishes a fixed release. Before merge
Agent review detailsSecurityNone. PR surfaceTests +16, Config -4, Other 0. Total +12 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use the one immutable interim actionlint revision at all three repository-owned resolution paths, then return to a released version once upstream publishes the fix. Do we have a high-confidence way to reproduce the issue? Yes for the described CI defect: the PR body records a bounded old-versus-fixed actionlint run against the existing workflow, and current source shows all repository-owned resolution paths that select the affected linter. Is this the best way to solve the issue? Acceptable mitigation: it changes the linter at its owner boundaries rather than shrinking workflow input or disabling ShellCheck. Direct upstream source retrieval could not be repeated here, so the maintainer should rely on the pending exact-head workflow result before accepting the interim pin. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d402305e1586. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for The six-file patch fixes the upstream stdin ownership defect at all three owned actionlint installation surfaces, without changing release workflow bytes or disabling ShellCheck. The detailed source/probe evidence is in the PR body. Production LOC is 0; workflow +15/-19, tooling/config +4/-4, tests +33/-17. Existing installed-actionlint and pre-commit fallbacks remain unchanged. Local validation: Exact-head Workflow Sanity 33196003010 passed: the fixed revision installed in 9 seconds and linted all workflows in 7 seconds. Exact-head CI 33196019956 passed, as did Blacksmith Testbox 33196020058, ARM Testbox 33196019975, and Build Artifacts 33196020050. Cancelled scans from the draft/ready transition were superseded, not waived. Native review artifacts bind the exact PR head and are validated. Main movement since the base is disjoint from the repair files; no unnecessary rebase or full rerun. Read the latest ClawSweeper review and Rank-up moves. It found no introduced correctness/security defect. Maintainer decision: accept this immutable interim source build, as explicitly authorized for this repair; return to a tagged actionlint release once it contains upstream #651. The install/lint merge-risk proof is satisfied by the exact-head Workflow Sanity result above; the sole rank-up move is completed required CI. No re-review is needed for unchanged behavior/head. Proceeding only through |
|
Merged via squash.
|
Related: #131903 (draft-proof test performance landing blocked by Workflow Sanity)
What Problem This Solves
Resolves a problem where Workflow Sanity hangs while linting the existing
Dispatch publish workflowsrun block. The same actionlint version is also pinned in pre-commit and the local Go fallback, so retrying CI or using those installation paths does not repair the problem.Why This Change Was Made
Pin actionlint to upstream commit
011a6d15e749bb3f2d771eed9c7aa0e7e3e10ee7at all three repository-owned installation surfaces. Workflow Sanity uses the existing SHA-pinned setup-go v7 action with Go 1.25.0, exactly as required by upstreamgo.mod, andcache: false. It installs into runner temp, verifiesv1.7.13-0.20260419144658-011a6d15e749, and adds that bin toGITHUB_PATH.The root cause is upstream subprocess ownership: v1.7.12 writes all stdin into
StdinPipebefore starting ShellCheck. Input exceeding the pipe capacity therefore blocks before the reader exists. The fixed commit letsexec.Cmdcopy stdin after starting the child. Upstream PR #651 merged on April 19; the latest release v1.7.12, verified during this repair, dates to March 30 and does not contain it.Remove only actionlint's obsolete release-archive download/checksum path and the obsolete raw release-script size assertion. Keep the bounded, checksummed ShellCheck download, all lint/audit checks, installed-actionlint preference, and pre-commit fallback. Shrinking the release script or disabling ShellCheck would work around the wrong owner; neither is done here.
User Impact
Maintainers and contributors using these owned installs can lint the complete workflows without this deadlock. There is no product runtime change or product dependency change. Release behavior and release workflow bytes, CHANGELOG, versions, schemas, protocol, live Gateway, and secrets are untouched. Existing externally installed actionlint remains operator-owned and may still need updating.
Evidence
Personally inspected exact upstream source:
cmd.Stdin = strings.NewReader(e.stdin)replaces the pre-start write.Local old-versus-fixed proof on
6ddb9f049fb3617fac38a34ea139f435d9133399, macOS arm64 and installed ShellCheck 0.11.0:.github/workflows/openclaw-release-publish.yml: no output, still hung at 20.006 seconds; bounded probe killed its own process group.GOBIN=<disposable-bin> GOTOOLCHAIN=go1.25.0 go install github.com/rhysd/actionlint/cmd/actionlint@011a6d15e749bb3f2d771eed9c7aa0e7e3e10ee7: version output and Go build metadata identify v1.7.13-0.20260419144658-011a6d15e749.GITHUB_PATHoutput passed.GOTOOLCHAIN=go1.25.0 go test -run 'TestProcess' -timeout 30s .: passed (0.595s), including the concurrent large-input regression.node scripts/run-vitest.mjs test/scripts/check-workflows.test.ts test/scripts/ci-workflow-guards.test.ts test/scripts/package-acceptance-workflow.test.ts test/scripts/check-composite-action-input-interpolation.test.ts test/scripts/check-no-conflict-markers.test.ts: 367 passed, 2 skipped, five files.PATH=<fixed-bin>:$PATH pnpm check:workflows: passed actionlint, zizmor, composite-input and conflict-marker checks.git diff --check: passed. Changed gate for the six explicit paths passed scripts/root-test typechecks, scripts lint, erasability and all selected guards on Blacksmith Testbox run 33195535020, delegated command exit 0 (5m20.619s). The one-shot lease is confirmed stopped; backing workflow cancellation during cleanup is not the command verdict.Production LOC 0. Workflow +15/-19; tooling/config +4/-4; tests +33/-17. The replacement pin/setup regression covers the owner contract without network installation in tests. No release authority was extracted or moved.
Hosted symptom: pre-fix run spent 377 seconds in lint before a newer main push cancelled it; this is cancellation evidence, not a claimed timeout. The vulnerable pin was carried forward by #112963; the removed size workaround came from #128391. #110562 separately proposes bounding local subprocesses; it does not replace fixing the upstream deadlock.
AI-assisted maintainer repair, explicitly requested. Native prepare/merge and exact-head hosted CI will be recorded before landing.
Exact-head landing update: CI 33196019956, Workflow Sanity 33196003010, Testbox 33196020058, ARM 33196019975, and build artifacts 33196020050 all passed on
9d81d12a723599482bdf8faa3a75688cf70e055c. Hosted actionlint install took 9s; full lint took 7s. The interim pin is explicitly accepted under the maintainer request, addressing the latest ClawSweeper decision and rank-up move.