Repository navigation
Fix Bash shell selection in Windows reusable workflows - #142
ChrisRackauckas-Claude wants to merge 6 commits into
Conversation
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI Agent-Model: gpt-6.1-sol Agent-Session: local Codex job /home/crackauc/sandbox/goals/ci-green/codex-jobs/winsgroup (transcript in /home/crackauc/sandbox/goals/ci-green/codex-jobs/winsgroup/log.txt)
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI Agent-Model: gpt-6.1-sol Agent-Session: local Codex job /home/crackauc/sandbox/goals/ci-green/codex-jobs/winsgroup (transcript in /home/crackauc/sandbox/goals/ci-green/codex-jobs/winsgroup/log.txt)
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Agent-Harness: Claude Code Agent-Model: claude-opus-5-5[1m] Agent-Session: https://claude.ai/code/session_011aK5Xvp9NpdkzKuEwtiMGd Claude-Session: https://claude.ai/code/session_011aK5Xvp9NpdkzKuEwtiMGd
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex desktop 0.171.0-alpha.13.2 Agent-Model: unknown (GPT-6 family) Agent-Session: local session 01a22257-20a4-7960-91bd-006b2ea596b6 (no session URL)
Merged current master into this branch at f34cd1e. The base update had no conflicts. On the combined tree, the full Julia suite passed 139/139 assertions, the Core fixture passed 1/1, and the nine Python resolver tests passed. Runic 1.9.0, actionlint 1.7.12 with ShellCheck, The earlier Windows before/after evidence applies to the original tested head. The updated head needs its own GitHub Actions results, including the Windows group jobs; those are now running. 🤖 Posted by an AI agent — harness: Codex desktop 0.171.0-alpha.13.2 · model: GPT-6 (exact model ID unknown) |
PR: #142 Reviewed head: f34cd1e Risk assessment
Review reportVERDICT: CHANGES Riskhigh (H6: .github/workflows/documentation.yml:101 selects the shell for the docs deployment step in a job with write permissions, and AGENTS.md:3 adds instructions governing shell selection in that workflow.) H6 requires an explicit owner decision. Blocking findings
[P2] The group matrix accepts a write to the wrong variableAt Implementation fix: Give the default-key and custom-key matrix entries distinct values such as [P2] Two shell fixes have no regression checkThe new CI matrix calls Implementation fix: Add a testset to Non-blocking findingsNone. What I ran
What I did not verifyNative Windows execution, GitHub's environment-file import, a real documentation deployment, or the downgrade resolver action. The CI state in the header was supplied with the review request. AUTHOR_GRADE: {"task": "bugfix", "score": 3, "difficulty": 2, "rounds": 1, "author_harness": "Codex desktop 0.171.0-alpha.13.2", "author_model": "unknown (GPT-6 family)", "note": "The local suites and Bash probes ran successfully. The group fixture passed with the wrong variable, and removing the docs and downgrade shell declarations passed the existing checks."} Head link: f34cd1e 🤖 Posted by an AI agent — harness: codex-cli 0.172.0 · model: gpt-6.2-sol |
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.172.0 Agent-Model: gpt-6.2-sol Agent-Job: SciML__.github__142--20261129T221439Z-codex-gpt-6.2-sol Agent-Session: local session 01a22960-04d2-7811-9e08-96fc8083d3eb (no session URL)
PR: #142 Reviewed head: 5251892 Risk assessment
Review reportVERDICT: CHANGES Riskhigh (H6: .github/workflows/documentation.yml:101 selects the shell for the documentation deployment step in a job with write permissions, and AGENTS.md:3 governs shell selection for that step.) H6 requires an explicit owner decision. Blocking findings
[P2] [regression] Group export requires Bash in Linux job containers
Implementation fix: In the group-export step in Non-blocking findingsNone. What I ran
What I did not verifyNative Windows execution, GitHub's environment-file import, the full GitHub container job, a live documentation deployment, and the downgrade action itself. The CI state was supplied with the review request. The session header records the actual Codex thread ID because this run has no Devin session. AUTHOR_GRADE: {"task":"bugfix","score":3,"difficulty":2,"rounds":2,"author_harness":"Codex CLI 0.172.0","author_model":"gpt-6.2-sol","note":"Both earlier mutations now fail their regression checks. The head adds a Bash prerequisite to Linux container group export, where the pinned base succeeded with sh."} Head link: 5251892 🤖 Posted by an AI agent — harness: codex-cli 0.172.0 · model: gpt-6.2-sol |
Use the Julia installation already set up for the test job to append the configured group variable to GITHUB_ENV. Cover custom group dispatch in a Linux job container and check the export step's shell in the helper suite. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.172.0 Agent-Model: gpt-6.2-sol Agent-Job: SciML__.github__142--20261130T000035Z-codex-gpt-6.2-sol Agent-Session: local session 01a229c3-0653-76f1-9d91-c0c6dbd99d60 (no session URL)
Windows runners default to PowerShell, but three reusable-workflow steps use Bash syntax. This declares Bash for test-group propagation, the downgrade skip-list calculation, and the documentation build. A fixture exercises the default and custom group variables on Windows and the default variable on Linux.
Verification
GROUP == "Core"assertion fail without the fix and pass with it; the custom group variable also passed.typos, andgit diff --checkpassed.The change affects shared Windows CI: callers that select a group will run that group rather than falling back to
All. Callers using@v1receive the change after the maintainedv1tag is updated.Risk assessment
🤖 Posted by an AI agent — harness: Codex desktop 0.171.0-alpha.13.2 · model: GPT-6 (exact model ID unknown)
Conversation: local session 01a22257-20a4-7960-91bd-006b2ea596b6 (no session URL)
Fix by Codex CLI 0.172.0 gpt-6.2-sol (head 5251892)
The CI matrix sends
ProbeDefaultthroughGROUPandProbeCustomthroughSCIML_WORKFLOW_TEST_GROUP. The fixture checks both variable values, including the absence of the unused key. The Julia helper suite checks that the named documentation and downgrade steps each declare Bash.Local verification
rack ci compare https://github.com/SciML/.github/pull/142reported@f34cd1e: no failed checks. The latest default-branch run at comparison time succeeded.Coreunder either wrong key, and the tightened assertion rejected both("Core", nothing)and(nothing, "Core"). After the fix,julia --project=. -e 'using Pkg; Pkg.test()'reportedTesting WorkflowGroupProbe tests passedfor both Windows-configured lanes on Linux. The Linux lane passed1/1withjulia --project=. test/runtests.jlin the fixture. The same fixture entry point exited 1 with(nothing, "ProbeDefault")and("ProbeCustom", nothing)after swapping the keys.shell: bashline independently madejulia --project=. test/runtests.jlexit 1 withWindows workflow steps select Bash | 3 1 4and a failure in the matching workflow's assertion. With both declarations present, the same command passed withWindows workflow steps select Bash | 4 4and 143 total assertions across 23 testsets.python3 -m unittest discover -s test -p 'test_*.py' -vended withRan 9 testsandOK.julia --project=@runic -m Runic --inplace test/runtests.jl test/fixtures/WorkflowGroupProbe/test/runtests.jland the same command with--checkexited 0.actionlint -shellcheck "$(command -v shellcheck)",git diff --name-only -z upstream/master | xargs -0 typos, andgit diff --check upstream/masterexited 0.Native Windows execution, GitHub's environment-file import, live documentation deployment, and downgrade dependency resolution were outside the local checks.
Next counted review must come from a smart model in a fresh session, not this fix session.
🤖 Posted by an AI agent — harness: Codex CLI 0.172.0 · model: gpt-6.2-sol
Conversation: local session 01a22960-04d2-7811-9e08-96fc8083d3eb (no session URL)
Fix by Codex CLI 0.172.0 gpt-6.2-sol (head 9696ab3)
The reusable workflow writes the group key and value to
GITHUB_ENVusing the Julia installation already set up for the job. The Linux container matrix lane requiresSCIML_WORKFLOW_TEST_GROUP=ProbeCustominPkg.test()withGROUPabsent. The helper suite checks the export step's Julia shell and retains the documentation and downgrade shell assertions.Local verification
rack ci compare https://github.com/SciML/.github/pull/142reported@5251892: no failed checks. The latest default-branch push run succeeded. Default-branch runjulia --project=. test/runtests.jlfailed on the reviewed workflow withReusable workflow step shells | 5 1 6and a failure intests.yml. With the fix, the same command reportedReusable workflow step shells | 6 6and 145 assertions passed across 23 testsets.shand Julia onPATH, the reviewed export returnedexec: bash: not foundand exit 127 without appending a line. The fixed export ran asjulia --startup-file=no, exited 0, preserved existing entries, and appended the expected line for each key.julia --startup-file=no --project=. -e 'using Pkg; Pkg.test()'reportedTesting WorkflowGroupProbe tests passedwith each exported group.ubuntu:24.04container replay, the export ran with onlyshand Julia onPATH. After importing its output,julia --color=no --inline=yes --project=WorkflowGroupProbe julia-runtest/test_harness.jlreportedWorkflow test group | 1 1andTesting WorkflowGroupProbe tests passed. The matrix image includes Bash for the upstream test action, whose registry setup and test steps invoke Bash even with coverage disabled. Upstream action definitionpython3 -m unittest discover -s test -p 'test_*.py' -vreportedRan 9 testsandOK.julia --project=@runic -m Runic --inplace test/runtests.jl test/fixtures/WorkflowGroupProbe/src/WorkflowGroupProbe.jl test/fixtures/WorkflowGroupProbe/test/runtests.jland the same command with--checkexited 0.actionlint -shellcheck "$(command -v shellcheck)",git diff --name-only -z upstream/master | xargs -0 typos, andgit diff --check upstream/masterexited 0.Native Windows execution and GitHub-hosted execution of the new matrix lane await CI.
Next counted review must come from a smart model in a fresh session, not this fix session.
🤖 Posted by an AI agent — harness: Codex CLI 0.172.0 · model: gpt-6.2-sol
Conversation: local session 01a229c3-0653-76f1-9d91-c0c6dbd99d60 (no session URL)