Skip to content

Draft: ATLASG-2840: Fix for file locking issues

Dan Guest requested to merge dguest/athena:ufix into main

For some reason the HDF5 file locking is failing on the CI nodes. I don't know if it's specific to the xfs file system that we use for the CI but I can't reproduce it locally.

The crude fix: there's an environment variable called HDF5_USE_FILE_LOCKING, which, when set to FALSE will disable file locking. We're currently using HDF5 1.12.2, which, according to their docs will read this variable when the library loads.

What I'm unsure of is when the HDF5 library will load. I've set environment variable after the argument parsing, in hopes that the library is loaded dynamically later and will pick up the disabled lock. If it loads earlier we'll have to set the variable as a prefix on the test command, e.g.

atlas_add_test(BTaggingTest
  SCRIPT HDF5_USE_FILE_LOCKING=FALSE testBTagging --n-events 20
  POST_EXEC_SCRIPT nopost.sh )
Edited by Dan Guest

Merge request reports

Loading