From 6a380347147d1a55afbc6a1c16e04b567ab90d86 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 8 Nov 2021 12:12:07 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .gitlab/ci/qa.gitlab-ci.yml | 9 +- CHANGELOG.md | 16 + .../components/cells/runner_actions_cell.vue | 4 +- .../components/cells/runner_status_cell.vue | 40 ++ .../components/cells/runner_summary_cell.vue | 27 + .../components/cells/runner_type_cell.vue | 47 -- .../runner_contacted_state_badge.vue | 69 +++ .../runner/components/runner_list.vue | 12 +- ...used_badge.vue => runner_paused_badge.vue} | 0 .../components/runner_state_locked_badge.vue | 25 - .../runner/components/runner_type_alert.vue | 5 +- .../runner/components/runner_type_badge.vue | 5 +- app/assets/javascripts/runner/constants.js | 13 + .../runner_actions_update.mutation.graphql | 14 + .../graphql/runner_node.fragment.graphql | 1 + .../graphql/runner_update.mutation.graphql | 3 + .../mutations/issues/set_crm_contacts.rb | 48 ++ app/graphql/types/mutation_type.rb | 1 + .../customer_relations/issue_contact.rb | 2 +- app/models/group.rb | 9 +- app/policies/issue_policy.rb | 7 + .../issues/set_crm_contacts_service.rb | 90 +++ .../cleanup_tags_service.rb | 3 +- .../product_analytics/_links.html.haml | 15 +- ...yml => api_v3_commits_skip_diff_files.yml} | 10 +- .../ci_new_artifact_file_reader.yml | 8 - ...r_registry_expiration_policies_caching.yml | 8 - ...s_as_taggable.rb => 1_acts_as_taggable.rb} | 6 + .../initializers/database_query_analyzers.rb | 4 + doc/api/graphql/reference/index.md | 22 + doc/ci/yaml/index.md | 12 +- lib/api/github/entities.rb | 4 +- lib/api/v3/github.rb | 32 +- lib/gitlab/ci/artifact_file_reader.rb | 27 - lib/gitlab/database/gitlab_schema.rb | 69 ++- .../database/load_balancing/configuration.rb | 4 + lib/gitlab/database/query_analyzer.rb | 60 ++ lib/gitlab/database/query_analyzers/base.rb | 17 + locale/gitlab.pot | 29 +- .../page/group/settings/package_registries.rb | 22 +- .../cells/runner_actions_cell_spec.js | 27 +- .../cells/runner_status_cell_spec.js | 69 +++ .../cells/runner_summary_cell_spec.js | 39 +- .../components/cells/runner_type_cell_spec.js | 48 -- .../runner_contacted_state_badge_spec.js | 86 +++ .../runner/components/runner_list_spec.js | 6 +- ...ge_spec.js => runner_paused_badge_spec.js} | 2 +- .../runner_state_locked_badge_spec.js | 45 -- .../components/runner_type_alert_spec.js | 14 +- .../components/runner_type_badge_spec.js | 14 +- .../gitlab/ci/artifact_file_reader_spec.rb | 11 - .../lib/gitlab/database/gitlab_schema_spec.rb | 20 + .../gitlab/database/query_analyzer_spec.rb | 72 +++ spec/models/acts_as_taggable_on/tag_spec.rb | 16 + .../acts_as_taggable_on/tagging_spec.rb | 16 + spec/models/group_spec.rb | 8 - spec/models/namespace_spec.rb | 4 +- .../mutations/issues/set_crm_contacts_spec.rb | 161 +++++ spec/requests/api/v3/github_spec.rb | 133 ++++- .../issues/set_crm_contacts_service_spec.rb | 162 +++++ .../cleanup_tags_service_spec.rb | 563 +++++++++--------- tooling/bin/find_change_diffs | 15 +- .../bin/qa/check_if_only_quarantined_specs | 18 - tooling/bin/qa/package_and_qa_check | 45 ++ 64 files changed, 1729 insertions(+), 664 deletions(-) create mode 100644 app/assets/javascripts/runner/components/cells/runner_status_cell.vue delete mode 100644 app/assets/javascripts/runner/components/cells/runner_type_cell.vue create mode 100644 app/assets/javascripts/runner/components/runner_contacted_state_badge.vue rename app/assets/javascripts/runner/components/{runner_state_paused_badge.vue => runner_paused_badge.vue} (100%) delete mode 100644 app/assets/javascripts/runner/components/runner_state_locked_badge.vue create mode 100644 app/assets/javascripts/runner/graphql/runner_actions_update.mutation.graphql create mode 100644 app/graphql/mutations/issues/set_crm_contacts.rb create mode 100644 app/services/issues/set_crm_contacts_service.rb rename config/feature_flags/development/{linear_group_ancestor_scopes.yml => api_v3_commits_skip_diff_files.yml} (62%) delete mode 100644 config/feature_flags/development/ci_new_artifact_file_reader.yml delete mode 100644 config/feature_flags/development/container_registry_expiration_policies_caching.yml rename config/initializers/{0_acts_as_taggable.rb => 1_acts_as_taggable.rb} (58%) create mode 100644 config/initializers/database_query_analyzers.rb create mode 100644 lib/gitlab/database/query_analyzer.rb create mode 100644 lib/gitlab/database/query_analyzers/base.rb create mode 100644 spec/frontend/runner/components/cells/runner_status_cell_spec.js delete mode 100644 spec/frontend/runner/components/cells/runner_type_cell_spec.js create mode 100644 spec/frontend/runner/components/runner_contacted_state_badge_spec.js rename spec/frontend/runner/components/{runner_state_paused_badge_spec.js => runner_paused_badge_spec.js} (92%) delete mode 100644 spec/frontend/runner/components/runner_state_locked_badge_spec.js create mode 100644 spec/lib/gitlab/database/query_analyzer_spec.rb create mode 100644 spec/models/acts_as_taggable_on/tag_spec.rb create mode 100644 spec/models/acts_as_taggable_on/tagging_spec.rb create mode 100644 spec/requests/api/graphql/mutations/issues/set_crm_contacts_spec.rb create mode 100644 spec/services/issues/set_crm_contacts_service_spec.rb delete mode 100755 tooling/bin/qa/check_if_only_quarantined_specs create mode 100755 tooling/bin/qa/package_and_qa_check diff --git a/.gitlab/ci/qa.gitlab-ci.yml b/.gitlab/ci/qa.gitlab-ci.yml index d19300f8e8d..74fc5f2cdc0 100644 --- a/.gitlab/ci/qa.gitlab-ci.yml +++ b/.gitlab/ci/qa.gitlab-ci.yml @@ -58,10 +58,13 @@ update-qa-cache: - tooling/bin/find_change_diffs ${CHANGES_DIFFS_DIR} script: - | - if tooling/bin/qa/check_if_only_quarantined_specs ${CHANGES_DIFFS_DIR}; then - exit 0 - else + tooling/bin/qa/package_and_qa_check ${CHANGES_DIFFS_DIR} && exit_code=$? + if [ $exit_code -eq 0 ]; then ./scripts/trigger-build omnibus + elif [ $exit_code -eq 1 ]; then + exit 1 + else + echo "Downstream jobs will not be triggered because package_and_qa_check exited with code: $exit_code" fi # These jobs often time out, so temporarily use private runners and a long timeout: https://gitlab.com/gitlab-org/gitlab/-/issues/238563 tags: diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b8363ed543..8098e98d4aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,22 @@ documentation](doc/development/changelog.md) for instructions on adding your own entry. +## 14.4.2 (2021-11-08) + +### Fixed (3 changes) + +- [Skip retrying for reads on connection errors if primary only](gitlab-org/gitlab@8e1976ed75bd6c606d49c83863cf46bf3c4d5070) ([merge request](gitlab-org/gitlab!73919)) +- [Fix error 500 loading branch with UTF-8 characters with performance bar](gitlab-org/gitlab@67ddc428472d57bb3d8a4a84eb0750487a175f75) ([merge request](gitlab-org/gitlab!73919)) +- [Skip st_diff callback setting on LegacyDiffNote when importing](gitlab-org/gitlab@84f5c66321473cd702b3b671584054fcf3d141ae) ([merge request](gitlab-org/gitlab!73919)) + +### Changed (1 change) + +- [Remove skip_legacy_diff_note_callback_on_import from legacy diff note](gitlab-org/gitlab@547a2ec29ea9e9299eab727899c3d90886ffc21c) ([merge request](gitlab-org/gitlab!73919)) + +### Performance (1 change) + +- [Prevent Sidekiq size limiter middleware from running multiple times on the same job](gitlab-org/gitlab@294c01be38d400607536fb20a2038e098c0f0e28) ([merge request](gitlab-org/gitlab!73919)) + ## 14.4.1 (2021-10-28) ### Security (13 changes) diff --git a/app/assets/javascripts/runner/components/cells/runner_actions_cell.vue b/app/assets/javascripts/runner/components/cells/runner_actions_cell.vue index e26bdbf1aea..c4bddb7b398 100644 --- a/app/assets/javascripts/runner/components/cells/runner_actions_cell.vue +++ b/app/assets/javascripts/runner/components/cells/runner_actions_cell.vue @@ -3,7 +3,7 @@ import { GlButton, GlButtonGroup, GlTooltipDirective } from '@gitlab/ui'; import createFlash from '~/flash'; import { __, s__ } from '~/locale'; import runnerDeleteMutation from '~/runner/graphql/runner_delete.mutation.graphql'; -import runnerUpdateMutation from '~/runner/graphql/runner_update.mutation.graphql'; +import runnerActionsUpdateMutation from '~/runner/graphql/runner_actions_update.mutation.graphql'; import { captureException } from '~/runner/sentry_utils'; const i18n = { @@ -71,7 +71,7 @@ export default { runnerUpdate: { errors }, }, } = await this.$apollo.mutate({ - mutation: runnerUpdateMutation, + mutation: runnerActionsUpdateMutation, variables: { input: { id: this.runner.id, diff --git a/app/assets/javascripts/runner/components/cells/runner_status_cell.vue b/app/assets/javascripts/runner/components/cells/runner_status_cell.vue new file mode 100644 index 00000000000..9ba1192bc8c --- /dev/null +++ b/app/assets/javascripts/runner/components/cells/runner_status_cell.vue @@ -0,0 +1,40 @@ + + + diff --git a/app/assets/javascripts/runner/components/cells/runner_summary_cell.vue b/app/assets/javascripts/runner/components/cells/runner_summary_cell.vue index 886b5cb29fc..3b476997915 100644 --- a/app/assets/javascripts/runner/components/cells/runner_summary_cell.vue +++ b/app/assets/javascripts/runner/components/cells/runner_summary_cell.vue @@ -1,11 +1,21 @@ @@ -26,6 +45,14 @@ export default { + + +
{{ description }} diff --git a/app/assets/javascripts/runner/components/cells/runner_type_cell.vue b/app/assets/javascripts/runner/components/cells/runner_type_cell.vue deleted file mode 100644 index c8cb0bf6088..00000000000 --- a/app/assets/javascripts/runner/components/cells/runner_type_cell.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - diff --git a/app/assets/javascripts/runner/components/runner_contacted_state_badge.vue b/app/assets/javascripts/runner/components/runner_contacted_state_badge.vue new file mode 100644 index 00000000000..b4727f832f8 --- /dev/null +++ b/app/assets/javascripts/runner/components/runner_contacted_state_badge.vue @@ -0,0 +1,69 @@ + + diff --git a/app/assets/javascripts/runner/components/runner_list.vue b/app/assets/javascripts/runner/components/runner_list.vue index a8796ae6a65..f8dbc469c22 100644 --- a/app/assets/javascripts/runner/components/runner_list.vue +++ b/app/assets/javascripts/runner/components/runner_list.vue @@ -5,7 +5,7 @@ import { __, s__ } from '~/locale'; import TimeAgo from '~/vue_shared/components/time_ago_tooltip.vue'; import RunnerActionsCell from './cells/runner_actions_cell.vue'; import RunnerSummaryCell from './cells/runner_summary_cell.vue'; -import RunnerTypeCell from './cells/runner_type_cell.vue'; +import RunnerStatusCell from './cells/runner_status_cell.vue'; import RunnerTags from './runner_tags.vue'; const tableField = ({ key, label = '', width = 10 }) => { @@ -36,7 +36,7 @@ export default { RunnerActionsCell, RunnerSummaryCell, RunnerTags, - RunnerTypeCell, + RunnerStatusCell, }, directives: { GlTooltip: GlTooltipDirective, @@ -63,8 +63,8 @@ export default { }, }, fields: [ - tableField({ key: 'type', label: __('Type/State') }), - tableField({ key: 'summary', label: s__('Runners|Runner'), width: 30 }), + tableField({ key: 'status', label: s__('Runners|Status') }), + tableField({ key: 'summary', label: s__('Runners|Runner ID'), width: 30 }), tableField({ key: 'version', label: __('Version') }), tableField({ key: 'ipAddress', label: __('IP Address') }), tableField({ key: 'tagList', label: __('Tags'), width: 20 }), @@ -88,8 +88,8 @@ export default { -