libmesh icon indicating copy to clipboard operation
libmesh copied to clipboard

Add test for ShellMatrix

Open BalticPinguin opened this issue 1 year ago • 15 comments

Following @roystgnr s comment 'we don't have test coverage', here is some. It doesn't cover too much; but maybe it at least is a And it would have covered the issue #3602 .

BalticPinguin avatar Jul 31 '23 13:07 BalticPinguin

I didn't think we'd turned on whitespace requirements for libMesh, even on just "spaces vs tabs"... The fact that the error message is giving MOOSE formatting rather than libMesh formatting advice isn't a good sign.

You might try the contrib/bin/reindent.sh script, or if you don't have emacs on your system let me know and I can push a commit with whitespace fixes.

roystgnr avatar Jul 31 '23 15:07 roystgnr

sorry for the repeated pushing; I got messed up with rebasing these few lines...

BalticPinguin avatar Jul 31 '23 17:07 BalticPinguin

hm; you run unit-tests with ./unit_tests-opt -pc_type asm -pc_asm_overlap 4 ..... ; but this is not supported by shell-matrices. I can define a SolverConfiguration-object, where I set PCType to NONE, which overrides the command line option. Do you consider this cheating on the test (since I simply bypass the specified options)?

BalticPinguin avatar Jul 31 '23 20:07 BalticPinguin

Make sure it doesn't fail (even if only because it's #ifdefed out) on non-PETSc builds; if so, that'd be a very good solution. IIRC we use those options on examples because they make some of the trickier Jacobians more robust to partitioning, and we only even use them on unit tests by accident, because the same make check invokes both.

roystgnr avatar Jul 31 '23 20:07 roystgnr

What is the reason that the civet-tests don't run? Is there something I can do about? Best regards

BalticPinguin avatar Aug 08 '23 21:08 BalticPinguin

We were having Civet issues, so perhaps the trigger never triggered? Try rewording a commit message or rebasing on master or something and then force push to see if it'll trigger a run now?

roystgnr avatar Aug 09 '23 22:08 roystgnr

Job Test MOOSE mac on 6f6a14f : invalidated by @jwpeterson

Retry after CI issues resolved

moosebuild avatar Aug 18 '23 14:08 moosebuild

Job Test with threads on 6f6a14f : invalidated by @jwpeterson

Retry after CI issues resolved

moosebuild avatar Aug 18 '23 14:08 moosebuild

Job Test debug on 6f6a14f : invalidated by @jwpeterson

Retry after CI issues resolved

moosebuild avatar Aug 18 '23 14:08 moosebuild

Job Test clang on 6f6a14f : invalidated by @jwpeterson

Retry after CI issues resolved

moosebuild avatar Aug 18 '23 14:08 moosebuild

Job Test 32bit on 6f6a14f : invalidated by @jwpeterson

Retry after CI issues resolved

moosebuild avatar Aug 18 '23 14:08 moosebuild

Job Distributed make check sweep (odd) on 6f6a14f : invalidated by @jwpeterson

Retry after CI issues resolved

moosebuild avatar Aug 18 '23 14:08 moosebuild

Job Distributed make check sweep (even) on 6f6a14f : invalidated by @jwpeterson

Retry after CI issues resolved

moosebuild avatar Aug 18 '23 14:08 moosebuild

@BalticPinguin there seems to be a real issue with your PR which is causing the unit tests (presumably due to your new test) to time out, which subsequently causes them to be automatically cancelled. For example, in the "Test with threads" test, you can see that the unit tests are running for an hour, which is not normal:

CIVET: Cancelling job due to step taking longer than the max 3600 seconds

I haven't looked into what might be causing this yet, but it seems at least possible that the issue is related to threads or to the new unit test running in parallel, so I'd suggest to start your investigation there.

jwpeterson avatar Aug 18 '23 20:08 jwpeterson

Thank you @jwpeterson for the hint: I haven't noticed the 'threads'-part. When adding this, I can reproduce the behaviour; I'll look into this soon.

BalticPinguin avatar Aug 21 '23 15:08 BalticPinguin