Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
96855c4214
commit
01f651480e
|
@ -1726,6 +1726,12 @@ entry.
|
|||
- [Remove diffs gradual load feature flag](gitlab-org/gitlab@027d7c4327b5b6205a84281239027273517bf81b) ([merge request](gitlab-org/gitlab!55478))
|
||||
- [Remove partial index for Hashed Storage migration](gitlab-org/gitlab@3ed017a1023d7b0941a7606b69e6caee8d22f15c) ([merge request](gitlab-org/gitlab!62920))
|
||||
|
||||
## 14.0.11 (2021-09-23)
|
||||
|
||||
### Fixed (1 change)
|
||||
|
||||
- [Fix Elastic::MigrationWorker current_migration](gitlab-org/gitlab@0b72aace30bff0fda7a114862ec1e389ddaa5ead) ([merge request](gitlab-org/gitlab!71101)) **GitLab Enterprise Edition**
|
||||
|
||||
## 14.0.10 (2021-09-02)
|
||||
|
||||
No changes.
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class DropInt4ColumnForCiSourcesPipelines < Gitlab::Database::Migration[1.0]
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
remove_column :ci_sources_pipelines, :source_job_id_convert_to_bigint, :integer
|
||||
end
|
||||
end
|
|
@ -0,0 +1,22 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class ConcurrentIndexResourceGroupStatusCommitIdForCiBuilds < Gitlab::Database::Migration[1.0]
|
||||
INDEX_NAME = 'index_ci_builds_on_resource_group_and_status_and_commit_id'
|
||||
|
||||
disable_ddl_transaction!
|
||||
|
||||
# Indexes were pre-created on gitlab.com to avoid slowing down deployments
|
||||
# See: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/70279
|
||||
|
||||
# rubocop: disable Migration/PreventIndexCreation
|
||||
def up
|
||||
add_concurrent_index :ci_builds, [:resource_group_id, :status, :commit_id],
|
||||
where: 'resource_group_id IS NOT NULL',
|
||||
name: INDEX_NAME
|
||||
end
|
||||
# rubocop: enable Migration/PreventIndexCreation
|
||||
|
||||
def down
|
||||
remove_concurrent_index_by_name :ci_builds, INDEX_NAME
|
||||
end
|
||||
end
|
|
@ -0,0 +1 @@
|
|||
43b02083323765888f019386138e8fbaa3182d74bd5e8790d6fae6ea6f0a2104
|
|
@ -0,0 +1 @@
|
|||
6401de932d87b684c8a00254231312f8633c66a8ea96670b2761442c771d3d7f
|
|
@ -11992,7 +11992,6 @@ CREATE TABLE ci_sources_pipelines (
|
|||
project_id integer,
|
||||
pipeline_id integer,
|
||||
source_project_id integer,
|
||||
source_job_id_convert_to_bigint integer,
|
||||
source_pipeline_id integer,
|
||||
source_job_id bigint
|
||||
);
|
||||
|
@ -24439,6 +24438,8 @@ CREATE INDEX index_ci_builds_on_project_id_for_successfull_pages_deploy ON ci_bu
|
|||
|
||||
CREATE INDEX index_ci_builds_on_queued_at ON ci_builds USING btree (queued_at);
|
||||
|
||||
CREATE INDEX index_ci_builds_on_resource_group_and_status_and_commit_id ON ci_builds USING btree (resource_group_id, status, commit_id) WHERE (resource_group_id IS NOT NULL);
|
||||
|
||||
CREATE INDEX index_ci_builds_on_runner_id_and_id_desc ON ci_builds USING btree (runner_id, id DESC);
|
||||
|
||||
CREATE INDEX index_ci_builds_on_stage_id ON ci_builds USING btree (stage_id);
|
||||
|
|
|
@ -26,7 +26,7 @@ from [owasp.org](https://owasp.org/).
|
|||
|
||||
- Geo streams almost all data held by a GitLab instance between sites. This
|
||||
includes full database replication, most files (user-uploaded attachments,
|
||||
etc) and repository + wiki data. In a typical configuration, this will
|
||||
and so on) and repository + wiki data. In a typical configuration, this will
|
||||
happen across the public Internet, and be TLS-encrypted.
|
||||
- PostgreSQL replication is TLS-encrypted.
|
||||
- See also: [only TLSv1.2 should be supported](https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/2948)
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'spec_helper'
|
||||
require_migration!('drop_int4_column_for_ci_sources_pipelines')
|
||||
|
||||
RSpec.describe DropInt4ColumnForCiSourcesPipelines do
|
||||
let(:ci_sources_pipelines) { table(:ci_sources_pipelines) }
|
||||
|
||||
it 'correctly migrates up and down' do
|
||||
reversible_migration do |migration|
|
||||
migration.before -> {
|
||||
expect(ci_sources_pipelines.column_names).to include('source_job_id_convert_to_bigint')
|
||||
}
|
||||
|
||||
migration.after -> {
|
||||
ci_sources_pipelines.reset_column_information
|
||||
expect(ci_sources_pipelines.column_names).not_to include('source_job_id_convert_to_bigint')
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue