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

Better error message for request-ci failures during CI lockdowns? #45317

Open
richardlau opened this issue Nov 4, 2022 · 6 comments
Open

Better error message for request-ci failures during CI lockdowns? #45317

richardlau opened this issue Nov 4, 2022 · 6 comments

Comments

@richardlau
Copy link
Member

Now that nodejs/node-core-utils#655 and #45218 have fixed the error reporting from the auto-start-ci workflow we now get errors reported when someone tries to start a CI with the request-ci label during a CI lockdown (when access is restricted), e.g.

image

While technically correct (the github-bot does not have permissions to access Jenkins during the lockdown), the message is not indicative that it is expected to not be able to start CI runs unless you're involved with the security release. We've had a few questions about this during the recent lockdown (nodejs/build#3065, https://openjs-foundation.slack.com/archives/C019Y2T6STH/p1667594031302289) that it would be more informative if we can somehow indicate a lockdown is in progress in this case.

@aduh95
Copy link
Contributor

aduh95 commented Nov 4, 2022

Is there any way for the bot to check if there's a lockdown in progress? Alternatively, we could add to the process of locking CI down to also disable the GHA workflow, and re-enable it when the CI opens again.

@targos
Copy link
Member

targos commented Nov 5, 2022

+1 on disabling the workflow when we know Jenkins isn't available.

@MoLow
Copy link
Member

MoLow commented Nov 13, 2022

disabling the workflow would create a huge queue of PRS with request-ci Add this label to start a Jenkins CI on a PR. once the lockdown is open.

@aduh95
Copy link
Contributor

aduh95 commented Nov 13, 2022

We are talking about request-ci Add this label to start a Jenkins CI on a PR. , not commit-queue Add this label to land a pull request using GitHub Actions. . I don't see how disabling the workflow would have any effect on the size of the queue, we still want to run CIs on those PRs once the lockdown ends, right?

@MoLow
Copy link
Member

MoLow commented Nov 13, 2022

my bad, I edited my comment.
what I meant is that there will be a lot of PRs with request-ci Add this label to start a Jenkins CI on a PR. label that will start running all at the same time.
the current situation is that there is some pressure on the CI when the lockdown ends but it is smaller pressure since pepole run ci manually in the current situation (and not all people are in the same timezone, some are ok with waiting etc).
so currently the fact that auto-start-ci removes the request-ci Add this label to start a Jenkins CI on a PR. label on lockdown does reduce the pressure

@aduh95
Copy link
Contributor

aduh95 commented Nov 15, 2022

I'm not sure if that would be an issue at all as I think Jenkins would simply queue the jobs without much problem, but if it was an issue we should probably lower the value of PRs handled by the automation:

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

No branches or pull requests

4 participants