Truncated Commit Messages in UI
Summary
A customer is encountering an issue where the commit messages are truncated in the UI. The full title is saved in the database and appears when a notification email goes out but the text in the UI cuts off early with '...'
On examination of where the cut-off messages end, they are being truncated at 1kb exactly.
Looking at the code for commit messages, you can see that the full_title field is limited to 1 kb. https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/models/commit.rb#L44
The message shouldn't be using the full_title field, but it appears to be adopting its limitations in certain cases. It should be using the description field, and the block is labeled as 'description' when inspecting. I've been unable to reproduce the behavior as I can save the same messages the customer is attempting to save and see the full text untruncated.
This initially occurred on 14.7.2 and then went away after an update to 14.8.2 and came back shortly afterward. I was unable to reproduce the error on either version.
Reproduction steps
See #357459 (comment 1145054255)
What is the current bug behavior?
Certain commit messages greater than 1kb in size are truncating at exactly 1kb. This occurred after an update to a version that incorporated changes to the sizes of markdown fields.
What is the expected correct behavior?
The code for the description field says that there is a 1mb limit and the field should be able to display up to that limit consistently.

