Skip to content
Snippets Groups Projects
Commit 16b9ae40 authored by Jameson Graef Rollins's avatar Jameson Graef Rollins
Browse files

tests compare against git hash, eliminate cached .h5

This updates the test infrastructure to store a git hash of the reference
code, instead of generated .h5 files.  The test infrastructure creates a
cache of reference .h5 files from the specified git hash if it doesn't
already exist, and then compares against that cache.

Comparisons against arbitrary git hashes can be specified manually.
The cache curves are generated from a shell script so that it uses the
checkout of the python code at the reference commit.  Multiple caches based
on git references are stored, and old caches are automatically pruned to
keep just the latest five.

This gets rid of the need for git-lfs and the cached .h5 files, requiring
instead the code be checked out from git to run the tests.
parent a6caffc0
No related branches found
No related tags found
1 merge request!82MR approval check for noise changes
This commit is part of merge request !80. Comments created here will be created in the context of that merge request.
......@@ -27,6 +27,7 @@ logging.basicConfig(
level=os.getenv('LOG_LEVEL', logging.INFO))
FREQ = np.logspace(np.log10(5), np.log10(6000), 3000)
TOLERANCE = 1e-6
CACHE_LIMIT = 5
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment