-
Notifications
You must be signed in to change notification settings - Fork 50
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: Selective triggering #775
base: main
Are you sure you want to change the base?
Conversation
a1182b4
to
828a226
Compare
aebab6e
to
20161c0
Compare
20161c0
to
04b10df
Compare
4f117b6
to
a1b346c
Compare
/ci |
b03dba0
to
f6f012b
Compare
Hi everyone! (@terrykong and @DwarKapex and @yhtang), |
a715cbc
to
b2c45fd
Compare
b2c45fd
to
ede503b
Compare
.github/workflows/ci.yaml
Outdated
-H "Accept: application/vnd.github.v3+json" \ | ||
"https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel" | ||
while true; do sleep 1; done # blocks execution in case workflow cancellation takes time | ||
# - name: Cancel workflow run if the trigger is a draft PR |
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.
Remove dead code?
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.
shouldn't be dead in the first place
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.
You're going to have another PR for this step?
.github/workflows/ci.yaml
Outdated
@@ -416,7 +440,7 @@ jobs: | |||
|
|||
finalize: | |||
needs: [metadata, amd64, arm64, publish-containers] | |||
if: "!cancelled()" | |||
if: '!cancelled()' |
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.
Let's make it consistent:
if: ${{ !cancelled() }}
WDYT?
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.
There are already a lot of consistencies, like https://github.com/NVIDIA/JAX-Toolbox/blob/main/.github/workflows/_ci.yaml#L11 vs https://github.com/NVIDIA/JAX-Toolbox/blob/main/.github/workflows/ci.yaml#L419
I think we should address it in a different PR to not bloat this one. Maybe we should think about some pre-commit checks for linting and formatting?
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.
Do you know any linter for Github Actions?
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.
we'd need to test a few, I only use VSCode's markdown extension for formatting. I just heard of https://github.com/marketplace/actions/markdown-lint before but never tried it myself
ede503b
to
9a8fe89
Compare
Signed-off-by: Oliver Koenig <[email protected]>
918c493
to
eaf7c19
Compare
Looks good to try =) |
Signed-off-by: Oliver Koenig <[email protected]>
Signed-off-by: Oliver Koenig <[email protected]>
Signed-off-by: Oliver Koenig <[email protected]>
Signed-off-by: Oliver Koenig <[email protected]>
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.
LGTM! Thanks a lot Oliver!
@@ -34,6 +29,22 @@ on: | |||
A comma-separated PACKAGE=URL#REF list to override sources used by build. | |||
PACKAGE∊{JAX,XLA,Flax,transformer-engine,T5X,paxml,praxis,maxtext,levanter,haliax,grok,mujuco,mujuco-mpc,gemma,big-vision,common-loop-utils,flaxformer,panopticapi} (case-insensitive) | |||
default: '' | |||
TEST_SUBSET: | |||
type: string | |||
options: |
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 actually don't see these options from the web. I tried entering foobar
and it didn't stop the run. Any ideas if that's expected?
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.
good catch! Probably some dev/debugging artifact, but tested in my fork that switching type: choice
doesn't break the workflow so changed it
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.
Other than my one comment. LGTM
Signed-off-by: Oliver Koenig <[email protected]>
tl;dr: #255