Skip to content
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

[BUG] fail_on_error also fails on warnings #589

Closed
3 tasks done
simllll opened this issue Apr 29, 2022 · 4 comments
Closed
3 tasks done

[BUG] fail_on_error also fails on warnings #589

simllll opened this issue Apr 29, 2022 · 4 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@simllll
Copy link

simllll commented Apr 29, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Does this issue exist in the latest version?

  • I'm using the latest release

Describe the bug?

I have an eslint warning (not an error);
image

also runnign it locally results into:
image

in the pipeline I think this is the relevant output for it:
{"ruleId":"@typescript-eslint/no-non-null-assertion","severity":1,"message":"Forbidden non-null assertion.","line":43,"column":19,"nodeType":"TSNonNullExpression","messageId":"noNonNull","endLine":43,"endColumn":54}
reviewdog: input data has violations
Warning: Error running eslint.

- name: Run eslint on changed files
        uses: tj-actions/eslint-changed-files@v10.2
        with:
          fail_on_error: true
          config_path: '.eslintrc.js'
          ignore_path: '.eslintignore'

fails, even though it's no an error, it's just a warning. It should fail on errors only, or do I miss something here?

To Reproduce

set fail_on_error: true and use a rule that only produces a warning and not an error.

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-20.04, ubuntu-18.04

Expected behavior?

It should only fail on errors, not on warnings

Relevant log output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@simllll simllll added the bug Something isn't working label Apr 29, 2022
@github-actions
Copy link
Contributor

Thanks for reporting this issue, don't forget to star this project to help us reach a wider audience.

@simllll
Copy link
Author

simllll commented Apr 29, 2022

Well it seems it's an upstream bug: reviewdog/action-eslint#62

@jackton1
Copy link
Member

Based on https://github.com/reviewdog/reviewdog#exit-codes you can also take a look at changing the level option.

Since there is a related Issue. I'll close this one pending any further work on this issue.

@jackton1 jackton1 added the wontfix This will not be worked on label May 14, 2022
@repo-ranger
Copy link
Contributor

repo-ranger bot commented May 14, 2022

⚠️ This has been marked to be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants