-
Notifications
You must be signed in to change notification settings - Fork 154
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
chore: only run tests that changed in regular CI if nothing else did #247
chore: only run tests that changed in regular CI if nothing else did #247
Conversation
1a81c67
to
8873b18
Compare
Coverage passed ✅Coverage details
|
the CI was tested in other PRs and everything went well |
|| steps.changed-files-in-pr.outputs.makefile_any_changed == 'true' | ||
) | ||
) | ||
|| fromJSON(env.IS_WORKFLOW_DISPATCH) |
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.
regular tests should be run if CI is manually triggered
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.
What do you mean by manually triggered?
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.
through GitHub's Action interface
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.
meaning we manually trigger the workflow (it is not triggered automatically when opening a PR or during a weekly release for example)
# modified tests | ||
# Note that if pytest utils or test data are changed, the regular pytest step should have been | ||
# triggered instead | ||
- name: PyTest on modified tests only |
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.
main feature
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.
For my understanding, here we only rerun tests that have been modified unless something from src has been modified, right?
yes exactly, more precisely, we rerun tests that have been modified instead of all tests unless one of the following it true : which does sometimes happen when we fix some tests or refactor |
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 for the answer! I like the idea let's go.
Basically :
closes https://github.com/zama-ai/concrete-ml-internal/issues/3893