Skip to content

Tests: make Enzyme optional in the test environment (PS_TEST_AD) - #239

Merged
luraess merged 1 commit into
mainfrom
lr/optional-enzyme
Oct 23, 2026
Merged

luraess merged 1 commit into
mainfrom
lr/optional-enzyme

Conversation

@luraess

@luraess luraess commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

On Julia pre (1.14) the test environment could not be built: Enzyme depends on GPUCompiler, whose LLVM.jl dependency has no LLVMExtra_jll build for LLVM 23 yet. The same lag recurs with every new Julia release.

Changes

  • Enzyme is no longer a dependency of test/Project.toml. The test runner installs it into the temporary test environment unless PS_TEST_AD=0 (same mechanism as for the GPU backend selected with PS_TEST_BACKEND).
  • test/packages.jl sets TEST_AD (Enzyme installed) and imports Enzyme accordingly; the ad numerical testset of test/ParallelKernel/test_parallel.jl is skipped without it. The AD expansion tests only compare generated code and run regardless.
  • The pre job of GitHub Actions runs with PS_TEST_AD=0; all other jobs keep testing AD.
  • Testing page: PS_TEST_AD documented.

Validation

Daint login node (GH200 GPUs): with the defaults the runner installs Enzyme and the AD tests run (CUDA); with PS_TEST_AD=0 Enzyme is not installed and the AD testset is skipped.

🤖 Generated with Claude Code

Enzyme (through GPUCompiler and LLVM.jl) typically lags behind new Julia releases, which
made the test environment unbuildable on Julia pre. The test runner now installs Enzyme
into the test environment unless PS_TEST_AD=0, and the tests of automatic differentiation
are skipped without it; the Julia pre job runs with PS_TEST_AD=0.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@codecov-commenter

codecov-commenter commented Oct 23, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.61%. Comparing base (652350d) to head (ad43550).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@luraess
luraess merged commit d6dd764 into main Oct 23, 2026
10 checks passed
@luraess
luraess deleted the lr/optional-enzyme branch October 23, 2026 06:40
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