-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[ci] add an allgood job for easy [required] builds #3351
Conversation
@jameslamb you should be able to add "required" to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@graingert Thanks a lot! Indeed, this looks like something we were looking for!
Now we need just to mark this new job as required
, right?
@StrikerRUS yeah, I think this is right: #3351 (review) |
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@graingert Thanks a lot for the workaround!
And thanks for making wordings easier to understand, LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works for me, thanks!
@StrikerRUS @guolinke I'll switch the set of required checks after merging
oh nevermind, it looks like I don't have access to change the required checks. @guolinke sorry to bother you, could you change the set of required checks for GitHub Actions? Now we only need to require the |
@jameslamb no problem |
Have a look at https://github.com/probot/settings it allows setting
settings with PRs
…On Sun, Sep 6, 2020, 03:22 Guolin Ke ***@***.***> wrote:
@jameslamb <https://github.com/jameslamb> no problem
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3351 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADFATA2AJHTJ5PW7PXLDNDSELW65ANCNFSM4QXZB3VQ>
.
|
thanks @graingert . We change these settings rarely enough that I think it's better to have them done manually than to have another integration to maintain. |
@@ -160,3 +160,10 @@ jobs: | |||
$env:TASK = "${{ matrix.task }}" | |||
conda init powershell | |||
& "$env:GITHUB_WORKSPACE/.ci/test_windows.ps1" | |||
all-successful: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@graingert FYI this check may be problematic with failures and branch protection. Here's a more comprehensive solution: https://github.com/re-actors/alls-green.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah nice one!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you be more specific? How might this cause problems with branch protection?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danepowell it's explained at https://github.com/marketplace/actions/alls-green#why but TL;DR — when some job dependencies fail, this job may end up being skipped and branch protection treats skipped jobs as success.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've also filed #5501.
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
see https://github.uint.cloudmunity/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert