Repository navigation
#2634: WizPlugins polish B01: WizLoops ci (1 issue) - #35
Conversation
…ror and a job-level defaults shell
…r and any defaults or shell key
|
First successful push: e28a323 at 2026-11-23T02:50:25Z |
|
VERDICT: APPROVE at e28a323 Full review by Codex. CI green on this commit: Intent: Make the WizLoops comment-check proof reject the commented failure override and the job-level flow-style shell override, and keep a regression case for each.
Checked: Standards ( Facts
Next: none open. It merges by the project's merge rules. |
Closes openwizdev/OpenWiz#2634
Closes openwizdev/OpenWiz#2586
Summary
ci/test-comment-check.shdecided "does this workflow tolerate a failing comment-check?" with a line grep that exempted any line ending incontinue-on-error: false, and only looked forcontinue-on-error/shellat the start of a line. Socontinue-on-error: true # continue-on-error: falseand a job-leveldefaults: {run: {shell: 'bash {0}'}}both slipped through, and the proof ran the step underbash -eas if they were not there.The guard now fails closed instead of parsing YAML: it refuses any
continue-on-error,shellordefaultskey anywhere in the workflow (block, quoted or flow style, after{,,or whitespace). The one exemption is a line that is exactlycontinue-on-error: falsewith no trailing comment. Two new proof cases plant the issue's two examples.Evidence
Before (red commit fea69de, the two new cases added, guard unchanged): exit 1, two failures at their own assertion. The proof ran the step and got the comment check's exit 1 instead of
tolerated:After (green commit e28a323):
env -u OPENWIZ_GITHUB_APP_KEY sh ci/test-comment-check.shexits 0 with all 11 casesok:, including:New tests:
continue-on-error, so a step that tolerates its own failure passes.defaultsshell (bash {0}, no-e), so it models a shell the step does not run in.Self-check
git worktree add /tmp/wl-red HEAD^ && sh /tmp/wl-red/ci/test-comment-check.shprinted 2test-comment-check:failures (the two new cases, at their own assertion) and exit 1env -u OPENWIZ_GITHUB_APP_KEY sh ci/test-comment-check.shprinted 11ok:lines and exit 0printf '%s\n' "$line" | grep -n -E <new pattern> | grep -v -E <exemption>over sample lines printed refused for"continue-on-error": true,continue-on-error: false # x,continue-on-error: ${{ false }},defaults:,- {name: comment-check, continue-on-error: true},run: {shell: sh}; passes for barecontinue-on-error: false,sh ci/check.shand the step'sif:linesh ci/test-comment-check.shprintedok: catches: the pull request workflow passes a disallowed comment(exit 1 from the step, nottolerated)toleratedbranch with a longer fixed messagegrep -rn -E 'tmp\.|thr_|/home/' ci/test-comment-check.shprinted nothing; red log above is trimmed to synthetic fixture linesmktemp -d, removed by its existing trapgrep -n comment ci/check.shprinted11:sh ci/test-comment-check.sh; it reads only the exit status, and everyexpectsubstring still matches the new messagesh ci/comment-check.sh origin/mainprintedcomment-check: okticket.py scope openwizdev/OpenWiz 2634printedscope: okMerge danger
Door: two-way. Blast radius: CI.
Rulings
defaultsorshellanywhere makes this proof refuse, and the author sees the fixed message naming the line.defaultsandshellanywhere in the file, not only on the comment-check step or its job. Why: workflow-leveldefaultsalso reach the step, and scoping by indentation is the line-based reading that missed these cases. Cost if wrong: low: same as ruling 1.Facts
room/2634-polish-b01-comment-checke28a3234f73a2c883f597315c14613e5857d2df4; Tree:7aec21282141fd1300970d0483439fba973ff014ci/test-comment-check.sh(owned). No supporting edits.sh ci/test-comment-check.sh(11 cases, 2 new). Fullsh ci/check.shnot run locally (needsopenwizbuilt at the pinned rev); CI runs it.fea69de299dd12f183c28c1c3ae38b14a1c00118, log in Evidence.79edbff(both examples reproduced as the red run above) and is fixed.env -u OPENWIZ_GITHUB_APP_KEY.ticket.py readstill reported nolaunch-fleet:start record from a record author on the ticket; the lead said it posts that record.Built with Cloudroom