Allow self-managed users to configure max artifact size
Pipelines on our self managed instance are hitting this limit, which is hard-coded to 5MB in that same file. We have pipelines where the downstream child jobs need
the artifacts from the generating parent job, and when those artifacts get too large, we see the message below when we click on the trigger job for the downstream pipeline:
Could that MAX_ARTIFACT_SIZE
limit be made configurable? It seems odd that the maximum file size in megabytes for individual job artifacts
is configurable in the UI, and defaults to 100MB, while this hard-coded limit is so much smaller.
Proposal
One option, instead of changing the UI, is just to make it configurable in the rails console, so we could do something like:
ApplicationSetting.update(max_download_artifacts_size: 20.megabytes)
In addition, we should add a note recommending 5MB (for performance reasons); changing this option may not be optimal, especially for larger sizes (specific wording TBD). Any messages (i.e. the error message above) should also be adjusted/tested (in case they are static).