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

Large reek output causes reek check to spin forever #6

Open
dnorth98 opened this issue Jul 28, 2020 · 3 comments
Open

Large reek output causes reek check to spin forever #6

dnorth98 opened this issue Jul 28, 2020 · 3 comments

Comments

@dnorth98
Copy link

Running the reek action and it seems if reek has a large amount of output, the runner action will complete but the posted result will sit in the "pending" state forever.

I'm pretty sure it's related to this message from the runner

reviewdog: post failed for reek: failed to post result: PATCH https://api.github.com/repos/ACME/MY-REPO/check-runs/918892721: 422 Invalid request.

Only 65535 characters are allowed; 104394 were supplied. []

I think what happens is the result gets created but because the post fails, it never completes which leaves the check in a forever pending state

Here's our reek action config

  reek:
    name: runner / reek
    runs-on: ubuntu-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v1

      - name: reek
        uses: reviewdog/action-reek@v1
        with:
          reek_version: 6.0.1
          github_token: ${{ secrets.github_token }}
          filter_mode: file
@mgrachev
Copy link
Member

mgrachev commented Aug 20, 2020

I'm sorry for the late reply 🙏

I guess @haya14busa may help with that problem 🤔

@patrik-csak
Copy link

I had this same problem and fixed it by forking reviewdog and lowering maxFilteredFinding.

@haya14busa, would you consider this to be a bug in reviewdog? Should reviewdog check the size of the report before calling the GitHub API to avoid making such a large HTTP request?

@haya14busa
Copy link
Member

Yes, reviewdog should ideally check the size but it's not implemented. It's not high priority for me to work on this issue, but PR is very much welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants