Skip to content

Fix the light tests failure on MacOS - #382

Merged
simopier merged 18 commits into
idaholab:develfrom
lin-yang-ly:fix_failing_tests
Apr 10, 2026
Merged

Fix the light tests failure on MacOS#382
simopier merged 18 commits into
idaholab:develfrom
lin-yang-ly:fix_failing_tests

Conversation

@lin-yang-ly

Copy link
Copy Markdown
Collaborator

(Ref. #380)

@moosebuild

moosebuild commented Mar 11, 2026

Copy link
Copy Markdown

Job Documentation, step Sync to remote on 0f0c001 wanted to post the following:

View the site here

This comment will be updated on new commits.

@moosebuild

moosebuild commented Mar 11, 2026

Copy link
Copy Markdown

Job Coverage, step Generate coverage on ca367b7 wanted to post the following:

Coverage

Coverage did not change

Full coverage report

This comment will be updated on new commits.

@lin-yang-ly

Copy link
Copy Markdown
Collaborator Author

@simopier

Current PR attempt to solve two issues:

  • Test failures between Mac and HPC environments for val-2c, val-2f, and yttrium_hydrogen_system
  • Test failures between single-core and multi-core runs for val-2c and yttrium_hydrogen_system

The first issue is addressed by setting a reasonable rel_err (for val-2c), adjusting the trap_per_free parameter (for val-2f), and adding the automatic_scaling parameter (for yttrium_hydrogen_system).

The second issue is resolved by using PETSc solver parameters (-pc_type lu -pc_factor_mat_solver_type mumps).

For val-2f, the second issue is temporarily deferred, as the new PETSc solver parameters do not fully resolve it. Specifically, the val-2f_light_csv test case exhibits a convergence issue when running with -p 2 --n-threads 2, while it runs without issues using only -p 2.

Besides, recover failures are temporarily ignored for now.

Please let me know if you have any comments!

@cticenhour

Copy link
Copy Markdown
Member

@lin-yang-ly I have been dealing with some similar brittleness for val-2i in #325. I might look at your PR for inspiration, though I think we're doing some similar things already in my most recent commits for that case. Might ask you some questions if I keep running into problems.

@lin-yang-ly

Copy link
Copy Markdown
Collaborator Author

@lin-yang-ly I have been dealing with some similar brittleness for val-2i in #325. I might look at your PR for inspiration, though I think we're doing some similar things already in my most recent commits for that case. Might ask you some questions if I keep running into problems.

Yes, just let me know if you have any questions!

@simopier simopier left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Some minor comments and changes, and this additional request:

In the val-2c documentation, the 67.07% RMSPE value in the text for the calibrate results should be updated to 67.09% (not consequential, but still, let's keep it consistent).

Comment thread test/tests/val-2c/tests Outdated
Comment thread test/tests/val-2c/tests Outdated
Comment thread test/tests/yttrium_hydrogen_system/YHx_PCT.i Outdated
@loganharbour

Copy link
Copy Markdown
Member

@lin-yang-ly in case you didn't see it; https://civet.inl.gov/job/3673706/:

Failed Tests:
--------------------------------------------------------------------------------------------------------------
[3.075s] [ 204MB]     DIFF test:yttrium_hydrogen_system.YHx_PCT_T1273_P3e3_csv FAILED (CSVDIFF) [recover]

@loganharbour loganharbour left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm still getting a diff with the petsc update (idaholab/moose#32404) + these changes:

test:val-2c.val-2c_delay_csv: Running csvdiff: /data/harblh/worktrees/moose/fix-cuda-typo/python/mooseutils/csvdiff.py /data/harblh/projects/tmap8/test/tests/val-2c/gold/val-2c_delay_csv.csv /data/harblh/projects/tmap8/test/tests/val-2c/val-2c_delay_csv.csv --relative-tolerance 3e-05 --abs-zero 1e-08
test:val-2c.val-2c_delay_csv: ERROR: In file val-2c_delay_csv.csv: The values in column "t2_paint_inventory" don't match.
test:val-2c.val-2c_delay_csv: 	relative diff:   9.033e-05 ~ 9.033e-05 = 6.019e-05 (6.019e-05)

Can we change that tolerance?

@lin-yang-ly

lin-yang-ly commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator Author

I'm still getting a diff with the petsc update (idaholab/moose#32404) + these changes:

test:val-2c.val-2c_delay_csv: Running csvdiff: /data/harblh/worktrees/moose/fix-cuda-typo/python/mooseutils/csvdiff.py /data/harblh/projects/tmap8/test/tests/val-2c/gold/val-2c_delay_csv.csv /data/harblh/projects/tmap8/test/tests/val-2c/val-2c_delay_csv.csv --relative-tolerance 3e-05 --abs-zero 1e-08
test:val-2c.val-2c_delay_csv: ERROR: In file val-2c_delay_csv.csv: The values in column "t2_paint_inventory" don't match.
test:val-2c.val-2c_delay_csv: 	relative diff:   9.033e-05 ~ 9.033e-05 = 6.019e-05 (6.019e-05)

Can we change that tolerance?

Yes, we can change abs_zero align with case "val-2c_delay_calibrated_csv". Before that, I am curious that if the issue is from a local machine or on HPC? The reason I ask is I cannot reproduce the same issue on my local with current setting.

@moosebuild

Copy link
Copy Markdown

Job Build test summary, step Build test summary on ca367b7 wanted to post the following:

Test summary

Compared against c837769 in job civet.inl.gov/job/3665797.

No change

@loganharbour

Copy link
Copy Markdown
Member

Before that, I am curious that if the issue is from a local machine or on HPC? The reason I ask is I cannot reproduce the same issue on my local with current setting.

This comes from the new version of PETSc (not available yet). So you won't be able to reproduce it. Once the new moose update goes through (it won't update in TMAP8 cause TMAP8 fails with it), I will update the moose submodule here and we can run it with the new moose environment.

@simopier simopier left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This will be good to go if it passes the tests once @loganharbour adds the latest version of moose here.
Thank you!

@loganharbour

Copy link
Copy Markdown
Member

@lin-yang-ly this has the new MOOSE submodule.

Before working with this branch (because I had to force push to bring things up to date), you should fetch from your own remote and reset to the new branch. You'll also need to update your conda environment to work with this. Let me know if you need any help.

@lindsayad

Copy link
Copy Markdown
Member

we should just skip val-2f here as it will be fixed in #385

Comment thread test/tests/val-2c/tests
Comment on lines -32 to +28
abs_zero = 1e-8
abs_zero = 2e-4

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is too big of a bump. Need some other way to make the test perform consistently

Comment thread test/tests/val-2c/tests
rel_err = 2e-5
max_parallel = 1 # see #200
recover = false # see #196
abs_zero = 2e-4

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same comment

Comment thread test/tests/val-2f/tests

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would revert the large changes here and just skip for now while waiting on #385

cli_args = 'Executioner/nl_rel_tol=6e-6 InterfaceKernels/interface_reaction_YHx_PCT/silence_warnings=true' # should be removed once PCT curve implementation for low pressure is complete
csvdiff = YHx_PCT_out.csv
max_parallel = 1 # see #200
recover = false # see #196

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If we have to add this, then we're still not fixed

Executioner/TimeStepper/growth_factor=1.2
InterfaceKernels/interface_reaction_YHx_PCT/silence_warnings=true' # should be removed once PCT curve implementation for low pressure is complete
csvdiff = YHx_PCT_T1173_P5e4_out.csv
recover = false # see #196

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

shouldn't need

InterfaceKernels/interface_reaction_YHx_PCT/silence_warnings=true' # should be removed once PCT curve implementation for low pressure is complete
csvdiff = YHx_PCT_T1273_P3e3_out.csv
max_parallel = 1 # see #200
recover = false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

shouldn't need

@lin-yang-ly

Copy link
Copy Markdown
Collaborator Author

we should just skip val-2f here as it will be fixed in #385

Sure, I will wait for the approval of #385. After that, I’ll move the current PR forward with updates of val-2f to align the performance between multi-cores and multi-OS.

@simopier
simopier merged commit 0f0c001 into idaholab:devel Apr 10, 2026
2 of 11 checks passed
@lin-yang-ly
lin-yang-ly deleted the fix_failing_tests branch April 10, 2026 14:27
@lindsayad

Copy link
Copy Markdown
Member

Trying to understand why this was merged with over 2 week old testing? 😅

@lindsayad

Copy link
Copy Markdown
Member

And with 2/11 tests passing

@lin-yang-ly

Copy link
Copy Markdown
Collaborator Author

Trying to understand why this was merged with over 2 week old testing? 😅

The work of this PR has been done in #385. Thus, we don't need to continue this PR again. I think the reason it shown this PR is merged is because the work of #385 is based on this branch.

@lindsayad

Copy link
Copy Markdown
Member

So no one clicked the merge button on this PR? Well done tracking GitHub!

@lin-yang-ly

Copy link
Copy Markdown
Collaborator Author

So no one clicked the merge button on this PR? Well done tracking GitHub!

As I know, no one clicked it, and TMAP8 only have the merge history of #385.

@simopier

Copy link
Copy Markdown
Collaborator

That's right, I merged the other one and then came to this one to close it, only to find it "merged" already - by me.

I was even more surprised because the discussions are also not resolved, the tests were not passing... but since everything was addressed and fixed in #385, it's all good.

So Lin is right, Github made the link and closed this one too. I didn't even know it could do that.

@lindsayad

Copy link
Copy Markdown
Member

well, all's well. Good work all

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.

6 participants