If a Gitlab MR contains a lot of whitespace problems, the generated status message can get too big for a Gitlab comment. We have just seen this happen with this message:
{"message":"400 Bad request - Failed to save note {:note=\u003e[\"is too long (maximum is 1000000 characters)\"]}"}
The MR in question contained Windows line endings in every touched file, which can easily become a very big chunk of text.
We need to make sure we limit the size of this message before trying to post it to Gitlab.
{"message":"400 Bad request - Failed to save note {:note=\u003e[\"is too long (maximum is 1000000 characters)\"]}"}
The MR in question contained Windows line endings in every touched file, which can easily become a very big chunk of text.
We need to make sure we limit the size of this message before trying to post it to Gitlab.