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

Jenkins should fail if a ticket branch does not exist

    XMLWordPrintable

    Details

      Description

      When starting a Jenkins run a user can easily mis-type the desired branch, at which point a normal master run is conducted with no warning. This is dangerous, since a user may think a ticket branch has passed CI when it has not been tested.

      To prevent this silent failure mode, I suggest that Jenkins require that for each specified branch, at least one package it has been asked to build must contain that branch.

      One way to implement this is to modify lsstsw to detect whether any package was seen with each specified branch, and fail after the git checkout stage if not.

        Attachments

          Issue Links

            Activity

            Hide
            tjenness Tim Jenness added a comment -

            I think this is a great idea. I think the only way to implement this is to modify lsst-build. This should then trigger the failure which lsstsw would report. The lsstsw failure would then be caught by Jenkins (I think what I'm saying is that Jenkins is a distraction in this discussion).

            Show
            tjenness Tim Jenness added a comment - I think this is a great idea. I think the only way to implement this is to modify lsst-build . This should then trigger the failure which lsstsw would report. The lsstsw failure would then be caught by Jenkins (I think what I'm saying is that Jenkins is a distraction in this discussion).
            Show
            tjenness Tim Jenness added a comment - The relevant code is here: https://github.com/lsst/lsst_build/blob/master/python/lsst/ci/prepare.py#L691
            Hide
            tjenness Tim Jenness added a comment -

            This was completed in DM-12160 by patching lsst_build to fail if no refs could be found.

            Show
            tjenness Tim Jenness added a comment - This was completed in DM-12160 by patching lsst_build to fail if no refs could be found.

              People

              Assignee:
              frossie Frossie Economou
              Reporter:
              rowen Russell Owen
              Watchers:
              Fred Moolekamp, Frossie Economou, John Swinbank, Joshua Hoblitt, Krzysztof Findeisen, Robert Lupton, Russell Owen, Tim Jenness
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.