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

codekit improvements: error handling + aux tagging

    Details

      Description

      Two issues have observed with codekit today.

      • github-tag-release will die without reporting the name of repo if github returns a 404 when listing team membership
      • github-tag-teams needs better support for dealing with a pre-existing tag

        Attachments

          Issue Links

            Activity

            Hide
            jhoblitt Joshua Hoblitt added a comment -

            Improved error handling has been merged into codekit. The exception/error message for a repo which the oauth token being used does
            not have authorization to list teams should now appear as:

            ERROR:codekit:Caught: <class 'github.GithubException.UnknownObjectException'>
              In repo: xxx/yyy
              Message: error getting teams
              Exception Message: 404 {'message': 'Not Found', 'documentation_url': 'https://developer.github.com/v3/repos/#list-teams'}    
            

            Show
            jhoblitt Joshua Hoblitt added a comment - Improved error handling has been merged into codekit. The exception/error message for a repo which the oauth token being used does not have authorization to list teams should now appear as: ERROR:codekit:Caught: < class 'github.GithubException.UnknownObjectException' > In repo: xxx/yyy Message: error getting teams Exception Message: 404 { 'message' : 'Not Found' , 'documentation_url' : 'https://developer.github.com/v3/repos/#list-teams' }
            Hide
            jhoblitt Joshua Hoblitt added a comment - - edited

            An --ignore-existing-tag flag for github-tag-teams has been merged into codekit along with some misc -h formatting and CI testing improvements. 7.4.0 has been tagged and released to pypi. The git tag auxilliares stage of the official-release pipeline has been re-enabled, the default version of codekit bumped to 7.4.0, lsstsqre/codekit:7.4.0 docker image has been published, and a problem with the release/codekit/github-tag-teams job has been fixed.

            This build git tags the remaining "auxilliary" repos from v16.0.rc2.

            https://ci.lsst.codes/job/release/job/codekit/job/github-tag-teams/4/console

            Show
            jhoblitt Joshua Hoblitt added a comment - - edited An --ignore-existing-tag flag for github-tag-teams has been merged into codekit along with some misc -h formatting and CI testing improvements. 7.4.0 has been tagged and released to pypi. The git tag auxilliares stage of the official-release pipeline has been re-enabled, the default version of codekit bumped to 7.4.0 , lsstsqre/codekit:7.4.0 docker image has been published, and a problem with the release/codekit/github-tag-teams job has been fixed. This build git tags the remaining "auxilliary" repos from v16.0.rc2 . https://ci.lsst.codes/job/release/job/codekit/job/github-tag-teams/4/console

              People

              • Assignee:
                jhoblitt Joshua Hoblitt
                Reporter:
                jhoblitt Joshua Hoblitt
                Watchers:
                Gabriele Comoretto, Joshua Hoblitt
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel