-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[POC] .github: Add event name to concurrency #64402
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
Conversation
CI Flow Status⚛️ CI FlowRuleset - Version:
You can add a comment to the PR and tag @pytorchbot with the following commands: # ciflow rerun, "ciflow/default" will always be added automatically
@pytorchbot ciflow rerun
# ciflow rerun with additional labels "-l <ciflow/label_name>", which is equivalent to adding these labels manually and trigger the rerun
@pytorchbot ciflow rerun -l ciflow/scheduled -l ciflow/slow For more information, please take a look at the CI Flow Wiki. |
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 4febb45 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
Codecov Report
@@ Coverage Diff @@
## master #64402 +/- ##
==========================================
+ Coverage 66.68% 66.72% +0.04%
==========================================
Files 708 708
Lines 92215 92271 +56
==========================================
+ Hits 61489 61566 +77
+ Misses 30726 30705 -21 |
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.
🎉 great idea!
btw, there's a lint error on line length. side note: wondering why lint annotation didn't work here
da26f90
to
4febb45
Compare
concurrency: | ||
group: !{{ build_environment }}-${{ github.event.pull_request.number || github.sha }} | ||
group: !{{ build_environment }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }} | ||
cancel-in-progress: true | ||
|
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.
not necessary for this PR but it'd be good to move the concurrency group stuff into a macro
@janeyx99 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
This would ensure that manually/API triggered workflows would not cancel other triggered workflows. For example, the manually triggered periodic 11.1 linux job cancelled the scheduled one here, which we may not want:
.
This would be helpful later as we use more dispatched workflows (e.g., for bisect functionality)