Commit 23687bfe authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab master

parents 7bc6b3ba 393892ec
......@@ -43,5 +43,5 @@ if project_helper.labels_to_add.any?
end
if anything_to_post
markdown("**If needed, you can retry the [`danger-review` job](#{ENV['CI_JOB_URL']}) that generated this comment.**")
markdown("**If needed, you can retry the [🔁 `danger-review` job](#{ENV['CI_JOB_URL']}) that generated this comment.**")
end
......@@ -18,7 +18,7 @@ module TodosHelper
when Todo::ASSIGNED then todo.self_added? ? 'assigned' : 'assigned you'
when Todo::REVIEW_REQUESTED then 'requested a review of'
when Todo::MENTIONED then "mentioned #{todo_action_subject(todo)} on"
when Todo::BUILD_FAILED then 'The build failed for'
when Todo::BUILD_FAILED then 'The pipeline failed in'
when Todo::MARKED then 'added a todo for'
when Todo::APPROVAL_REQUIRED then "set #{todo_action_subject(todo)} as an approver for"
when Todo::UNMERGEABLE then 'Could not merge'
......
# frozen_string_literal: true
class AsyncBuildTraceExpireAtIndex < Gitlab::Database::Migration[1.0]
INDEX_NAME = 'tmp_index_ci_job_artifacts_on_id_where_trace_and_expire_at'
TIMESTAMPS = "'2021-04-22 00:00:00', '2021-05-22 00:00:00', '2021-06-22 00:00:00', '2022-01-22 00:00:00', '2022-02-22 00:00:00', '2022-03-22 00:00:00', '2022-04-22 00:00:00'"
def up
prepare_async_index :ci_job_artifacts, :id, where: "file_type = 3 AND expire_at IN (#{TIMESTAMPS})", name: INDEX_NAME
end
def down
unprepare_async_index :ci_builds, :id, name: INDEX_NAME
end
end
74b4d572118b7f5da0a80722601a4757ce47ccbdae1af1e84b2304343477d634
\ No newline at end of file
# frozen_string_literal: true
require 'spec_helper'
require Rails.root.join('db', 'post_migrate', '20220224000000_async_build_trace_expire_at_index.rb')
RSpec.describe AsyncBuildTraceExpireAtIndex do
describe '#up' do
it 'sets up a delayed concurrent index creation' do
expect_next_instance_of(described_class) do |instance|
expect(instance).to receive(:prepare_async_index)
end
migrate!
end
end
describe '#down' do
it 'removes an index' do
expect_any_instance_of(described_class) do |instance|
expect(instance).to receive(:unprepare_async_index)
end
schema_migrate_down!
end
end
end
......@@ -178,7 +178,7 @@ RSpec.describe 'Dashboard > User filters todos', :js do
review_requested: ' requested a review of ',
mentioned: ' mentioned ',
marked: ' added a todo for ',
build_failed: ' build failed for '
build_failed: ' pipeline failed in '
}
action_name_text = action_names.delete(action_name)
......
......@@ -400,7 +400,7 @@ RSpec.describe 'Dashboard Todos' do
end
it 'shows the todo' do
expect(page).to have_content 'The build failed for merge request'
expect(page).to have_content 'The pipeline failed in merge request'
end
it 'links to the pipelines for the merge request' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment