You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://github.com/davidsd/sdpb/blob/b359336/test/run_test.sh#L31 "write profile" test in test/run_test.sh does not actually check that profiles are written to disk.
Profile for rank=0 is not written, El::mpi::Abort() is called, but the test nevertheless "passes".
Repro
(checked on Expanse cluster and on a laptop with WSL+Ubuntu)
(i.e. do not remove test/io_tests/ after run and do not redirect output to /dev/null)
run ./test/run_test.sh, see at the end of output:
Process 0 caught error message:
Error when writing to: test/io_tests/profile_error.profiling.0
PASS write profile
Observe that test/io_tests/profile_error.profiling.0 is empty (at the same time test/io_tests/profile_error.profiling.1 is OK).
The text was updated successfully, but these errors were encountered:
vasdommes
changed the title
run_test.sh: "PASS write profile" does not actually write all profiles
run_test.sh: "PASS write profile" does not actually write all profiles and should FAIL
Jul 10, 2023
My bad, didn't notice that the test passes when mpirun fails (i.e. if [ $? != 0 ]), so this behavior is "as designed".
However, it is very unclear when you look at the test name.
I'd suggest having a test for successful "write profile" and another test "write profile should fail".
https://github.com/davidsd/sdpb/blob/b359336/test/run_test.sh#L31
"write profile"
test intest/run_test.sh
does not actually check that profiles are written to disk.Profile for
rank=0
is not written,El::mpi::Abort()
is called, but the test nevertheless "passes".Repro
(checked on Expanse cluster and on a laptop with WSL+Ubuntu)
with
(i.e. do not remove
test/io_tests/
after run and do not redirect output to/dev/null
)./test/run_test.sh
, see at the end of output:test/io_tests/profile_error.profiling.0
is empty (at the same timetest/io_tests/profile_error.profiling.1
is OK).The text was updated successfully, but these errors were encountered: