Skip to content

Fix Bash shell selection in Windows reusable workflows - #142

Draft
ChrisRackauckas-Claude wants to merge 3 commits into
SciML:masterfrom
ChrisRackauckas-Claude:fix/windows-workflow-shell
Draft

ChrisRackauckas-Claude wants to merge 3 commits into
SciML:masterfrom
ChrisRackauckas-Claude:fix/windows-workflow-shell

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

🚧 UNREVIEWED — awaiting review by @ChrisRackauckas. Filed by an AI agent running as @ChrisRackauckas; Chris has not seen this.
Harness: Codex CLI · Model: gpt-6.1-sol
Conversation: local job winsgroup-codex (no session URL)

Please ignore until reviewed by @ChrisRackauckas.

Windows defaults to PowerShell, so Bash commands using $GITHUB_ENV do not set the requested test-group environment variable. Declare shell: bash on all three affected Windows-capable steps found by auditing the 17 reusable workflows, and add a tiny Julia fixture to check group propagation on Linux and Windows in self-CI.

Affected steps:

  • tests.yml: Set test group env — writes the configurable group variable to $GITHUB_ENV.
  • downgrade.yml: Compute effective downgrade skip list — Bash assignments, command substitution, arrays, conditionals, and $GITHUB_ENV.
  • documentation.yml: Build and Deploy Documentation — inline JULIA_DEBUG="Documenter" environment assignment.

The audit covered all 31 run: steps. Other Bash steps already select Bash or are constrained to Linux. In particular, sublibrary-downgrade.yml selects only Ubuntu runner labels; the remaining implicit-shell documentation dependency-install command works in both Bash and PowerShell. AGENTS.md records the Windows shell validation rule.

Rollout: after merge, a maintainer must move the v1 tag for callers pinned to @v1 to pick this up. Windows jobs will run only their declared group: some will run fewer tests than today, and Windows group-specific failures that All hid or that never ran will now surface.

Likely affected callers with explicit Windows group entries, located through gh search code and confirmed by reading their current test/test_groups.toml: SimpleBoundaryValueDiffEq.jl (Core and NoPre), DiffEqCallbacks.jl, ExponentialUtilities.jl, FindFirstFunctions.jl, and PureGebal.jl. This is a targeted sample, not a census.

Verification

The minimal probe repository calls ChrisRackauckas-Claude/.github/.github/workflows/tests.yml@v1 and @fix/windows-workflow-shell. The fork's newly created v1 tag points to the unchanged upstream commit 41f457c608add5e7edab9173e6f8e979083fb475; the fixed jobs resolved to 111c62ceee9e3160d59a26aa2ec656b1bbb292ca. The final commit adds only AGENTS.md, with identical tested workflow and fixture contents.

The same assertion, @test selected_group == "Core", fails before and passes after on real windows-latest runners (Windows Server 2025, Julia 1.13.2). The probe run is intentionally red because the before-Windows job fails; the other four jobs pass.

Windows before: @v1 (pwsh)

GROUP=""
SCIML_WORKFLOW_TEST_GROUP=""
Selected test group="All"
   Evaluated: "" == "Core"
Test Summary:       | Fail  Total  Time
Workflow test group |    1      1  1.9s

Windows after: fixed branch (Bash)

GROUP="Core"
SCIML_WORKFLOW_TEST_GROUP=""
Selected test group="Core"
Test Summary:       | Pass  Total  Time
Workflow test group |    1      1  0.0s
     Testing WorkflowGroupProbe tests passed 

Windows custom variable: fixed branch

GROUP=""
SCIML_WORKFLOW_TEST_GROUP="Core"
Selected test group="Core"
Test Summary:       | Pass  Total  Time
Workflow test group |    1      1  0.0s
     Testing WorkflowGroupProbe tests passed 

Linux (ubuntu-latest, Julia 1.13.2) is unchanged: before and after both logged GROUP="Core", selected Core, and passed 1/1 assertions.

Commands used to retrieve this evidence:

