Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-10352

Race condition in daf_persistence tests

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: daf_persistence
    • Labels:
    • Templates:
    • Team:
      Data Access and Database

      Description

      John Swinbank reports a failing test during a routine build of the most recent weekly (w_2017_17):

      ***** error: from /software/lsstsw/stack/EupsBuildDir/Linux64/daf_persistence-13.0-8-gba0f85f/build.log:
      ======================================================================
      FAIL: testPickle (__main__.MapperImportTestCase)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "tests/mapperImport.py", line 71, in testPickle
          self.checkIO(butler, bbox, 1)
        File "tests/mapperImport.py", line 62, in checkIO
          os.path.join(ROOT, "root", "out", "foo%d.pickle" % ccd)))
      AssertionError: False is not true
       
      ----------------------------------------------------------------------
      

      I believe this is due to a race condition in the daf_persistence tests: butlerProxy.py and mapperImport.py have the same output directory, and both clobber anything existing before running.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                npease Nate Pease
                Reporter:
                price Paul Price
                Watchers:
                Hsin-Fang Chiang, John Swinbank, Nate Pease, Paul Price, Tim Jenness
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel