-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Fix incomplete Actions status aggregations #32859
Conversation
d0e65df
to
de82336
Compare
4156015
to
28a0e75
Compare
28a0e75
to
cbdc527
Compare
@wxiaoguang why bundle skip with success? Aren't they two different states when combined? |
Sorry that I didn't know you have a PR to port 🤣 you can tell that in the issue then I won't do it next time.
The reason is that "skipped" shouldn't affect "success", just like GitHub: Update: "all jobs where skipped is aggregated to skip": I think it is right to treat it as "success" since nothing need to do (all skipped), so "success"? Does it make sense? |
Hmm, I see your demo https://github.com/TheFox0x7/repro/actions/workflows/skip.yaml "skipped-only" is aggregated as "skipped". So maybe we should follow it (add a ps: I am not sure whether it would affect other logics, eg: if "all skipped", should that PR be considered as "mergeable"? |
No worries, I should've mentioned that. I sort of assumed someone would click the closed (but not merged) PR in the downstream issue which I'll admit it's hardly obvious so that's fully on me. I can check how the skipped status works here but I'll need a bit of time to do it. I'll try and demonstrate the waiting and blocked states as well (I think i manged to do it earlier but no promises on that). written before your new comment
Here's a test written for my original PR (with one test case added for pure skips)```go package actionsimport (
) func TestJobStatusAggregation(t *testing.T) {
}
|
I think you are right, I didn't carefully study GitHub's behavior and only wrote the tests by my understanding. I made a following up PR: Improve Actions status aggregations #32860 , does it look good to you? I think it is the same as your GitHub demo now. |
fix #32857