Generated pipeline fail because a 2.5MB archive is bigger than the the 5MB limit

Generated pipeline fail because a 2.5MB archive is bigger than the the 5MB limit

I have a pipeline that makes heavy use of generated CI files. When the time to run the pipelines comes, however, the pipelines fails with yaml error and the message “Artifacts archive for job create-yaml is too large: max 5 MB”

The thing is, when I download the artifacts from the creation job, the archive size is only 2.5MB, so only half the limit. So likely the problem isnt the size of the archive itself, because indeed the generated pipeline file is very large (which is the whole point of this pipeline).

So my question is, what does the limiit apply to?

  • The zipped artifact archive file, as the message implies?
  • The whole contents of the archive?
  • The individual YAML file?

The first option does not seem to be the right one. The third option would let me split the pipeline file over many includes as a workaround. The second option would be a problem, because it would completely block my usecase.