Repository navigation
Fix Bash shell selection in Windows reusable workflows - #142
Draft
ChrisRackauckas-Claude wants to merge 3 commits into
Draft
ChrisRackauckas-Claude wants to merge 3 commits into
ChrisRackauckas-Claude wants to merge 3 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please ignore until reviewed by @ChrisRackauckas.
Windows defaults to PowerShell, so Bash commands using
$GITHUB_ENVdo not set the requested test-group environment variable. Declareshell: bashon 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 — inlineJULIA_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.ymlselects only Ubuntu runner labels; the remaining implicit-shell documentation dependency-install command works in both Bash and PowerShell.AGENTS.mdrecords the Windows shell validation rule.Rollout: after merge, a maintainer must move the
v1tag for callers pinned to@v1to pick this up. Windows jobs will run only their declared group: some will run fewer tests than today, and Windows group-specific failures thatAllhid or that never ran will now surface.Likely affected callers with explicit Windows group entries, located through
gh search codeand confirmed by reading their currenttest/test_groups.toml: SimpleBoundaryValueDiffEq.jl (CoreandNoPre), 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@v1and@fix/windows-workflow-shell. The fork's newly createdv1tag points to the unchanged upstream commit41f457c608add5e7edab9173e6f8e979083fb475; the fixed jobs resolved to111c62ceee9e3160d59a26aa2ec656b1bbb292ca. The final commit adds onlyAGENTS.md, with identical tested workflow and fixture contents.The same assertion,
@test selected_group == "Core", fails before and passes after on realwindows-latestrunners (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)Windows after: fixed branch (Bash)
Windows custom variable: fixed branch
Linux (
ubuntu-latest, Julia 1.13.2) is unchanged: before and after both loggedGROUP="Core", selectedCore, and passed 1/1 assertions.Commands used to retrieve this evidence:
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, andJULIA_PKG_OFFLINE=true. From the job directory:From
repo/:Runic, typos, and actionlint exited 0 with no diagnostics. Julia suite: 124/124 assertions across 21 testsets. Output tails:
Also executed the actual downgrade skip-list script locally under Bash and checked that
EFFECTIVE_SKIPcontainsTestand the requested extra skip; executed the documentation command against a tinydocs/make.jlassertingJULIA_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
@v1and 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 fixturePkg.test()pass.[skip ci]. An empty commit (d3e0edc) now triggers it, and the threeworkflow-group-testslegs plusactionlintneed to be green before merge. Windows legs of callers that passgroupwill run only that group oncev1moves. (review kept by the fleet master)v1tag 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)