Skip to content
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

fix flaky mixed precision failures in tests #386

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

halungge
Copy link
Contributor

Adds a cleanup to the cli() fixture that resets the precision to 'double': This should fix the flaky mixed precision failures that we have on CI runs.

The failures come from this test : tools/tests/icon4pygen/test_codegen.py::test_mixed_precision_option(cli) -> None: that leaves the environment variable changed after it exited.

@halungge
Copy link
Contributor Author

cscs-ci run default

@halungge
Copy link
Contributor Author

launch jenkins spack

Copy link
Collaborator

@edopao edopao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link

Mandatory Tests

Please make sure you run these tests via comment before you merge!

  • cscs-ci run default
  • launch jenkins spack

Optional Tests

To run benchmarks you can use:

  • cscs-ci run benchmark

To run tests and benchmarks with the DaCe backend you can use:

  • cscs-ci run dace

In case your change might affect downstream icon-exclaim, please consider running

  • launch jenkins icon

For more detailed information please look at CI in the EXCLAIM universe.

Copy link
Contributor

@samkellerhals samkellerhals left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super happy you found this bug, it's been annoying me for a while now and I couldn't figure out what was causing it. BTW I moved the fixture to conftest.py since it's also used by liskov tests

@samkellerhals
Copy link
Contributor

cscs-ci run default

@halungge
Copy link
Contributor Author

launch jenkins spack

@halungge halungge merged commit f50aec0 into main Feb 20, 2024
5 checks passed
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.

3 participants