-
Notifications
You must be signed in to change notification settings - Fork 306
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
Treat warnings as errors in CI #924
Conversation
This helps avoid accidentally missing a warning.
e7ca6d6
to
d682500
Compare
I'm thinking we maybe want to have the continue on error flag set on the clippy job (so that other tests also run) (?) |
d682500
to
2ea7503
Compare
@@ -544,9 +543,9 @@ fn axis_chunks_iter_corner_cases() { | |||
assert_equal( | |||
it, | |||
vec![ | |||
arr2(&[[7.], [6.], [5.]]), | |||
arr2(&[[4.], [3.], [2.]]), | |||
arr2(&[[1.], [0.]]), |
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 was the warning here?
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.
Unused import of arr2
when the std
feature is not enabled. There were a number of other similar unused import warnings.
2ea7503
to
a5d2ff4
Compare
I think they were running. (I was just force-pushing to fix warnings before they got a chance to finish.) I have seen items canceled when other items fail, but from what I've seen, it's always been within a job (i.e. within "tests" or within "cross_test"), so the tests should still run if clippy fails. I'll check to make sure. |
I think you'd want continue on error, but yeah I wonder why they are running anyway. https://github.com/petgraph/petgraph/blob/master/.github/workflows/ci.yml#L45 |
I came across these pages regarding continue-on-error:
which seem to indicate that continue-on-error makes the job always "pass", i.e. get a green check. They suggest to use I'll try adding Edit: Yes, the canceling of items appears to occur within jobs, but not across jobs. (The jobs are |
0049144
to
8e75d9d
Compare
8e75d9d
to
87a6448
Compare
Thanks |
This helps avoid accidentally missing a warning.