Skip to content
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

fix(platform/gerrit): Check for comment size limit #26454

Merged
merged 2 commits into from
Dec 30, 2023

Conversation

valodzka
Copy link
Contributor

If generated message too big request to gerrit will fail with:

 One or more comments were rejected in validation: Comment size exceeds limit (16437 > 16384)

Avoid this by truncating messages before posting them.

Changes

Fix minor issue with gerrit integration.

Context

While testing new gerrit integration I found in some cases (long changelog) it might fail to create changeset. It is the fix for the issue.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@CLAassistant
Copy link

CLAassistant commented Dec 29, 2023

CLA assistant check
All committers have signed the CLA.

If generated message too big request to gerrit will fail with:

   One or more comments were rejected in validation: Comment size exceeds limit (16437 > 16384)

Avoid this by truncating messages before posting them.
@viceice viceice changed the title Check for gerrit comment size limit fix(platform/Gerrit): Check for comment size limit Dec 29, 2023
lib/modules/platform/gerrit/client.ts Outdated Show resolved Hide resolved
@viceice viceice changed the title fix(platform/Gerrit): Check for comment size limit fix(platform/gerrit): Check for comment size limit Dec 30, 2023
@viceice viceice added this pull request to the merge queue Dec 30, 2023
Merged via the queue into renovatebot:main with commit d8ad99f Dec 30, 2023
36 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 37.112.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@viceice viceice added the platform:gerrit Gerrit Platform label Jan 5, 2024
zT-1337 pushed a commit to scm-manager/renovate that referenced this pull request Jan 22, 2024
zT-1337 pushed a commit to scm-manager/renovate that referenced this pull request Jan 24, 2024
zT-1337 pushed a commit to scm-manager/renovate that referenced this pull request Jan 24, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform:gerrit Gerrit Platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants