dependabot-core icon indicating copy to clipboard operation
dependabot-core copied to clipboard

Fixes: Fixes issue when Dependabot generates a PR commit message that is longer than 65536 chars.

Open sachin-sandhu opened this issue 9 months ago • 2 comments

https://github.com/dependabot/dependabot-core/issues/8972 - Fixes issue when Dependabot generates a PR commit message that is longer than 65536 chars. Dependabot appends supplement information to PR commit message (dependnabot signature and message truncate confirmation information). In upper limit edge cases, this results in hitting max limit of 65536 characters. This causes dependabot to raise PR request with error 'Enabling auto-merge failed. Commit message is too long'. A buffer of 1k (1024) characters is a safe limit that provides enough space to provide supplement information without hitting the max ceiling limit. The message is trimmed at length 64512 (65536 - 1024) which leaves 1024 chars as a buffer to add additional information in Git PR commit message.

sachin-sandhu avatar May 14 '24 12:05 sachin-sandhu

@sachin-sandhu can you add a more descriptive title

robaiken avatar May 14 '24 13:05 robaiken

According to the error message I got earlier, the maximum length was 16,383 not 65,535. Please see screenshot below. I wonder if this recently changed?

image

OmarTawfik avatar May 15 '24 01:05 OmarTawfik

Closing pull request

sachin-sandhu avatar May 17 '24 11:05 sachin-sandhu