Branch: refs/heads/main
Revision: b5fa0d7
Author: ronawho
Link: Wait for catfiles to exist in sub_test by ronawho · Pull Request #19342 · chapel-lang/chapel · GitHub
Log Message:
Merge pull request #19342 from ronawho/wait-for-catfiles
Wait for catfiles to exist in sub_test
[reviewed by @aconsroe-hpe]
Wait up to 10 seconds for catfiles to exist. Catfiles are used to add
files generated by tests to execution output in order to diff them
against .good files. On systems with a network mounted filesystem and a
launcher we have seen cases where the launcher returns before the file
is visible on disk. This adds up to a 10 second delay waiting for
catfiles to exist. In practice it's fractions of a second delay that we
see for our tests, but this seemed a little more robust.
This is motivated by testing failures we've seen on some Cray systems
when launching with srun
. Note that this also changes a manual cat in
a prediff to use a catfile and adds a sleep to a test prediff that does
something like catfiles but more involved with sorting and diffing.
Part of Cray/chapel-private#3147
Modified Files:
A test/exercises/Mandelbrot/solutions/CATFILES
R test/exercises/Mandelbrot/solutions/PREDIFF
M test/studies/ssca2/test-rmatalt/reproduc.prediff
M util/test/sub_test.py
Compare: https://github.com/chapel-lang/chapel/compare/7922efe62aa2...b5fa0d7c4b76