Repository navigation
Downgrade CI: split Core, AD and Enzyme into separate jobs - #83
Merged
Merged
Conversation
The Downgrade lane ran GROUP=All, which activates test/AD and test/Enzyme one after the other in the same Julia process. Since UnsafeAtomics 0.4 the AD env loads LLVM.jl 10, while every Enzyme release still requires LLVM.jl 9 and resolves GPUCompiler 2.10. With LLVM 10 already loaded, `using Enzyme` recompiles GPUCompiler 2.10 against it and fails with `UndefVarError: IRBuilder not defined`. Running Core, AD and Enzyme as separate matrix jobs (as Tests.yml already does) keeps each group in its own process with its own resolved LLVM.jl. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Devin <noreply@cognition.ai> Agent-Harness: Devin CLI 3000.11.92 Agent-Model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium Agent-Session: local headless Devin run (fleet master green lane; no session URL)
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.
This fixes a failure on the default branch's CI. The diagnosis and the evidence below come from the investigating agent's report; "confirmed by running" and "read in logs" are kept apart there.
Downgrade Tests (lts):
UndefVarError: IRBuilder not definedin GPUCompiler 2.10.0, so Enzyme fails to precompileError
Seen in the Downgrade job on Julia 1.10, while the
Enzyme/enzyme_forward_tests.jltest set runs:Both runs below fail the same way. In both, the AD env resolves LLVM v10.2.1 and UnsafeAtomics v0.4.0, and the Enzyme env resolves Enzyme v0.13.216, GPUCompiler v2.10.0 and LLVM v9.13.2.
In that green run the AD env did not contain LLVM.jl at all (UnsafeAtomics was v0.3.2), and the Enzyme env had Enzyme 0.13.204, GPUCompiler 1.23.0 and LLVM 9.13.1.
Cause
The trigger is an upstream dependency release. What makes it fatal is how this repo's Downgrade lane is structured.
.github/workflows/Downgrade.ymlcalls the shared SciML downgrade workflow without agroup, soGROUPis empty and SciMLTesting runs"All". That means Core, thentest/AD, thentest/Enzyme, all in one Julia process. Each group with its ownProject.tomlis resolved separately but activated in that same process, so a package loaded by an earlier group stays loaded for later ones. Tests.yml runs AD and Enzyme as separate jobs and is green, including on Julia lts.using Trackernow loads LLVM.jl 10.2.1."0.13.167 - 0" => LLVM = "9.10.0 - 9"). So the Enzyme env gets GPUCompiler 2.10.0, the last GPUCompiler that works with LLVM 9 (2.11+ requires LLVM 10).using Enzyme, LLVM 10.2.1 is already loaded. Julia therefore rebuilds the GPUCompiler 2.10.0 cache against the LLVM that is already in memory. LLVM.jl 10 no longer hasIRBuilder, so loading fails. The log also says "dependencies precompiled but different versions are currently loaded".Nothing in FastPower changed. PR #82 only touched the QA test env, and the failure starts with the UnsafeAtomics/Atomix releases between 2026-09-22 and 2026-10-15.
Confirmed by running (local,
julia +lts1.10.12)I ran this on a copy of main with the root env pinned to the versions CI's downgrade step picked (
PrecompileTools =1.2.0,SciMLTesting =2.4.0,SafeTestsets =0.1.0):GROUP=AllUndefVarError: `IRBuilder` not definedatGPUCompiler/.../interface.jl:348, "Failed to precompile Enzyme". The log shows "1 dependency precompiled but a different version is currently loaded".GROUP=CoreGROUP=ADGROUP=EnzymeA separate script that loads both envs in one process (activate the AD env,
using Tracker, then activate the Enzyme env,using Enzyme) printsAD loaded LLVM version: 10.2.1.using Enzymethen fails with the same IRBuilder error.Read in logs or the registry (not run)
2.3 - 2.10needs LLVM 9,2.11 - 2needs LLVM 10), Enzyme (needs LLVM 9).Existing PRs
Fix
.github/workflows/Downgrade.ymlnow uses afail-fast: falsematrix overgroup: [Core, AD, Enzyme]and passesgroup: "${{ matrix.group }}"toSciML/.github/.github/workflows/downgrade.yml@v1, which has agroupinput. Other SciML repos already use this pattern, for example RecursiveArrayTools.jl."All"now runs in its own job and process, as in Tests.yml, so every downgrade test still runs and none are skipped. QA was never part of"All", andCore 32-bitis just another name for Core, so neither is affected.mainis off and the ruleset sets no required status checks. The check names change to one per group.GROUP=Allfails, which is what the old workflow ran, and the three groups pass when run separately, which is what the new workflow runs. No Julia test file changed, and no test was skipped, marked broken or loosened.yaml.safe_load, andtyposis clean.actionlintis not installed, so it was not run. Runic is not needed because no Julia files changed. The change has not run on GitHub Actions, since nothing was pushed.Pkg.test(), which defaults to"All", still hits this clash on any Julia version until Enzyme supports LLVM.jl 10. This fix only covers the CI Downgrade lane.Local logs:
scratch/logs/{all,core,ad,enzyme,inproc}.log.Links
🤖 Posted by an AI agent — harness: Devin CLI 3000.11.92 (fix), Claude Code 2.1.300 (PR) · model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium / claude-opus-5-5
Conversation: https://claude.ai/code/session_01VZjwf7Ux9YtTzwHGHMqnsq (fleet master)
🤖 Generated with Claude Code
Independent review (added by the fleet master)
Risk assessment
🤖 Section added by an AI agent — harness: Claude Code 2.1.300 · model: claude-opus-5-5 (review by codex-cli 0.162.1, gpt-6.1-sol)
Conversation: https://claude.ai/code/session_01VZjwf7Ux9YtTzwHGHMqnsq