-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Notes on PRs are sometimes higher than Gitlab limit (note=>["is too long (maximum is 1000000 characters)"]) #7775
Comments
Cool, thanks @xens ! |
When it happens I've identified two workarounds for now:
|
I've progressed a bit on this issue, I was able to capture the whole stderr when the problem occurred, just giving an extract here, as the error payload is 1.3MB large with >1B loc. So basically we have an issue with our Artifactory config on certain private NPM repo, and Renovate tries to POST the whole stderr payload (not honoring Gitlab limits on notes) which is too large and thus rejected by our Gitlab instance.
|
So it's the MR comment for artifact errors that's too long, not the MR body? |
Absolutely |
OK, that's easy to fix then. I'll push a fix that ensures we apply our truncation when adding a PR/MR comment that has unknown length. |
🎉 This issue has been resolved in version 23.87.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What Renovate type, platform and version are you using?
Describe the bug
From time to time Renovate stack-traces on some projects with the following error:
400 (Bad request) \"Note {:note=>[\"is too long (maximum is 1000000 characters)\"]}\" not given
Relevant debug logs
What is "interesting" is that the note for this particular PR that generates the stack-trace is actually
2511
chars long, so we're far from the1000000
limit, so it looks like that there's some kind of loop happening on certain conditions. More interestingly if I run the Bot in DEBUG mode the version bump work just fine, the bot is able to bump the version on the same PR that failed without the DEBUG modeTo Reproduce
I'll try to add more info I don't have the exact steps for now.
Additional context
It happens usually on repositories where changes are frequent and where the Renovate-bot need to bump versions on existing PRs. For example we have a repository that contains the code for our Renovate bot. The Renovate bot scans this repo everyday but we only merge the PRs once a week, thus the bot needs to edit ~7 time the PR as new releases for Renovate are issued every day.
The text was updated successfully, but these errors were encountered: