Skip to content

Run examples in isolated test processes#771

Open
AshtonSBradley wants to merge 1 commit intoJuliaGPU:mainfrom
AshtonSBradley:appleaccelerate-fft-coexistence
Open

Run examples in isolated test processes#771
AshtonSBradley wants to merge 1 commit intoJuliaGPU:mainfrom
AshtonSBradley:appleaccelerate-fft-coexistence

Conversation

@AshtonSBradley
Copy link
Copy Markdown

@AshtonSBradley AshtonSBradley commented May 5, 2026

Examples may load packages that mutate global numerical-library state, such as AppleAccelerate. When examples are included directly in the package test runner, that state can leak into unrelated tests scheduled later on the same worker.

This keeps example coverage, but runs each example in a fresh Julia process with the example project active and TESTING=true. That makes the test suite independent of example load order and avoids example-only dependencies contaminating later package tests.

One example where this matters is #713, which adds FFT tests that should not depend on whether the flops comparison example loaded AppleAccelerate earlier on the same worker. The same isolation should help any future example that pulls in process-global state.

Type stability / allocation impact: this changes only how examples are run during tests. There is no public API or package runtime impact. Example tests now pay one Julia process startup per example in exchange for hermetic test state.

@AshtonSBradley AshtonSBradley force-pushed the appleaccelerate-fft-coexistence branch from fdc578e to 8604073 Compare May 5, 2026 07:38
@AshtonSBradley AshtonSBradley marked this pull request as ready for review May 5, 2026 07:39
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.

1 participant