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

Bumping versions often stalls release pipeline #116

Closed
jonaslagoni opened this issue Jan 5, 2022 · 12 comments · Fixed by #128 or #132
Closed

Bumping versions often stalls release pipeline #116

jonaslagoni opened this issue Jan 5, 2022 · 12 comments · Fixed by #128 or #132
Labels
bug Something isn't working

Comments

@jonaslagoni
Copy link
Member

Describe the bug

When the node.js release pipeline bumps the package version often times GH stalls the CI runs, meaning the release pipeline is completely stuck. See asyncapi/modelina#561

Because of the changes introduced in the version bump chore(release): ... we dont need to run all the workflows and in theory skip them.

@jonaslagoni jonaslagoni added the bug Something isn't working label Jan 5, 2022
@derberg
Copy link
Member

derberg commented Jan 11, 2022

damn, forgot about one thing, skip ci skips testing, but it is required on repo level...so these checks will be blocking merge 🤦🏼

@derberg
Copy link
Member

derberg commented Jan 11, 2022

@KhudaDad414
Copy link
Member

Why don't we trust the bot and skip testing in case the author is asyncapi-bot here? any side effects?

@derberg
Copy link
Member

derberg commented Jan 24, 2022

@KhudaDad414 oh man 🤯 I honestly did not take it into account 🤦🏼
I was always declining it as asyncapi-bot cannot always be trusted, because sometimes asyncapi-bot sends PRs that are bump of package version, so tests must run to make sure that for example a bump of parser in generator will not break generator.

But we can also figure it out from the PR title I guess, just like we do it here 🤔

so we could always trust allcontributors bot and asyncapi-bot in certain situations...

@derberg
Copy link
Member

derberg commented Feb 7, 2022

@KhudaDad414 it didn't work. In all 59 repos (if we had branch protection set properly everywhere) the update of worklows failed because the tests were not triggered, so branch protection was not satisfied. Tests were not triggered because the test workflow was properly skipped because of new condition. So your idea worked but partially because workflow is skipped, jobs are not triggered, so PRs hang like here asyncapi/modelina#614

Can you try closing these PRs and make a followup PR and move if form job to steps. It is not as grand as initial idea but still improvement that we need imho

@KhudaDad414
Copy link
Member

KhudaDad414 commented Feb 7, 2022

@derberg I don't have enough permission to close the PRs in most repos. I will leave a comment on the PRs so someone with the permissions can close them.

@derberg
Copy link
Member

derberg commented Feb 7, 2022

@KhudaDad414 no worries. I'll close them

@KhudaDad414
Copy link
Member

Left a comment and it was already merged in the following repos:

dotnet-nats-template
go-watermill-template
vs-asyncapi-preview
shape-up-process
event-gateway
community
template-for-go-projects
parser-api
glee
create-glee-app
brand
infra
java-template

It was approved but wasn't merged for some weird reason in asyncapi-php-template :|

@derberg
Copy link
Member

derberg commented Feb 8, 2022

@KhudaDad414 I followedup in all PRs and closed them.

@derberg
Copy link
Member

derberg commented Feb 8, 2022

@KhudaDad414 I triggered merge of your followup, next we should merge #131 as the change in the bump workflow that you did in pervious PR was not replicated, so in my PR for TSC slack I made an adjustment that will trigger replication again

@derberg
Copy link
Member

derberg commented Feb 8, 2022

@jonaslagoni I recommend you apply the same conditions that @KhudaDad414 did in the last PR in your custom black-box testing in modelina, to skip tests running in PRs like adding someone to list of contributors

@jonaslagoni
Copy link
Member Author

@jonaslagoni I recommend you apply the same conditions that @KhudaDad414 did in the last PR in your custom black-box testing in modelina, to skip tests running in PRs like adding someone to list of contributors

Will do 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants