From db19df23733c768c564534a09de2e6718097ec95 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 16 Mar 2022 15:07:32 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .gitlab/issue_templates/Refactoring.md | 5 +- .../Pipeline Configuration.md | 2 +- Gemfile | 2 +- Gemfile.lock | 6 +- app/assets/javascripts/editor/schema/ci.json | 55 ++++---- .../runner/components/runner_pause_button.vue | 13 +- .../runner/components/runner_paused_badge.vue | 12 +- app/assets/javascripts/runner/constants.js | 7 +- app/models/application_setting.rb | 12 ++ app/models/integrations/zentao.rb | 1 - .../concerns/members/bulk_create_users.rb | 15 +-- app/views/groups/runners/_runner.html.haml | 6 +- app/views/projects/commits/_commits.html.haml | 9 +- app/views/projects/runners/_runner.html.haml | 4 +- danger/specialization_labels/Dangerfile | 1 - danger/specs/Dangerfile | 5 +- doc/administration/object_storage.md | 1 + doc/administration/pages/index.md | 1 + doc/api/index.md | 3 - doc/ci/environments/deployment_approvals.md | 2 +- .../contributing/issue_workflow.md | 16 +-- doc/development/documentation/testing.md | 3 + .../licensed_feature_availability.md | 9 +- .../service_ping/metrics_dictionary.md | 2 +- lib/gitlab/current_settings.rb | 2 + .../ci_configuration/base_build_action.rb | 2 +- locale/gitlab.pot | 8 +- .../components/runner_pause_button_spec.js | 22 +++- spec/lib/gitlab/current_settings_spec.rb | 15 +++ .../sast_iac_build_action_spec.rb | 122 ++++++++++-------- .../models/member_shared_examples.rb | 45 +++++-- spec/tooling/danger/datateam_spec.rb | 8 +- .../upload/destination/destination.go | 3 + .../upload/destination/filestore/filestore.go | 1 + .../upload/destination/objectstore/doc.go | 3 + 35 files changed, 244 insertions(+), 179 deletions(-) create mode 100644 workhorse/internal/upload/destination/objectstore/doc.go diff --git a/.gitlab/issue_templates/Refactoring.md b/.gitlab/issue_templates/Refactoring.md index df18dcf7656..453ae743237 100644 --- a/.gitlab/issue_templates/Refactoring.md +++ b/.gitlab/issue_templates/Refactoring.md @@ -42,8 +42,9 @@ please list them here. Please select the appropriate label from the following: ~"feature::addition" ~"type::maintenance" - ~"tooling::pipelines" - ~"tooling::workflow" + ~"maintenance::refactor" + ~"maintenance::pipelines" + ~"maintenance::workflow" --> /label ~"type::maintenance" diff --git a/.gitlab/merge_request_templates/Pipeline Configuration.md b/.gitlab/merge_request_templates/Pipeline Configuration.md index a0b8d1cb8e4..336988d8bdf 100644 --- a/.gitlab/merge_request_templates/Pipeline Configuration.md +++ b/.gitlab/merge_request_templates/Pipeline Configuration.md @@ -35,4 +35,4 @@ This will help keep track of expected cost increases to the [GitLab project aver - [ ] Consider communicating these changes to the broader team following the [communication guideline for pipeline changes](https://about.gitlab.com/handbook/engineering/quality/engineering-productivity/#pipeline-changes) -/label ~"type::tooling" ~"tooling::pipelines" ~"Engineering Productivity" +/label ~"maintenance::pipelines" ~"Engineering Productivity" diff --git a/Gemfile b/Gemfile index b37923973ea..ed18ae38318 100644 --- a/Gemfile +++ b/Gemfile @@ -403,7 +403,7 @@ group :development, :test do end group :development, :test, :danger do - gem 'gitlab-dangerfiles', '~> 2.10.2', require: false + gem 'gitlab-dangerfiles', '~> 2.11.0', require: false end group :development, :test, :coverage do diff --git a/Gemfile.lock b/Gemfile.lock index a8a01945085..2b0057d353d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -463,8 +463,8 @@ GEM terminal-table (~> 1.5, >= 1.5.1) gitlab-chronic (0.10.5) numerizer (~> 0.2) - gitlab-dangerfiles (2.10.2) - danger (>= 8.3.1) + gitlab-dangerfiles (2.11.0) + danger (>= 8.4.5) danger-gitlab (>= 8.0.0) gitlab-experiment (0.7.0) activesupport (>= 3.0) @@ -1494,7 +1494,7 @@ DEPENDENCIES gitaly (~> 14.9.0.pre.rc4) github-markup (~> 1.7.0) gitlab-chronic (~> 0.10.5) - gitlab-dangerfiles (~> 2.10.2) + gitlab-dangerfiles (~> 2.11.0) gitlab-experiment (~> 0.7.0) gitlab-fog-azure-rm (~> 1.2.0) gitlab-labkit (~> 0.22.0) diff --git a/app/assets/javascripts/editor/schema/ci.json b/app/assets/javascripts/editor/schema/ci.json index 4d9fe6ff851..84220d59205 100644 --- a/app/assets/javascripts/editor/schema/ci.json +++ b/app/assets/javascripts/editor/schema/ci.json @@ -423,37 +423,34 @@ "description": "Defines secrets to be injected as environment variables", "additionalProperties": { "type": "object", - "additionalProperties": { - "type": "object", - "description": "Environment variable name", - "properties": { - "vault": { - "oneOf": [ - { - "type": "string", - "description": "The secret to be fetched from Vault (e.g. 'production/db/password@ops' translates to secret 'ops/data/production/db', field `password`)" - }, - { - "type": "object", - "properties": { - "engine": { - "type": "object", - "properties": { - "name": { "type": "string" }, - "path": { "type": "string" } - }, - "required": ["name", "path"] + "description": "Environment variable name", + "properties": { + "vault": { + "oneOf": [ + { + "type": "string", + "description": "The secret to be fetched from Vault (e.g. 'production/db/password@ops' translates to secret 'ops/data/production/db', field `password`)" + }, + { + "type": "object", + "properties": { + "engine": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "path": { "type": "string" } }, - "path": { "type": "string" }, - "field": { "type": "string" } + "required": ["name", "path"] }, - "required": ["engine", "path", "field"] - } - ] - } - }, - "required": ["vault"] - } + "path": { "type": "string" }, + "field": { "type": "string" } + }, + "required": ["engine", "path", "field"] + } + ] + } + }, + "required": ["vault"] } }, "before_script": { diff --git a/app/assets/javascripts/runner/components/runner_pause_button.vue b/app/assets/javascripts/runner/components/runner_pause_button.vue index a1901c55e61..c88634bfbd9 100644 --- a/app/assets/javascripts/runner/components/runner_pause_button.vue +++ b/app/assets/javascripts/runner/components/runner_pause_button.vue @@ -3,7 +3,7 @@ import { GlButton, GlTooltipDirective } from '@gitlab/ui'; import runnerToggleActiveMutation from '~/runner/graphql/shared/runner_toggle_active.mutation.graphql'; import { createAlert } from '~/flash'; import { captureException } from '~/runner/sentry_utils'; -import { I18N_PAUSE, I18N_RESUME } from '../constants'; +import { I18N_PAUSE, I18N_PAUSE_TOOLTIP, I18N_RESUME, I18N_RESUME_TOOLTIP } from '../constants'; export default { name: 'RunnerPauseButton', @@ -52,11 +52,10 @@ export default { return null; }, tooltip() { - // Only show tooltip when compact. - // Also prevent a "sticky" tooltip: If this button is - // disabled, mouseout listeners don't run leaving the tooltip stuck - if (this.compact && !this.updating) { - return this.label; + // Prevent a "sticky" tooltip: If this button is disabled, + // mouseout listeners don't run leaving the tooltip stuck + if (!this.updating) { + return this.isActive ? I18N_PAUSE_TOOLTIP : I18N_RESUME_TOOLTIP; } return ''; }, @@ -102,7 +101,7 @@ export default {