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
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-17 12:08:52 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-17 12:08:52 +0300
commit53ae6b7e3f83591ad251a3f771f5bf3b8cf087ba (patch)
tree5180b96d6a84f36a515cedfa8e81d72de5ccf4fb /lib
parentcfe63cce6a90a1c70397c1b9f6d90480f25cae0a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/background_migration/link_lfs_objects.rb19
-rw-r--r--lib/gitlab/ci/status/build/failed.rb1
-rw-r--r--lib/quality/kubernetes_client.rb2
3 files changed, 3 insertions, 19 deletions
diff --git a/lib/gitlab/background_migration/link_lfs_objects.rb b/lib/gitlab/background_migration/link_lfs_objects.rb
index 014bebc4258..69c03f617bf 100644
--- a/lib/gitlab/background_migration/link_lfs_objects.rb
+++ b/lib/gitlab/background_migration/link_lfs_objects.rb
@@ -24,24 +24,7 @@ module Gitlab
end
def perform(start_id, end_id)
- select_query =
- ForkNetworkMember
- .select('lop.lfs_object_id, fork_network_members.project_id')
- .with_non_existing_lfs_objects
- .where(project_id: start_id..end_id)
-
- return if select_query.empty?
-
- execute <<-SQL
- INSERT INTO lfs_objects_projects (lfs_object_id, project_id)
- #{select_query.to_sql}
- SQL
- end
-
- private
-
- def execute(sql)
- ::ActiveRecord::Base.connection.execute(sql)
+ # no-op as some queries times out
end
end
end
diff --git a/lib/gitlab/ci/status/build/failed.rb b/lib/gitlab/ci/status/build/failed.rb
index 0915a98a0fa..b0b01538a30 100644
--- a/lib/gitlab/ci/status/build/failed.rb
+++ b/lib/gitlab/ci/status/build/failed.rb
@@ -19,6 +19,7 @@ module Gitlab
unmet_prerequisites: 'unmet prerequisites',
scheduler_failure: 'scheduler failure',
data_integrity_failure: 'data integrity failure',
+ forward_deployment_failure: 'forward deployment failure',
invalid_bridge_trigger: 'downstream pipeline trigger definition is invalid',
downstream_bridge_project_not_found: 'downstream project could not be found',
insufficient_bridge_permissions: 'no permissions to trigger downstream pipeline',
diff --git a/lib/quality/kubernetes_client.rb b/lib/quality/kubernetes_client.rb
index db21c0b013b..453b9d21adb 100644
--- a/lib/quality/kubernetes_client.rb
+++ b/lib/quality/kubernetes_client.rb
@@ -63,7 +63,7 @@ module Quality
'get',
RESOURCE_LIST,
%(--namespace "#{namespace}"),
- '-o custom-columns=NAME:.metadata.name'
+ '-o name'
]
run_command(command).lines.map(&:strip)
end