Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-09-07 22:43:43 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-09-07 22:43:43 +0300
commitb93d3501fdc450018adae442f3a2bcb514b136b9 (patch)
tree955936f7f8dc587289cc11a85747f386eb82aff3
parent022f9b6b0c3771d0c8f1c4cb5d15258119fddc2a (diff)
Add latest changes from gitlab-org/gitlab@16-3-stable-ee
-rw-r--r--db/migrate/20230808135859_update_ci_max_total_yaml_size_bytes_default_value.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/db/migrate/20230808135859_update_ci_max_total_yaml_size_bytes_default_value.rb b/db/migrate/20230808135859_update_ci_max_total_yaml_size_bytes_default_value.rb
index 546a102b4e6..ae42016663b 100644
--- a/db/migrate/20230808135859_update_ci_max_total_yaml_size_bytes_default_value.rb
+++ b/db/migrate/20230808135859_update_ci_max_total_yaml_size_bytes_default_value.rb
@@ -6,9 +6,12 @@ class UpdateCiMaxTotalYamlSizeBytesDefaultValue < Gitlab::Database::Migration[2.
restrict_gitlab_migration gitlab_schema: :gitlab_main
def up
+ # 2147483647 is the max int value.
execute <<~SQL
- UPDATE application_settings
- SET ci_max_total_yaml_size_bytes = max_yaml_size_bytes * ci_max_includes
+ UPDATE application_settings
+ SET ci_max_total_yaml_size_bytes =
+ CASE WHEN max_yaml_size_bytes * ci_max_includes >= 2147483647
+ THEN 2147483647 ELSE max_yaml_size_bytes * ci_max_includes END
SQL
end