Add AllocCheck allocation tests and CI job - #26
Merged
ChrisRackauckas merged 1 commit intoJan 8, 2026
Merged
Conversation
This adds allocation testing to SurrogatesBase to help ensure that implementations can be allocation-free. Since SurrogatesBase is an interface package with no concrete implementations, these tests serve as examples for downstream packages. Changes: - Add AllocCheck to test dependencies - Add test/alloc_tests.jl with example allocation-free surrogate tests - Add alloccheck CI job in Tests.yml running with GROUP=nopre Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Member
Author
CI StatusThe All tests pass on:
The macOS jobs are still pending but should also pass. |
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.
Summary
AllocCheckto test dependencies for allocation testingtest/alloc_tests.jlwith example allocation-free surrogate implementation testsalloccheckCI job in Tests.yml running withGROUP=nopreContext
SurrogatesBase.jl is an interface package that defines abstract types (
AbstractDeterministicSurrogate,AbstractStochasticSurrogate) and function stubs (update!,parameters, etc.). Since there are no concrete implementations to optimize, this PR adds allocation testing infrastructure that:@check_allocsfrom AllocCheck.jl to verify zero allocationsThe allocation tests run in a separate "nopre" group to avoid interference with precompilation.
Test plan
GROUP=noprecc @ChrisRackauckas
🤖 Generated with Claude Code