Repository navigation
Pin the 0.00s guard contract, not host speed - #309
Merged
Merged
Conversation
test_run_fortran_rejects_sub_resolution_config bet that 8ch x 2000 samples always stamps 0.00 s per iteration; a loaded weekly-run macOS runner crossed one 0.01 stamp and the guard rightly had nothing to reject (issue #308, first weekly failure). The test now asserts the guard's actual contract -- either the named sub-resolution error, or a mean at least one stamp over the timed iterations, never a bogus 0.0 -- so both legitimate outcomes pass. Verified against the real bundled amica15mac binary locally.
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.
Fixes the first weekly macOS slow-run failure (issue #308). The failure was environmental, not a regression:
test_run_fortran_rejects_sub_resolution_configassumed 8ch x 2000 samples always runs under amica's ~10 ms out.txt stamp resolution, and a loaded runner crossed one 0.01 stamp, so_run_fortrancorrectly returned a nonzero mean and the expected RuntimeError never fired. Nothing in the failing commit range touched this path.The test now pins the guard's actual contract:
_run_fortraneither raises the named "rounds to 0.00 s" error (fast host) or returns a mean of at least one 0.01 stamp over the 7 timed iterations (loaded host) -- never a bogus 0.0 ms/iter, which is the bug the guard exists to prevent.Tested by running the rewritten test against the real bundled
amica15macviaAMICA_FORTRAN_BIN(passes on this machine through the raise branch); the weekly run exercises the built native binary. Test-only change.Closes #308