-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
Add paths
filter to avoid the chance of being triggered
#30453
Conversation
d8bdddd
to
a3e01fc
Compare
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
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.
Thanks!
|
||
slow_test_result: | ||
runs-on: ubuntu-22.04 | ||
name: Check slow test status | ||
needs: [check_for_new_model, run_new_model_tests] | ||
if: always() | ||
steps: | ||
- name: Check test status | ||
shell: bash | ||
# NOT a new model PR --> pass | ||
# new model PR --> pass only if `run_new_model_tests` gives `success` (so if the label is not added, we fail | ||
# this job even if `run_new_model_tests` has `skipped` status). | ||
run: | | ||
echo "${{ needs.run_new_model_tests.result }}" | ||
if [ "${{ needs.check_for_new_model.outputs.new_model }}" = "" ]; then echo "not new model"; elif [ "${{ needs.run_new_model_tests.result }}" != "success" ]; then echo "failure"; exit -1; else echo "pass"; fi; |
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.
Removed this one (forgot to do it in the first commit).
This job was here only to make our status check
on the repository setting work - but we no longer use that tool, so this job is no longer useful.
What does this PR do?
We decide to remove the status check from the repository setting, i.e. no more
Check slow test status
as in the following screenshot.Therefore, we don't need to trigger the workflow file all the time. This PR adds a
paths
filter. The workflow will be triggered only if there is a change matchingsrc/transformers/models/*/modeling_*.py
.Approve and run
most of the time.Approve and run
would be shown and waits for click.single-model-run-slow
is added), and the reviewers can check it is ✅ or ❌ (which is easy to identify).