-
Notifications
You must be signed in to change notification settings - Fork 38
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 - Checks containing a lot of logs/data are not sent to GitHub #131
Comments
cc @mrginglymus |
I think that's what https://github.com/jenkinsci/github-checks-plugin/pull/101/files is supposed to do. It might just be that the max size be lowered to allow the rest of the payload to be sent. I am guessing saying it is specific to 1.10 might be wrong. This is the error we are seeing in our logs so I guess it is still coming from GitHub:
|
What plugin is sending these checks, or is it a manual invocation of the |
The GitHub error response says "a maximum bytesize of 65535" but TruncatedString counts characters rather than bytes. |
https://git.luolix.topmunity/t/undocumented-65535-character-limit-on-requests/117564 likewise says the limit is 65535 bytes, and applies to each property separately. I hope that encoding a newline as |
From jenkinsci/junit-plugin#192 (comment), GitLab and Bitbucket Server have limits given in characters rather than bytes. It might be best to make the Checks API plugin provide an array of strings and make the GitHub Checks plugin measure how many bytes each string will cost. |
I can see two things to do - we can update The other thing is to make the |
not published yet but this was just hosted: |
I'm doing it now, and it's easy enough to do both. PR incoming... |
Problem
Since 1.10 https://github.com/jenkinsci/github-checks-plugin/pull/101/files the plugin errors out if the check payload is too large. I am assuming that prior to 1.10 GitHub would reject the request on their side.
Unfortunately, some of our checks contain a massive amount of logs which means that the checks will never be sent to GitHub. This is an issue for us as it may prevent people from merging to a protected branch. Our workaround is to only depend on the main GitHub check (not published by this plugin) that does not contain any logs.
Expected behavior
A truncated version is sent to GitHub. Alternatively, skip all logs altogether, but it would be nice to keep it the payload is under 65335 bytes.
Actual behavior
The check result is not posted to GitHub.
The text was updated successfully, but these errors were encountered: