JUnit data parsing failed: XML exceeds permitted complexity: 301361/250000 objects

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Self-hosted GitLab Premium Customer (don't know if this even relevant to get support)

Since the update to GitLab Omnibus 17.6.1 last week, some of our customer projects with over 1000 unit tests fail to be parsed by GitLab.

The job summary shows a notification box with the message: JUnit data parsing failed: XML exceeds permitted complexity: 301361/250000 objects

image

I checked the code for the error message and apparently the limit of 250.000 objects is hardcoded: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/fogbugz_import/xml_adapter.rb#L39

Can we make this configurable?

Why was the number 250.000 chosen? Since I can't view https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/4387 I don't really know why this limit was necessary or why it was hardcoded.

@jnutt can you elaborate on this number and how we can solve this issue?

Edited by 🤖 GitLab Bot 🤖