Pipelines and the UI don't reflect reality when git push --force is used
#9487
Unanswered
mathrick
asked this question in
Help & Support
Replies: 1 comment 5 replies
-
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've done fairly extensive research and failed to find any definitive answer for how to deal with a not uncommon scenario of a resource producing a version which has already been seen, but which nevertheless represents a change from its previous state. In particular, this happens in the following situation:
gitresource is set up to monitor branchsomebranch, and jobtestsis triggered by itsomebranchinitially points to commit01abcdef.testsruns for01abcdefand passes in build 1somebranchis pushed to, and now points todeadbeef.testsruns fordeadbeefand fails in build 2somebranchis rolled back to01abcdef(last known good revision) viagit push --forceref: 01abcdefwhich has been seen previously,testsis not triggered again, and the UI continues to showtestsas having failed, with no way for the user to correct itdeadbeef, not01abcdefdeadbeeftestsand triggering a new build still won't re-run it with the current state ofsomebranchbut will stubbornly trigger ondeadbeef, despite the fact that the current version oftestshas never run on01abcdef, so there's no conceptual reason to skip itThere seems to be very little guidance on how to resolve this. concourse/git-resource#174 simply said in 2019 this "should be" resolved by concourse/rfcs#1 and #1707, but in 2026 this is very much an issue when running Concourse v8.1.0. There are some other tangentially related issues and discussions, but none of them actually address this situation or give anything in the way of concrete steps that would fix things.
Beta Was this translation helpful? Give feedback.
All reactions