gh run view 39075716351 -R ChrisRackauckas-Claude/sciml-workflow-group-probe --json status,conclusion,jobs
gh api --allow-escape-sequences repos/ChrisRackauckas-Claude/sciml-workflow-group-probe/actions/jobs/117522325668/logs > scratch/job-117522325668.log
gh api --allow-escape-sequences repos/ChrisRackauckas-Claude/sciml-workflow-group-probe/actions/jobs/117522325553/logs > scratch/job-117522325553.log
gh api --allow-escape-sequences repos/ChrisRackauckas-Claude/sciml-workflow-group-probe/actions/jobs/117522325459/logs > scratch/job-117522325459.log
gh api --allow-escape-sequences repos/ChrisRackauckas-Claude/sciml-workflow-group-probe/actions/jobs/117522325601/logs > scratch/job-117522325601.log
gh api --allow-escape-sequences repos/ChrisRackauckas-Claude/sciml-workflow-group-probe/actions/jobs/117522325602/logs > scratch/job-117522325602.log

Local checks used a job-local writable depot with the shared depot as a read-only fallback, JULIA_NUM_THREADS=1, JULIA_NUM_PRECOMPILE_TASKS=1, and JULIA_PKG_OFFLINE=true. From the job directory:

julia --project=<local path> -e 'using Runic; exit(Runic.main(ARGS))' -- --check repo/test/fixtures/WorkflowGroupProbe/src/WorkflowGroupProbe.jl repo/test/fixtures/WorkflowGroupProbe/test/runtests.jl

From repo/:

typos AGENTS.md .github/workflows/ci.yml .github/workflows/tests.yml .github/workflows/downgrade.yml .github/workflows/documentation.yml test/fixtures/WorkflowGroupProbe
actionlint -oneline
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s test -p 'test_*.py' -v
timeout 3600 julia --startup-file=no --project=. test/runtests.jl
GROUP=Core timeout 3600 julia --startup-file=no --project=test/fixtures/WorkflowGroupProbe -e 'using Pkg; Pkg.test()'

Runic, typos, and actionlint exited 0 with no diagnostics. Julia suite: 124/124 assertions across 21 testsets. Output tails:


----------------------------------------------------------------------
Ran 9 tests in 0.024s

OK
Test Summary:                                                 | Pass  Total  Time
auto-precompile input is plumbed to JULIA_PKG_PRECOMPILE_AUTO |    9      9  0.0s
Test Summary:                                         | Pass  Total  Time
sublibrary downgrade restores project metadata for QA |    3      3  0.0s
     Testing Running tests...
GROUP="Core"
SCIML_WORKFLOW_TEST_GROUP=""
Selected test group="Core"
Test Summary:       | Pass  Total  Time
Workflow test group |    1      1  0.0s
     Testing WorkflowGroupProbe tests passed 

Also executed the actual downgrade skip-list script locally under Bash and checked that EFFECTIVE_SKIP contains Test and the requested extra skip; executed the documentation command against a tiny docs/make.jl asserting JULIA_DEBUG == "Documenter". Both exited 0.

Not verified: full documentation builds/deployment and full downgrade workflows on Windows; macOS, self-hosted runners, and downstream package suites. The commit ad3dfb8 carries [skip ci]; a later empty commit triggers the upstream Actions runs. Independent review is pending.

Links

Risk assessment

  • Risk: high
  • Blast radius: shared Windows CI group selection, Windows downgrade environment setup, and Windows documentation invocation across callers; no public Julia API changes. Test coverage per Windows job can shrink or expose previously untested group failures.
  • Evidence: the identical assertion fails on Windows at @v1 and passes with the fix; Linux passes before and after; custom-variable Windows case passes; local Runic/typos/actionlint, 124 Julia assertions, nine Python tests, and fixture Pkg.test() pass.
  • Independent review: Devin SWE-2 Fusion (Opus 5.5, fusion-claude-opus-5-5-high-sidekick-swe-2-medium) rated it high (H5: change to the org-wide reusable workflows). Verdict MERGE with no blocking findings: the diff is small and correct, and H5 means Chris decides. Non-blocking: SciML CI had not run on this PR because the earlier head carried [skip ci]. An empty commit (d3e0edc) now triggers it, and the three workflow-group-tests legs plus actionlint need to be green before merge. Windows legs of callers that pass group will run only that group once v1 moves. (review kept by the fleet master)
  • Merge: needs human review: org-wide CI infrastructure (H5). After merge, a maintainer must move the v1 tag for callers to pick it up.

🤖 Generated with Codex CLI (model: gpt-6.1-sol) — local transcript:


🤖 Posted by an AI agent — harness: Codex CLI · model: gpt-6.1-sol
Conversation: local job winsgroup-codex (no session URL)

ChrisRackauckas and others added 3 commits October 17, 2026 18:35
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants