Skip to content

Translate tests: no threshold analysis by default#134

Merged
romanc merged 3 commits into
NOAA-GFDL:developfrom
romanc:romanc/no-threshold-analysis
Apr 17, 2025
Merged

Translate tests: no threshold analysis by default#134
romanc merged 3 commits into
NOAA-GFDL:developfrom
romanc:romanc/no-threshold-analysis

Conversation

@romanc
Copy link
Copy Markdown
Collaborator

@romanc romanc commented Apr 17, 2025

Description

Currently, when translate tests fail, we run 10 (by default) times the same translate test/savepoint again with slightly perturbed inputs. The outputs are then analyzed to give developers an indication on whether errors that they are seeing are in the expected range of "noise propagation" or if this is more likely to be an error in porting.

This goes back to ai2cm/pace#222, which was never finished. Issue #133 was created to re-evaluate that system.

How Has This Been Tested?

Tested locally by setting the environment variable to 0.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas: N/A
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules: N/A
  • New check tests, if applicable, are included: N/A

romanc added 2 commits April 17, 2025 15:14
- fix typos
- capitalize words at the start of a sentence
- add point a point at the end of a sentence
Currently, when translate tests fail, we run 10 (by default) times the
same translate test/savepoint again with slightly perturbed inputs. The
outputs are then analyzed to give developers an indication on whether
errors that they are seeing are in the expected range of "noise
propagation" or if this is more likely to be an error in porting.
@romanc romanc changed the title Romanc/no threshold analysis Translate tests: no threshold analysis by default Apr 17, 2025
Comment thread ndsl/stencils/testing/test_translate.py Outdated
@romanc romanc requested a review from FlorianDeconinck April 17, 2025 14:06
Copy link
Copy Markdown
Collaborator

@FlorianDeconinck FlorianDeconinck left a comment

Choose a reason for hiding this comment

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

LGTM

@romanc romanc merged commit 42590e7 into NOAA-GFDL:develop Apr 17, 2025
@romanc romanc deleted the romanc/no-threshold-analysis branch April 17, 2025 16:08
romanc added a commit to romanc/PyFV3 that referenced this pull request May 30, 2025
Don't set `PACE_TEST_N_THRESHOLD_SAMPLES` in translate tests anymore
since the environment variable was renamed in PR
NOAA-GFDL/NDSL#134 and the default changed to
match the currently configured behavior.
romanc added a commit to romanc/PySHiELD that referenced this pull request May 30, 2025
Don't set `PACE_TEST_N_THRESHOLD_SAMPLES` in translate tests anymore
since the environment variable was renamed in PR
NOAA-GFDL/NDSL#134 and the default changed to
match the currently configured behavior.
gmao-ckung pushed a commit to gmao-ckung/PyFV3 that referenced this pull request Jul 16, 2025
Don't set `PACE_TEST_N_THRESHOLD_SAMPLES` in translate tests anymore
since the environment variable was renamed in PR
NOAA-GFDL/NDSL#134 and the default changed to
match the currently configured behavior.
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.

2 participants