Add new ci_max_total_yaml_size_bytes application setting

What does this MR do and why?

Addressing issue. Adding a new application setting called: ci_max_total_yaml_size_bytes

Screenshots or screen recordings

UPDATE The UI for changing of the limit was removed at this stage.

Migrations

Screenshot_2023-08-08_at_16.01.35

Screenshot_2023-08-08_at_16.01.04

Screenshot_2023-08-08_at_16.02.57

Screenshot_2023-08-08_at_16.22.42

How to set up and validate locally

  1. Set low limit via command line: ApplicationSetting.update(ci_max_total_yaml_size_bytes: 100)
  2. Create a pipeline yml file, including other files.
  3. Run pipeline and verify errors.

When CI/CD configuration size in bytes is higher then limit: -> we get the error message

Screenshot_2023-07-29_at_13.38.06

When CI/CD configuration size in bytes is higher then limit, but the feature flag is disabled: -> we see a valid pipeline

See screenshot Screenshot_2023-07-29_at_13.38.21

When CI/CD configuration size in bytes is lower then limit: -> we see a valid pipeline

See screenshot Screenshot_2023-07-29_at_13.45.40

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Kasia Misirli

Merge request reports

Loading