MR changes which are "too large to be shown"

image

When opening a merge request, it is very common for Gitlab to report: “Changes are too large to be shown”, and to disallow commenting on the diff.

This usually happens on unit test sources. Tests for even quite a small unit can easily run to 5000 lines and larger ones to 10000 lines. In the past, I have dealt with unit tests exceeding 20000 lines.

How do I extend the limit? I know I have worked on Gitlab with much larger test scripts in the past. Can anyone say why this limit is so low?

While it is sorted out, how are you supposed to review these files?

Hi @JWRWSE

if you have self-hosted GitLab server you can adjust the limits as described in docs.