-
Notifications
You must be signed in to change notification settings - Fork 3
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
Errors found without any errors on changed files #3
Comments
I'm pretty sure what's happening is that eslint is reporting 33 errors (which I can verify locally with This is a bug worth fixing. If we're not creating annotations, we shouldn't be counting those errors towards the final result |
I believe I've encountered the same error on |
I think I found the source of this bug while looking into something for @alexandervalencia Line 119 in 611cd6d
On that line we are grabbing the error and warning count directly from the eslint output, before filtering out errors and warnings from lines that were not changed in the PR. Those constants currently determine the conclusion level of the check, which could result in failures being described in this issue if you make a "clean" line change in an already "dirty" file. |
eslint lints by files, but we only care about _specific lines_ in each file. If you made a "clean" change in a "dirty" file, we would report the total number of eslint errors and warnings found — even if we didn't generate any annotations because your diff was good. This change has us adding up errors and warning from the changes we deem relevant to the PR instead of using the original numbers from eslint. Fixes #3
I've experienced an issue where Balto is showing a check as failed with a lot of errors, even though it does not list any errors. I have also manually verified locally that the files in question do not contain errors.
The issue can be seen on this PR: https://github.com/ministrycentered/check-ins/pull/3548
The text was updated successfully, but these errors were encountered: