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

pipe_base tests try to write to obs_test

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: pipe_base
    • Labels:
      None

      Description

      And then fail when they don't have permission. That is:

      ======================================================================
      ERROR: testOutputs (__main__.ArgumentParserTestCase)
      Test output directories, specified in different ways
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "testArgumentParser.py", line 502, in testOutputs
          args = parser.parse_args(config=self.config, args=[DataPath, "--rerun", "foo"])
        File "/ssd/swinbank/pipe_base/python/lsst/pipe/base/argumentParser.py", line 509, in parse_args
          namespace.butler = dafPersist.Butler(inputs=inputs, outputs=outputs)
        File "/ssd/lsstsw/stack_20170409/Linux64/daf_persistence/13.0-6-gf146911/python/lsst/daf/persistence/butler.py", line 351, in __init__
          self._createRepoDatas(inputs, outputs)
        File "/ssd/lsstsw/stack_20170409/Linux64/daf_persistence/13.0-6-gf146911/python/lsst/daf/persistence/butler.py", line 572, in _createRepoDatas
          parents = self._getParentsList(inputs, outputs)
        File "/ssd/lsstsw/stack_20170409/Linux64/daf_persistence/13.0-6-gf146911/python/lsst/daf/persistence/butler.py", line 538, in _getParentsList
          cfg = Storage.getRepositoryCfg(args.cfgRoot)
        File "/ssd/lsstsw/stack_20170409/Linux64/daf_persistence/13.0-6-gf146911/python/lsst/daf/persistence/storage/storageContinued.py", line 82, in getRepositoryCfg
          ret = Storage.storages[parseRes.scheme].getRepositoryCfg(uri)
        File "/ssd/lsstsw/stack_20170409/Linux64/daf_persistence/13.0-6-gf146911/python/lsst/daf/persistence/posixStorage.py", line 150, in getRepositoryCfg
          repositoryCfg = PosixStorage._getRepositoryCfg(uri)
        File "/ssd/lsstsw/stack_20170409/Linux64/daf_persistence/13.0-6-gf146911/python/lsst/daf/persistence/posixStorage.py", line 131, in _getRepositoryCfg
          with open(loc, 'r') as f:
      IOError: [Errno 13] Permission denied: u'/ssd/lsstsw/stack_20170409/Linux64/obs_test/13.0-6-g7b63e3f/data/input/rerun/foo/repositoryCfg.yaml'
      

        Attachments

          Activity

          Hide
          swinbank John Swinbank added a comment -

          I've not attempted to make this pretty, just to make it work!

          PR here: https://github.com/lsst/pipe_base/pull/31

          Show
          swinbank John Swinbank added a comment - I've not attempted to make this pretty, just to make it work! PR here: https://github.com/lsst/pipe_base/pull/31
          Hide
          rhl Robert Lupton added a comment -

          Looks good

          Show
          rhl Robert Lupton added a comment - Looks good
          Hide
          swinbank John Swinbank added a comment -

          Thanks; merged.

          Show
          swinbank John Swinbank added a comment - Thanks; merged.

            People

            Assignee:
            swinbank John Swinbank
            Reporter:
            swinbank John Swinbank
            Reviewers:
            Robert Lupton
            Watchers:
            John Swinbank, Robert Lupton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.