Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guarantee final pipeline #340

Merged

Conversation

nithyashree675
Copy link
Contributor

@nithyashree675 nithyashree675 commented May 9, 2022

Closes #341

@nithyashree675 nithyashree675 force-pushed the guarantee_final_pipeline branch 8 times, most recently from 1ca2c4f to b5f0dad Compare May 9, 2022 20:09
@smarkets smarkets deleted a comment from snim2 May 9, 2022
@nithyashree675 nithyashree675 force-pushed the guarantee_final_pipeline branch from b5f0dad to 7ab1836 Compare May 9, 2022 20:14
@nithyashree675 nithyashree675 force-pushed the guarantee_final_pipeline branch 2 times, most recently from 2d5350c to 3e927f5 Compare May 9, 2022 20:59
@nithyashree675 nithyashree675 force-pushed the guarantee_final_pipeline branch from 3e927f5 to 77a2043 Compare May 9, 2022 21:02
@nithyashree675 nithyashree675 merged commit d3c4409 into smarkets:master May 10, 2022
log.info('Commit id to merge %r (into: %r)', actual_sha, target_sha)
if _updated_sha == actual_sha and self._options.guarantee_final_pipeline:
log.info('No commits on target branch to fuse, triggering pipeline...')
merge_request.comment("jenkins retry")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this guarantee that the final pipeline is run? It seems especially suspicious to add a comment saying "jenkins retry" here. Is that some internal smarkets CI stuff that's leaking out here? :)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be a merge_request_pipeline_trigger call instead ? Maybe I'm missing something ...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is essentially what was done in the community fork in this MR: https://gitlab.com/marge-org/marge-bot/-/merge_requests/387.

This upstream project is no longer maintained as far as we can tell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Guarantee final pipeline when assigned to marge-bot
5 participants