Comments (6)
Hi! Could you provide a log to check the problem?
from action-rubocop.
Sure, let me go fetch one.
from action-rubocop.
from action-rubocop.
I'm convinced that the gist of the error is below. An HTTP request to post to GitHub by reviewdog has failed due to too big request content (reviewdog's code is here).
2022-02-28T02:09:15.2456076Z ##[group] Running rubocop with reviewdog 🐶 ...
2022-02-28T02:09:50.4823074Z /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/bundler/vendor/thor/lib/thor.rb: Warning: no department given for MethodLength. Run `rubocop -a --only Migration/DepartmentName` to fix.
2022-02-28T02:09:51.1862309Z /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/bundler/vendor/thor/lib/thor/base.rb: Warning: no department given for AssignmentInCondition. Run `rubocop -a --only Migration/DepartmentName` to fix.
2022-02-28T02:09:51.5781666Z /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/bundler/vendor/thor/lib/thor/group.rb: Warning: no department given for MethodLength. Run `rubocop -a --only Migration/DepartmentName` to fix.
2022-02-28T02:09:51.8641190Z /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/bundler/vendor/thor/lib/thor/parser/arguments.rb: Warning: no department given for ClassLength. Run `rubocop -a --only Migration/DepartmentName` to fix.
2022-02-28T02:09:51.9426814Z /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/bundler/vendor/thor/lib/thor/parser/option.rb: Warning: no department given for AssignmentInCondition. Run `rubocop -a --only Migration/DepartmentName` to fix.
2022-02-28T02:09:52.0372154Z /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/bundler/vendor/thor/lib/thor/parser/options.rb: Warning: no department given for ClassLength. Run `rubocop -a --only Migration/DepartmentName` to fix.
2022-02-28T02:09:52.0384736Z /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/bundler/vendor/thor/lib/thor/parser/options.rb: Warning: no department given for MethodLength. Run `rubocop -a --only Migration/DepartmentName` to fix.
2022-02-28T02:09:52.0385766Z /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/bundler/vendor/thor/lib/thor/parser/options.rb: Warning: no department given for AssignmentInCondition. Run `rubocop -a --only Migration/DepartmentName` to fix.
2022-02-28T02:09:52.1328435Z /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/bundler/vendor/thor/lib/thor/rake_compat.rb: Warning: no department given for AssignmentInCondition. Run `rubocop -a --only Migration/DepartmentName` to fix.
2022-02-28T02:09:52.1330828Z /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/bundler/vendor/thor/lib/thor/rake_compat.rb: Warning: no department given for AssignmentInCondition. Run `rubocop -a --only Migration/DepartmentName` to fix.
2022-02-28T02:09:52.1973777Z /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/bundler/vendor/thor/lib/thor/runner.rb: Warning: no department given for ClassLength. Run `rubocop -a --only Migration/DepartmentName` to fix.
2022-02-28T02:09:52.1994137Z /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/bundler/vendor/thor/lib/thor/runner.rb: Warning: no department given for MethodLength. Run `rubocop -a --only Migration/DepartmentName` to fix.
2022-02-28T02:09:52.4341279Z /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/bundler/vendor/thor/lib/thor/shell/basic.rb: Warning: no department given for MethodLength. Run `rubocop -a --only Migration/DepartmentName` to fix.
2022-02-28T02:10:09.2058784Z An error occurred while Style/ParallelAssignment cop was inspecting /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/fiddle/import.rb:178:8.
2022-02-28T02:10:09.2059419Z To see the complete backtrace run rubocop -d.
2022-02-28T02:10:09.2060079Z An error occurred while Style/ParallelAssignment cop was inspecting /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/fiddle/import.rb:206:8.
2022-02-28T02:10:09.2060623Z To see the complete backtrace run rubocop -d.
2022-02-28T02:11:45.9205056Z
2022-02-28T02:11:45.9205759Z 2 errors occurred:
2022-02-28T02:11:45.9206873Z An error occurred while Style/ParallelAssignment cop was inspecting /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/fiddle/import.rb:178:8.
2022-02-28T02:11:45.9207963Z An error occurred while Style/ParallelAssignment cop was inspecting /home/runner/work/OSFM-GitHub/OSFM-GitHub/lib/ruby/fiddle/import.rb:206:8.
2022-02-28T02:11:45.9208618Z Errors are usually caused by RuboCop bugs.
2022-02-28T02:11:45.9210047Z Please, report your problems to RuboCop's issue tracker.
2022-02-28T02:11:45.9273620Z https://github.com/rubocop/rubocop/issues
2022-02-28T02:11:45.9273831Z
2022-02-28T02:11:45.9273968Z Mention the following information in the issue report:
2022-02-28T02:11:45.9274857Z 1.25.1 (using Parser 3.1.1.0, rubocop-ast 1.16.0, running on ruby 3.1.0 x86_64-linux)
2022-02-28T02:12:14.9723497Z {"severity":"ERROR","time":"2022-02-28T02:12:14.971888655Z","logging.googleapis.com/sourceLocation":{"file":"/home/runner/work/reviewdog/reviewdog/doghouse/server/github_checker.go","line":"45","function":"github.com/reviewdog/reviewdog/doghouse/server.(*checkerGitHubClient).UpdateCheckRun"},"message":"UpdateCheckRun failed: {\"message\":\"Invalid request.\\n\\nOnly 65535 characters are allowed; 70292 were supplied.\",\"documentation_url\":\"https://docs.github.com/rest/reference/checks#update-a-check-run\"}"}
2022-02-28T02:12:14.9725646Z {"severity":"DEBUG","time":"2022-02-28T02:12:14.972033357Z","logging.googleapis.com/sourceLocation":{"file":"/home/runner/work/reviewdog/reviewdog/doghouse/server/github_checker.go","line":"46","function":"github.com/reviewdog/reviewdog/doghouse/server.(*checkerGitHubClient).UpdateCheckRun"},"message":"Retrying UpdateCheckRun...: 1"}
2022-02-28T02:12:16.2216799Z {"severity":"ERROR","time":"2022-02-28T02:12:16.221290711Z","logging.googleapis.com/sourceLocation":{"file":"/home/runner/work/reviewdog/reviewdog/doghouse/server/github_checker.go","line":"45","function":"github.com/reviewdog/reviewdog/doghouse/server.(*checkerGitHubClient).UpdateCheckRun"},"message":"UpdateCheckRun failed: {\"message\":\"Invalid request.\\n\\nOnly 65535 characters are allowed; 70292 were supplied.\",\"documentation_url\":\"https://docs.github.com/rest/reference/checks#update-a-check-run\"}"}
2022-02-28T02:12:16.2218747Z {"severity":"DEBUG","time":"2022-02-28T02:12:16.221339711Z","logging.googleapis.com/sourceLocation":{"file":"/home/runner/work/reviewdog/reviewdog/doghouse/server/github_checker.go","line":"46","function":"github.com/reviewdog/reviewdog/doghouse/server.(*checkerGitHubClient).UpdateCheckRun"},"message":"Retrying UpdateCheckRun...: 2"}
2022-02-28T02:12:17.4815048Z {"severity":"ERROR","time":"2022-02-28T02:12:17.48104636Z","logging.googleapis.com/sourceLocation":{"file":"/home/runner/work/reviewdog/reviewdog/doghouse/server/github_checker.go","line":"45","function":"github.com/reviewdog/reviewdog/doghouse/server.(*checkerGitHubClient).UpdateCheckRun"},"message":"UpdateCheckRun failed: {\"message\":\"Invalid request.\\n\\nOnly 65535 characters are allowed; 70292 were supplied.\",\"documentation_url\":\"https://docs.github.com/rest/reference/checks#update-a-check-run\"}"}
2022-02-28T02:12:17.4816901Z {"severity":"DEBUG","time":"2022-02-28T02:12:17.48110226Z","logging.googleapis.com/sourceLocation":{"file":"/home/runner/work/reviewdog/reviewdog/doghouse/server/github_checker.go","line":"46","function":"github.com/reviewdog/reviewdog/doghouse/server.(*checkerGitHubClient).UpdateCheckRun"},"message":"Retrying UpdateCheckRun...: 3"}
2022-02-28T02:12:18.7889020Z {"severity":"ERROR","time":"2022-02-28T02:12:18.78839901Z","logging.googleapis.com/sourceLocation":{"file":"/home/runner/work/reviewdog/reviewdog/doghouse/server/github_checker.go","line":"45","function":"github.com/reviewdog/reviewdog/doghouse/server.(*checkerGitHubClient).UpdateCheckRun"},"message":"UpdateCheckRun failed: {\"message\":\"Invalid request.\\n\\nOnly 65535 characters are allowed; 70292 were supplied.\",\"documentation_url\":\"https://docs.github.com/rest/reference/checks#update-a-check-run\"}"}
2022-02-28T02:12:18.7890898Z {"severity":"DEBUG","time":"2022-02-28T02:12:18.78845331Z","logging.googleapis.com/sourceLocation":{"file":"/home/runner/work/reviewdog/reviewdog/doghouse/server/github_checker.go","line":"46","function":"github.com/reviewdog/reviewdog/doghouse/server.(*checkerGitHubClient).UpdateCheckRun"},"message":"Retrying UpdateCheckRun...: 4"}
2022-02-28T02:12:20.0172176Z {"severity":"ERROR","time":"2022-02-28T02:12:20.016740193Z","logging.googleapis.com/sourceLocation":{"file":"/home/runner/work/reviewdog/reviewdog/doghouse/server/github_checker.go","line":"45","function":"github.com/reviewdog/reviewdog/doghouse/server.(*checkerGitHubClient).UpdateCheckRun"},"message":"UpdateCheckRun failed: {\"message\":\"Invalid request.\\n\\nOnly 65535 characters are allowed; 70292 were supplied.\",\"documentation_url\":\"https://docs.github.com/rest/reference/checks#update-a-check-run\"}"}
2022-02-28T02:12:20.0174472Z {"severity":"DEBUG","time":"2022-02-28T02:12:20.016789793Z","logging.googleapis.com/sourceLocation":{"file":"/home/runner/work/reviewdog/reviewdog/doghouse/server/github_checker.go","line":"46","function":"github.com/reviewdog/reviewdog/doghouse/server.(*checkerGitHubClient).UpdateCheckRun"},"message":"Retrying UpdateCheckRun...: 5"}
2022-02-28T02:12:21.0172815Z reviewdog: post failed for rubocop: failed to post result: PATCH https://api.github.com/repos/Speak2Erase/OSFM-GitHub/check-runs/5353992812: 422 Invalid request.
2022-02-28T02:12:21.0189863Z
2022-02-28T02:12:21.0190125Z Only 65535 characters are allowed; 70292 were supplied. []
2022-02-28T02:12:21.0227989Z ##[error]Process completed with exit code 1.
But I'm still not sure what makes such a big request body.
from action-rubocop.
If I had to guess, I have an extremely large codebase of around ~100,000 lines of code that for the past few years has not been following the style guide very closely. Rubocop generates a lot of complaints, and so there's an extremely large request size?
from action-rubocop.
Related Issues (20)
- Can't seem to be able to run the correct rubocop version HOT 1
- Add ability to skip install of rubocop and extensions HOT 1
- How i can use my own robocop rule? HOT 1
- Set default token to `github_token` input parameter HOT 5
- Undefined method `begin' for PseudoSourceRange HOT 6
- Fail running rubocop step if rubocop command itself fails HOT 5
- gem install was failed with Ruby 2.6.6 HOT 2
- Getting undefined method `cleanpath` when running via GitHub HOT 6
- Takes too long HOT 5
- getting REVIEWDOG_GITHUB_API_TOKEN error HOT 2
- undefined method `begin' for nil:NilClass HOT 2
- Possible to suggest linting corrections? HOT 5
- GitHub marketplace shows v1 as the latest HOT 2
- Rubocop info severity causes build failure
- reviewdog fails to parse when `--server` option is given HOT 1
- `Style/MethodDefParentheses` creates a suggestion with just one opening parenthese
- Cache ruby gems to speed up installation HOT 2
- Replace actions/create-release HOT 1
- rubocop_extensions installation version from Gemfile does not work with wrong definition order of gems HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-rubocop.