You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ability to re-trigger failed build with the same input versions #413
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!
Reacted by Alex Suraci, Adham, Glenn Oppegard, Johan Sjöro, Etourneau Gwenn, Chris Nelson, Alex Arwine, primalmotion, JT A., Jacques Chester and 68 more
Reacted by George, Alex Arwine, Mantas Radzevičius, miromode, Łukasz Harasimowicz, Timothy R. Chavez, Paul Mölders, Vicky Chijwani, Logan Mzz, Clint J. Edwards and 11 more
We're thinking about splitting today's trigger build button (+). It is primarily used for three things today:
Impatience: I just pushed something or know that someone just published something, and I want the build to run now.
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.).
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.
Reacted by J. Felix Etcetera, Nick Huanca, Seandon Mooy, Phil Kates, Charlie O'Leary, Shijin Abraham, Chris Nelson, Joonas Bergius, Gil C., Mac Browning and 33 more
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
+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.
Reacted by Fabien Huitelec, Marius Butuc and Jen Wei
Reacted by JT A., Chad Woolley, eSe, Andrew Fitzgerald, miromode, Adam Dorwart, Malet, Mikael Henriksson, Johannes Rudolph, Ivan Tereshchenkov and 12 more
Reacted by Chris Nelson, Chad Woolley, miromode, Paul Mölders and Marius Butuc
The only thing removed when logs are reaper are the build logs below the
build header. The rest of the ui is still there and shows the build status
and such.
On Mon, May 13, 2019, 5:54 PM Harley Stenzel <[email protected]>
wrote:
@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.
@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.
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.
@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.
@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.
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.
Reacted by Gabriele Petronella, Darwin, Phillip Baker, Chris Nelson, Yann David, Alexey Zagarin, Anian Ziegler, H Finucane, James Thomson, Logan Mzz and 6 more
Reacted by Tom von Schwerdtner, Marian Stránecký, Marius Butuc and Ricardo Marques
Reacted by Gabriele Petronella, Darwin, Anian Ziegler and Ricardo Marques
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.
Reacted by H Finucane, Charlie O'Leary and Maciej Brencz
Reacted by Alexis Vanier, Bret Mogilefsky, Phillip Baker, Marco Voelz, Kei YAMAZAKI, Akshay Mankar, Romain Dartigues, Charlie O'Leary, Maciej Brencz and Dylan Law
Activity
vito commentedon Jul 15, 2016
We're thinking about splitting today's trigger build button (
+). It is primarily used for three things today: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
versionto 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.
[-]Ability to ReTrigger Failed Job With Same Version of Resources[/-][+]Ability to re-trigger failed build with the same input versions[/+]endzyme commentedon Aug 15, 2016
+1 this would be a great, and much needed, feature for Concourse CI
charlieoleary commentedon Nov 15, 2016
+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.
ahelal commentedon Nov 15, 2016
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 ?
primalmotion commentedon Dec 3, 2016
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.
tracker-common commentedon Dec 14, 2016
+1000000 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍👍 👍👍👍 👍👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍👍 👍👍👍 👍👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍👍 👍👍👍 👍👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍👍 👍👍👍 👍👍
gabro commentedon Feb 8, 2017
Same here, if you guys are busy can we help somehow?
53 remaining items
vito commentedon May 13, 2019
StevenArmstrong commentedon May 14, 2019
@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.
Lindsayauchin commentedon May 14, 2019
@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.
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.
hstenzel commentedon May 14, 2019
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.
vito commentedon May 14, 2019
@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.
StevenArmstrong commentedon May 14, 2019
@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.
Lindsayauchin commentedon Aug 6, 2019
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
vito commentedon Oct 27, 2019
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.
vito commentedon Jan 7, 2020
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
passedconstraints - 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
getsteps 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.
version: every follows Concourse, and watch survives an outage
resume: reach the version the cursor already took, instead of going g…