Uploaded image for project: 'Red Hat Advanced Cluster Security'
  1. Red Hat Advanced Cluster Security
  2. ROX-28973

determine-image-tag task to support comment-triggered tagged rebuilds

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • Rox Sprint 4.8G - Global, Rox Sprint 4.8H - Global

      This aims to solve the problem that when we do a build for a release, it comes from the git tag push event. If some containers failed building (which is unfortunately common), we need to re-trigger their builds. Currently, this is only possible by deleting and re-pushing the same tag which has downsides:
      1. It starts all Konflux container builds again and so the probability for a failure is not decreased. We just roll the same number of dices in the hope we get all to show 6.
      2. Some other release jobs may not be idempotent or in some other way not expect the release git tag be pushed multiple times.

      As opposed to repushing tags, it should be possible to recognize when a rebuild is triggered by a /retest comment on GitHub commit and issue image tags with the literal values of git tags.
      The limitation is that this would still work only if the last commit on the branch is git-tagged with the expected tag.

      See https://redhat-internal.slack.com/archives/C05TS9N0S7L/p1744116339517869

      This is a workaround for the time when SRVKP-7442 is not available.

      See docs https://pipelinesascode.com/docs/guide/gitops_commands/#event-type-annotation-and-dynamic-variables

              rh-ee-tmartens Tom Martensen
              msugakov@redhat.com Misha Sugakov
              ACS Automation
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: