Skip to content

fix: attempt to improve test reliability. #1037

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tm91236
Copy link
Member

@tm91236 tm91236 commented May 22, 2025

Closes #1034

PR Type

  • Tests

Description

The test_jit_test and test_speed_comparision_test now both use a similar test methodology, explicitly adding a fixed time delay to the jit compilation process, which will not exist in the compiled code. This makes the test intent clearer and should reduce the possibility that random timing fluctations cause unexpected test failures.

How Has This Been Tested?

Existing tests pass as expected.

Does this PR introduce a breaking change?

No

Checklist before requesting a review

  • I have made sure that my PR is not a duplicate.
  • My code follows the style guidelines of this project.
  • I have ensured my code is easy to understand, including docstrings and comments where necessary.
  • I have performed a self-review of my code.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.
  • I have updated CHANGELOG.md, if appropriate.

Copy link
Contributor

Performance review

Commit 10e20f4 - Merge 075a259 into 60be706

No significant changes to performance.

@tm91236 tm91236 force-pushed the fix/unreliable-tests branch from 075a259 to d62c4d8 Compare May 22, 2025 10:59
The `test_jit_test` and `test_speed_comparision_test` now both use
a similar test methodology, explicitly adding a fixed time delay to
the jit compilation process, which will not exist in the compiled
code. This makes the test intent clearer and should reduce the
possibility that random timing fluctations cause unexpected test
failures.

refs: #1034
@tm91236 tm91236 force-pushed the fix/unreliable-tests branch from d62c4d8 to 2a45cdc Compare May 22, 2025 11:01
Copy link
Contributor

Performance review

Commit ebea3c6 - Merge 2a45cdc into 60be706

No significant changes to performance.

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.

Make the test for speed_comparison_test more reliable
1 participant