Skip to content

Add processing and comparison of ctests in JEDI builds#778

Open
mranst wants to merge 4 commits intodevelopfrom
feature/mranst/jedi_ctest_comparisons
Open

Add processing and comparison of ctests in JEDI builds#778
mranst wants to merge 4 commits intodevelopfrom
feature/mranst/jedi_ctest_comparisons

Conversation

@mranst
Copy link
Copy Markdown
Collaborator

@mranst mranst commented May 6, 2026

Description

Addressing #699 and #442, this PR adds tasks to run ctests for selected bundles within JEDI, and compare the number passed between two builds. I'm envisioning this being a part of tier2 tests by running ctests for fv3-jedi whevever JEDI is built nightly, then confirming the same tests pass as the previous pinned version (For fv3-jedi, at least, there's always some that fail). It's currently geared to run for fv3-jedi, but can theoretically work for any JEDI bundle

Output of CompareJediCtests looks like this:

CTL: /discover/nobackup/manstett/SwellExperiments/swell-build_jedi/swell-build_jedi-suite/experiment.yaml
EXP: /discover/nobackup/manstett/SwellExperiments/swell-build_jedi/swell-build_jedi-suite/experiment.yaml

fv3-jedi                               CTL   EXP
fv3jedi_staticb_nicas_gfs              Fail  Fail
fv3jedi_hofx_nomodel_abi_radii         Fail  Fail
fv3jedi_staticb_split_nicas_gfs        Fail  Fail
fv3jedi_hyb                            Fail  Fail
fv3jedi_staticb_dirac_local_gfs_12pe   Fail  Fail
fv3jedi_staticb_cor_geos               Fail  Fail
fv3jedi_staticb_dirac_local_gfs_6pe    Fail  Fail
fv3jedi_staticb_nicas_geos             Fail  Fail
fv3jedi_staticb_dirac_global_gfs_6pe   Fail  Fail
fv3jedi_staticb_dirac_global_gfs_12pe  Fail  Fail

@mer-a-o
Copy link
Copy Markdown
Contributor

mer-a-o commented May 7, 2026

@mranst, Can you please add documentation for this new feature?

width_col_2 = max(len('Fail'), len(experiment_tag_2)) + 2

for bundle in bundles:
max_width = max(len(bundle), max([results_dict[bundle][test]['width']
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What will happen here if all ctests pass for both experiments?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

There wouldn't be any tests listed, I've added a line specifying all tests pass. If all tests fail for both, this task would pass, I rely on the user to ensure that the control build is acceptable

Comment thread src/swell/tasks/run_jedi_ctests.py Outdated
Comment thread src/swell/swell.py Outdated
@mer-a-o mer-a-o self-requested a review May 8, 2026 21:04
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