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

ltd-mason bug uploading Science Pipelines docs with lsst.verify API info

    Details

      Description

      The ltd-mason-travis build is showing:

      Traceback (most recent call last):
        File "/Users/jsick/.virtualenvs/ltd-mason/bin/ltd-mason-travis", line 11, in <module>
          load_entry_point('ltd-mason', 'console_scripts', 'ltd-mason-travis')()
        File "/Users/jsick/lsst/_pipelines_lsst_io_build/ltd-mason/ltdmason/traviscli.py", line 58, in run
          upload(manifest, product)
        File "/Users/jsick/lsst/_pipelines_lsst_io_build/ltd-mason/ltdmason/uploader.py", line 31, in upload
          aws_credentials=aws_credentials)
        File "/Users/jsick/lsst/_pipelines_lsst_io_build/ltd-mason/ltdmason/uploader.py", line 136, in upload_via_keeper
          **aws_credentials)
        File "/Users/jsick/lsst/_pipelines_lsst_io_build/ltd-mason/ltdmason/s3upload.py", line 110, in upload
          manager.delete_directory(bucket_dirname)
        File "/Users/jsick/lsst/_pipelines_lsst_io_build/ltd-mason/ltdmason/s3upload.py", line 353, in delete_directory
          assert len(key_objects) > 0
      AssertionError
      

      Turns out the problem is that the ObjectManger.list_dirnames_in_directory method is suddenly including '..' as one of the returned directory names, which is an empty directory that can't exist on S3.

      I'm already filtering '.', so I just need to filter '..' too.

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  jsick Jonathan Sick
                  Reporter:
                  jsick Jonathan Sick
                  Reviewers:
                  Joshua Hoblitt
                  Watchers:
                  Jonathan Sick, Joshua Hoblitt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Summary Panel