Zulip Chat Archive
Stream: mathlib4
Topic: silent CI lint error
Edward van de Meent (Jul 27 2024 at 20:52):
in this pipeline, the step throws an error but succeeds anyway?
Edward van de Meent (Jul 27 2024 at 20:53):
that's not intended, right?
Kim Morrison (Jul 28 2024 at 23:30):
No, that is definitely not intended!
Damiano Testa (Jul 29 2024 at 00:55):
The reason it continues is probably this line
It is probably intended that the linting continues, but there is probably a missing final step that catches all failures.
The reason this step fails, though, is likely that lake
is not installed, so a previous CI step in this workflow should make it available.
Kim Morrison (Jul 29 2024 at 01:25):
@Damiano Testa, would you be able to look into making sure lake
is installed there?
Damiano Testa (Jul 29 2024 at 03:00):
Damiano Testa (Jul 29 2024 at 03:01):
As always, CI is very tricky! This step must have never worked: I checked one of my latest PRs and indeed it was failing. It does not fail on the PR linked above.
Damiano Testa (Jul 29 2024 at 03:02):
It seems that the same battery of tests is also run on CI and after elan
/lake
is installed, so there were no missed linting, just missed suggestions, I think.
Damiano Testa (Jul 29 2024 at 03:57):
While we are at it, I also enabled reviewdog
to suggest missing imports. I did it in the same PR, since it was just a one -line addition to CI.
Damiano Testa (Jul 29 2024 at 04:08):
The way in which it works is that the continue-on-error: true
step allows the following reviewdog
step to apply the suggestions of the previous step. Thus, there is no need to add a later check catching these failures, since reviewdog will comment on the PR.
I added a comment to the continue-on-error: true
steps.
Kim Morrison (Jul 29 2024 at 04:46):
Thanks so much!
Last updated: May 02 2025 at 03:31 UTC