Skip to content

Set up Julia in formatter workflow - #88

Closed
ChrisRackauckas-Claude wants to merge 1 commit into
SciML:mainfrom
ChrisRackauckas-Claude:codex/fix-format-pr-julia-setup
Closed

ChrisRackauckas-Claude wants to merge 1 commit into
SciML:mainfrom
ChrisRackauckas-Claude:codex/fix-format-pr-julia-setup

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Sep 1, 2026 •

Copy link
Copy Markdown
Member

Ignore this PR until it has been reviewed by @ChrisRackauckas.

What changed and why

The scheduled formatter workflow invoked julia without first provisioning it. That happened to work on GitHub-hosted Ubuntu images, but run 671 was assigned to an organization self-hosted runner without Julia and failed before JuliaFormatter could be installed. This adds the documented julia-actions/setup-julia@v3 step with Julia 1; the formatter commands and all package code remain unchanged.

History inspection and a repository bisect identified 786de00a76ddebade7acd7d0aa00f76402bd256e (Setup CI) as the first bad commit: it introduced FormatPR.yml with the ambient-Julia assumption.

Failing before

The hosted job checked out d39e0b9d2438e92b6133258d5c4c73461f402fc3 on runner self-hosted-4vcpu-16gb-486tp-runner-vm2rb and reported:

julia: command not found
Process completed with exit code 127.

The same absence is reproducible locally with a clean runner-like PATH:

$ env PATH=/usr/bin:/bin bash -e -c "julia -e 'using Pkg; Pkg.add(PackageSpec(name=\"JuliaFormatter\"))'"
bash: line 1: julia: command not found
baseline_exit=127

The predicate used for the bisect treats a present formatter workflow without julia-actions/setup-julia as bad:

$ git bisect start d39e0b9d2438e92b6133258d5c4c73461f402fc3 '786de00^'
$ git bisect run bash -c 'if test ! -f .github/workflows/FormatPR.yml; then exit 0; fi; rg -q "julia-actions/setup-julia" .github/workflows/FormatPR.yml'
786de00a76ddebade7acd7d0aa00f76402bd256e is the first bad commit

Passing after

The same setup predicate now passes and verifies ordering:

workflow_setup_assertion=pass setup_line=13 formatter_line=16

I ran the workflow's exact formatter commands with Julia 1.12.4 in a disposable checkout and workspace-local depot:

$ julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
Installed JuliaFormatter v2.13.0
$ julia -e 'using JuliaFormatter; format(".")'
formatter_exit=0

The expected formatter changes were confined to that disposable checkout, which was removed after validation.

Additional checks:

$ actionlint .github/workflows/FormatPR.yml
# exit 0
$ typos .github/workflows/FormatPR.yml
# exit 0
$ git diff --check
# exit 0
$ julia -m Runic --check --diff .
# exit 0
$ GROUP=QA julia --project -e 'using Pkg; Pkg.test()'
Test Summary:     | Pass  Total     Time
QA/alloc_tests.jl |   11     11  1m18.0s
Test Summary: | Pass  Total     Time
QA/qa.jl      |   20     20  1m07.5s
Testing FastAlmostBandedMatrices tests passed

Hosted verification

All 17 hosted checks passed on the PR head. The final BoundaryValueDiffEq downstream job passed in 55m55s:

https://github.com/SciML/FastAlmostBandedMatrices.jl/actions/runs/33467336935/job/99729814812

Not verified

  • The schedule-only workflow was not executed end-to-end from this branch; doing so would also exercise its write/PR-creation step.
  • Core and documentation builds were not run because this PR changes only workflow provisioning and does not touch package code, tests, docstrings, or docs.

Links

🤖 Generated with Codex CLI 0.151.0 (model: gpt-5.6-sol; session: local session ID 01a0598f-11b9-72d1-91d9-b2fbb186557d)

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: OpenAI Codex <noreply@openai.com>
Agent-Harness: Codex CLI 0.151.0
Agent-Model: gpt-5.6-sol
Agent-Session: local session ID 01a0598f-11b9-72d1-91d9-b2fbb186557d
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