-
Notifications
You must be signed in to change notification settings - Fork 3
Use GH API to retrieve PR labels when waiting on connection, use Python. #26
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
base: main
Are you sure you want to change the base?
Conversation
In GH Actions context, labels do not get updated on simply being added, usually requiring a change be pushed to refresh them: https://github.com/orgs/community/discussions/39062
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Merged all the steps into one, moved some more stuff into Python, PTAL |
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.
Overall looking good and along the lines of what i was wanting, thanks!
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.
This file needs the standard copyright header and to be linted. (I think it should be picking up jax's linting standards which i am thinking we will copy over for the new repo)
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.
Done. I ran the the pre-commit commands from their instructions:
# be in jax repo root
pip install pre-commit
pre-commit run --all
| # Pick an existing Python alias | ||
| python_bin=$(which python3 2>/dev/null || which python) | ||
| # Wait for the connection, if a halt was requested via a label/input | ||
| "$python_bin" "$GITHUB_ACTION_PATH/wait_for_connection.py" |
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 don't want a script failure to fail the overall job. I think there are a few ways we can go about that but the easiest might just be an || true here to keep a script failure from getting back to the job.
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 added continue-on-error to the step - I think it's a little clearer
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 until we get the proper new repo for this (still working on it....), but i think we will want to have tests on these as much as possible.
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.
Acknowledged. Not adding now - not sure if I'll be fast enough - also want to focus on the connection timeout erroring out + internal doc
|
@MichaelHudgins PTAL |
b2e7217 to
0667304
Compare
4ba08d5 to
69b7cf8
Compare
69b7cf8 to
d43e84c
Compare
In GH Actions context, labels do not get updated on simply being added to the PR.
They usually require a change be pushed to refresh them:
https://github.com/orgs/community/discussions/39062