Bug #1435
Test error from trunk
100%
Description
I noticed that I was seeing an error in test_ReduceCppGlobalPID.py in the merge branch recently. I did not manifest itself on the test server however. I have now checked this on different machines however and it persists and is now all part of the latest release. It looks like something trivial to solve but I think it is real even if it only shows up on some machines. See the attached for details.
Files
Updated by Rajaram, Durga over 9 years ago
Interesting, Adam.
Does the directory
/vols/mice3/adobbs/maus/tracker_devel/files/PID/test_200MeV_pi_plus_2014_03_19T14_29_05_882157actually exist?
If it does, are you able to remove it by hand with rm -rf ?
Updated by Dobbs, Adam over 9 years ago
More interesting the more I look at it. The directories do exist, but are empty after the test terminates. I have tried removing them from the command line and then re-running the test, but the same error crops up. As far as I can tell the right command to remove a directory tree in python is being used by the test (shutil.rmtree) and when I tried to remove one of those directories by hand in python, it did it without problem.
Note: I see the same thing running on both the Imperial HEP machines running CentOS, and the RAL PPD cluster, both using a clean version of MAUS-v0.8.3 (I think I tried it on my Ubuntu laptop too...)
Updated by Rajaram, Durga over 9 years ago
What are the file permissions for the directory(ies) that are left hanging around?
I have pushed a fix to lp:~durga/maus/1435
asking it to forcibly remove the directory with rm -rf
#shutil.rmtree(PDFdirectory) os.system('rm -rf %s' % PDFdirectory)
I can't reproduce the error here, so can you try it and let me know if the fix resolves the problem?
Updated by Heidt, Christopher over 9 years ago
I just ran the tests and received this exact same set of errors, building from the tracker development branch on one of the Imperial machines.
Updated by Dobbs, Adam over 9 years ago
- Workflow changed from New Issue to Awaiting Merge
Hi Durga, yes that fix seems to have solved it now. Thanks very much.
Updated by Rajaram, Durga over 9 years ago
- Workflow changed from Awaiting Merge to Closed
Pushed to trunk.
Updated by Rajaram, Durga over 9 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
Updated by Rajaram, Durga over 9 years ago
- Target version changed from Future MAUS release to MAUS-v0.8.4