Comments (10)
cc @mrginglymus
from github-checks-plugin.
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:
[GitHub Checks] Failed Publishing GitHub checks: org.kohsuke.github.GHFileNotFoundException: https://api.github.com/repos/alloytech/alloy/check-runs/1961940126 {"message":"Validation Failed","errors":[{"resource":"CheckRun","code":"custom","field":"summary","message":"summary exceeds a maximum bytesize of 65535"}],"documentation_url":"https://docs.github.com/rest/reference/checks#update-a-check-run"}
from github-checks-plugin.
What plugin is sending these checks, or is it a manual invocation of the publishChecks
step?
from github-checks-plugin.
The GitHub error response says "a maximum bytesize of 65535" but TruncatedString counts characters rather than bytes.
from github-checks-plugin.
https://github.community/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 \n
in a JSON string won't consume two of those bytes.
from github-checks-plugin.
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.
from github-checks-plugin.
I can see two things to do - we can update TruncatedString
to truncate on byte-length rather than char-length. If that's the root of this problem, then we'll solve it without having to update anything else.
The other thing is to make the TruncatedString
able to truncate on char or bytes at the callers discretion; as there's only one at the moment it's less urgent to implement that.
from github-checks-plugin.
The other thing is to make the TruncatedString able to truncate on char or bytes at the callers discretion; as there's only one at the moment it's less urgent to implement that.
not published yet but this was just hosted:
https://github.com/jenkinsci/gitea-checks-plugin
from github-checks-plugin.
I'm doing it now, and it's easy enough to do both. PR incoming...
from github-checks-plugin.
jenkinsci/checks-api-plugin#88
from github-checks-plugin.
Related Issues (20)
- Allow a configurable credential for github checks plugin instead of using the cred from the initial clone HOT 2
- Unable to connect using GitHub SCM and github app credentials
- Dependency Dashboard
- Using environment variable for status checks name
- Re-enable integrations tests
- Updating status checks on merge of PR instead of head
- Pick up organization name in GitHub multi-branch job HOT 2
- Head of build log is not useful in failures
- Failed Publishing GitHub checks - Only 65535 characters are allowed; 65537 were supplied. HOT 8
- Broken using SSH credentials with this plugin
- GitHub checks not published despite successful job execution
- GitHub Checks is spamming the logs HOT 3
- Chess incorrectly report success on failed stage if junit is enabled and not failing
- Configuration ignores app credential override
- Checks fail if run on system locked out of public internet. HOT 5
- Couldn't authenticate with GitHub App for Checks without owner defined (single org) HOT 6
- Add getting started documentation
- Manual builds throw an exception when they run HOT 2
- Plugin not publishing completed status checks back to the correct commit under rare cases
- "github checks plugin" does not work in jenkins 2.426.3-lts HOT 1
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 github-checks-plugin.