Skip to content

Ability to re-trigger failed build with the same input versions #413

Closed

Description

@davewalter

When using the new version: every configuration for a get task, it is possible to arrive at a state where you have multiple builds of the same job running at the same time. If an earlier build fails, there is no way to re-trigger it with the same set of inputs. We haven't been able to determine a useful workaround; setting serial: true doesn't really help in this scenario, because the next build will start as soon as the first one fails.

It would be helpful if there were a way to re-trigger the job with the same inputs as a particular build (failed or otherwise).

Let us know if you need more details on this scenario or our desired fix. Thanks!

@davewalter and @rmasand

Activity

  1. vito commented on Jul 15, 2016

    @vito
    Contributor

    We're thinking about splitting today's trigger build button (+). It is primarily used for three things today:

    1. Impatience: I just pushed something or know that someone just published something, and I want the build to run now.
    2. Retrying a build (this issue): I want to re-run the current build, either to see if it's flaky or to retry because something outside the build failed (e.g. github, a deployment, etc.).
    3. Triggering a job that only ever manually runs, e.g. shipping a product after you've written release notes.

    The flaw with case 1 is that there's a race condition. In the time between you loading the page and clicking the +, Concourse may have already found your stuff and queued a build. Now you have two, which is annoying.

    The flaw with case 2 is you can only do it with the latest build, and also if you triggered a bunch, new versions may come in, potentially invalidating your flakiness trial. You could set version to a particular version in your pipeline, but that's annoying.

    Case 3 pretty much works, but you don't know what versions it'll use until you run it. See #269

    So, I think we should split + into two buttons. One that lives on the job, "sync", which will make sure everything's up-to-date and then queue up a build if it should (i.e. one's not queued already; same semantics as auto-triggering). The other button would be associated with a particular build of the job, and would re-trigger it with the same inputs. This covers cases 1 and 2.

    The third case needs some more thinking since a "sync" button alone doesn't intuitively seem like enough given that the build only manually triggers.

  2. changed the title [-]Ability to ReTrigger Failed Job With Same Version of Resources[/-] [+]Ability to re-trigger failed build with the same input versions[/+] on Jul 15, 2016
  3. endzyme commented on Aug 15, 2016

    @endzyme

    +1 this would be a great, and much needed, feature for Concourse CI

  4. charlieoleary commented on Nov 15, 2016

    @charlieoleary
    Contributor

    +1 As well, this is a pretty critical feature. We've sort of circumvented it with empty commits (since we're using the PR resource), but it would be ideal to simply retry a failed job with the same inputs.

  5. ahelal commented on Nov 15, 2016

    @ahelal
    Contributor

    Would love to see that. We are doing crazy stuff to try to trigger old commits. Is this open for external people to help ? and if so how ?

  6. primalmotion commented on Dec 3, 2016

    @primalmotion

    same thing here, I feel that concourse has everything to be able to do this fairly easily. It would work perfectly with the pull request resource.

  7. tracker-common commented on Dec 14, 2016

    @tracker-common

    +1000000 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍👍 👍👍👍 👍👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍👍 👍👍👍 👍👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍👍 👍👍👍 👍👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍👍 👍👍👍 👍👍

  8. gabro commented on Feb 8, 2017

    @gabro
    Contributor

    Same here, if you guys are busy can we help somehow?

  9. 53 remaining items

  10. vito commented on May 13, 2019

    @vito
    Contributor
  11. StevenArmstrong commented on May 14, 2019

    @StevenArmstrong

    @vito it wasn't really just for retrigger. It was more if you are doing a redesign on what the + buttons or other buttons do it would be really good if they weren't nested under the job as users have said they find it confusing having to click through to manually initiate a new build when deploying to production. Instead I was suggesting having them a layer up as an icon on the pipeline page beside each job. You could then have a confirmation pop up if someone clicks it by mistake to confirm to build with latest or retrigger or cancel. This way you wouldn't need multiple buttons simply 1 button to build with multiple sub options without having to click through to the log to trigger anything. It's something that is frequently fed back about the UI from our users.

  12. Lindsayauchin commented on May 14, 2019

    @Lindsayauchin
    Contributor

    @StevenArmstrong interesting idea. I think that from pipeline we have observed, like the (rabbit MQ team at Pivotal below) an action button to trigger a job on the pipeline page is just not scalable.

    Screen Shot 2019-05-13 at 5 34 04 PM

    We are thinking about the user pains around triggering a build with the work being done on the resource version. You can follow a related issue #3403 to see our progress on the UX changes.

  13. hstenzel commented on May 14, 2019

    @hstenzel

    If I understand correctly, to retrigger a specific job I'd scroll left/right on the build page to find the correct job?

    Also, I'd potentially want to retrigger a successful job too, thinking about the case of rebuilding an artifact that was accidentally lost.

    Perhaps these questions are really more about the UI related to the feature.

  14. vito commented on May 14, 2019

    @vito
    Contributor

    @hstenzel Yep - to re-trigger a build you would do so from the build's page. There's no such thing as re-triggering a job - you can trigger a new build of a job, but the re- part of re-trigger means you're running an already-existing build for a second time with the same inputs.

    You will be able to re-trigger a build regardless of whether it succeeded or failed; they both have their use case: re-trigger a succeeded build to detect flakes, re-trigger failed build to allow artifacts to continue along the pipeline.

  15. StevenArmstrong commented on May 14, 2019

    @StevenArmstrong

    @Lindsayauchin most people use pipeline groups on concourse to visualise big pipelines with many jobs. So I still think in combination with pipeline groups it could still be viable to have the trigger icons on the pipeline page.

  16. Lindsayauchin commented on Aug 6, 2019

    @Lindsayauchin
    Contributor

    This has evolved into the Build re-triggering track of work. Iterative designs have been moved to smaller sliced stories and can be found in the Build re-triggering project here: https://github.com/concourse/concourse/projects/24

  17. vito commented on Oct 27, 2019

    @vito
    Contributor

    For those following along: this has been implemented and will be in v6.0! I don't have an ETA yet since v6.0 includes very substantial internal changes that we're doing due diligence to test out. We're considering shipping a beta release first.

  18. vito commented on Jan 7, 2020

    @vito
    Contributor

    Closing this out!

    As implemented in v6.0, re-running a build will create a new build named e.g. "123.1", which will apprear adjacent to the original build in the build history. This placement in the history reflects the scheduler's iteration order for passed constraints - i.e. if you re-run a very old build it won't suddenly propagate the older versions downstream if there are "newer" successful builds after the re-run.

    The new build will run with a newly constructed build plan based on the pipeline's current configuration, using the versions of each input from the original build. This should work in the common case of re-triggering recent flakes, but it can fail if the configuration has changed such that new get steps have been added, or the old version is no longer available because the resource changed. Hope that's good enough for MVP!

    In the future we plan to fix this by having re-runs run with the the exact build plan that the original ran with, rather than constructing a new plan based on the current configuration. This is going to be tracked in a separate "epic", Build Lifecycle.

  19. added
    release/documented
    on Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    core/build-planenhancementrelease/documentedweb-ui

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions