Skip to content

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.

@tm91236 tm91236 mentioned this pull request Jun 17, 2025
9 tasks
@tm91236
Copy link
Member Author

tm91236 commented Jun 17, 2025

Moved to #1048

@tm91236 tm91236 closed this Jun 17, 2025
@tm91236 tm91236 deleted the fix/unreliable-tests branch July 7, 2025 06:44
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