usnistgov / mass

Microcalorimeter pulse-analysis software
MIT License
6 stars 0 forks source link

test failures on master #272

Closed joefowler closed 5 months ago

joefowler commented 6 months ago

Original report by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).


I’m getting a failure with the below error message for the tests on python 3.12 only, you can see them in this pipeline. Technically that branch isn’t master, but it has only one trivial change far from this failure, so I believe it happens on master. I apparently don’t have write permission so I can’t start the test on master to confirm.

Here is the link to the failure: https://bitbucket.org/joe_fowler/mass/pipelines/results/1367/steps/{a794ffd7-7853-45fd-a22d-41550e49627d}

E   OSError: Unable to synchronously create file (unable to truncate a file which is already open)

Also I think we’ve seen this error message before, but I failed to find it searching issues.

joefowler commented 6 months ago

@ggggggggg Is this error magically fixed by the move to GitHub and its Actions workflow?

ggggggggg commented 5 months ago

It seems to be intermittent, it wasn't persistent on bitbucket either.

joefowler commented 5 months ago

I saw it on my computer today. I suspect it has to do with pytest running some tests in parallel, but they try to write to the same HDF5 scratch file? Just a guess. Or if not in parallel, somehow a test isn't closing the HDF5 in time for the next to run successfully?

joefowler commented 5 months ago

Fixed by #284.