pyclaw icon indicating copy to clipboard operation
pyclaw copied to clipboard

Test failing: p-system gauge test in parallel with Python 3

Open ketch opened this issue 6 years ago • 3 comments

In the latest build we have a failure of one test, only for the parallel + Python 3.5 build. It is a test of gauge output; it seems that somehow the test is trying to read the file before it is written:

pyclaw.examples.psystem_2d.psystem_2d({'outdir': './_for_temp_pyclaw_test', 'tfinal': 1.0, 'cells_per_layer': 6, 'solver_type': 'classic'}) 
/home/travis/build/clawpack/pyclaw/src/pyclaw/examples/psystem_2d/test_2d_psystem.py:27: 
UserWarning: loadtxt: Empty input file: "./_for_temp_pyclaw_test/_gauges/gauge11.75_11.75.txt"
  test_gauge_data_io = np.loadtxt(gauge.name)
ERROR

ketch avatar May 31 '18 06:05 ketch

Is this an issue with a race condition then?

mandli avatar May 31 '18 14:05 mandli

That's my guess, but why is it suddenly failing now? I restarted the build a few times just in case it was a Travis hiccup, but it fails consistently.

ketch avatar May 31 '18 14:05 ketch

I saw this the other day too and eventually got it to pass after restarting a few times. I guess we need to check to make sure that everything is done (maybe check for the file?) before moving on to the test.

mandli avatar Jun 01 '18 00:06 mandli