Jcheck status message can be too big for Gitlab

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.0
    • Affects Version/s: None
    • Component/s: bots
    • None

      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.

            Assignee:
            Zhao Song
            Reporter:
            Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: