-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Only run test suite if code changes #6096
Conversation
e92946c
to
9a662f1
Compare
f7295ec
to
60b3c70
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6096 +/- ##
==========================================
- Coverage 84.67% 84.66% -0.01%
==========================================
Files 296 296
Lines 44076 44096 +20
==========================================
+ Hits 37320 37334 +14
- Misses 6756 6762 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Isn't there a way instead to exclude files and folders? I find this a bit error prone. And I think you forgot /doc
?
5470929
to
2375fd4
Compare
I think this is more of a preference thing. I think being inclusive is a good thing. We can always add more items to a list if we find a missing folder or file. The test suite will still run most of the time.
There's a slight tension here; while it makes sense to run when docs with code change, most updates outside the codebase, happen in the doc folder. I have added a doc check. Right now I have only added a check for |
I think I disagree on both points :) On the first one, for instance you have not included If the goal is to reduce the number of CI runs, I'd suggest considering no longer running the test suite after a MR is merged on |
My list of files and folders is not exhaustive; as I wrote in my previous comment, it can always be expanded.
I agree! I simply want to be more selective about it than adding the whole
The goal is to reduce the number of unnecessary CI runs. What classifies as unnecessary is hard in non-concreate cases. We can all agree that it is stupid that the test CI runs when a changelog is updated. I'm not sure if I want to disable running the test suite on main; it has advantages at the top of my I can think of two;
|
This is because it is needed for the pyodide related test
I'm pretty sure I could break the test suite modifying one of these two files, don't challenge me :D
I agree with that in theory, in practice, I think I've actually never seen that. It might well be that I missed it because I'm not set up to receive emails from Github when workflows fail (that was just too noisy), or it just never happened. I would say that running the CI on the Clearly we won't agree on this :) |
I know you can, but I hope that if you do something that malicious, you also update the list 🙃
I would agree with that. I still think the workload on the main branch is significantly smaller than the workload across PRs. In the future, we could set up a nightly run to set up a cache each day and early detect problems with upstream releases. Maybe even have some kind of dashboard that can visualize successful/flaky/error runs. Can see dask does this.
😃 Like the discussion, though, it's always nice to have one's view challenged. |
* Dynamic generate unit test matrix and add cache option * Add true if inputs.cache is not set
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'm fine with merging this. I'm unlikely not to notice if the tests didn't run when they should have.
No description provided.