Skip to content

Commit 8937346

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent 4083837 commit 8937346

File tree

92 files changed

+1546
-453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+1546
-453
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,3 @@ include:
336336
rules:
337337
- *if-merge-request-labels-run-with-rails-next
338338
- *if-rails-next-schedule
339-
- local: .gitlab/ci/overrides/assets-tmp-cache.yml
340-
rules:
341-
- if: '$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"'

.gitlab/ci/global.gitlab-ci.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -461,12 +461,17 @@
461461
- ${GLCI_GITLAB_ASSETS_HASH_FILE}
462462
policy: pull-push
463463

464+
# unlike rubocop, webpack cache does not have built in cleanup so it's not safe to use in pull-push configuration
465+
# add periodic cache invalidation based on checksum of config file and dependency lock file until migration to Vite is complete
464466
.assets-tmp-cache: &assets-tmp-cache
465-
key: "partial-assets-cache-${NODE_ENV}-${OS_VERSION}-node-${NODE_VERSION}-vue-${VUE_VERSION}"
467+
key:
468+
files:
469+
- config/webpack.config.js
470+
- yarn.lock
471+
prefix: "partial-assets-cache-${NODE_ENV}-${OS_VERSION}-node-${NODE_VERSION}-vue-${VUE_VERSION}-${CI_COMMIT_REF_SLUG}"
466472
paths:
467473
- tmp/cache
468-
policy: pull
469-
unprotect: true # push this cache from master pipelines to reuse as partial cache in mr pipelines
474+
policy: pull-push
470475

471476
# used in jobs like gdk:compile-test-assets which is just a copy of compile-test-assets
472477
.assets-cache-pull: &assets-cache-pull
@@ -487,17 +492,16 @@
487492
policy: pull-push
488493

489494
.rubocop-cache: &rubocop-cache
490-
key: "rubocop-${BUILD_OS}-${OS_VERSION}-ruby-${RUBY_VERSION}-gemfile-${BUNDLE_GEMFILE}"
495+
key: "rubocop-${BUILD_OS}-${OS_VERSION}-ruby-${RUBY_VERSION}-gemfile-${BUNDLE_GEMFILE}-${CI_COMMIT_REF_SLUG}"
491496
paths:
492497
- tmp/rubocop_cache/
493498
policy: pull
494-
unprotect: true # push this cache from master pipelines to reuse as partial cache in mr pipelines
495499

496500
.rubocop-cache-push: &rubocop-cache-push
497501
<<: *rubocop-cache
498502
# We want to rebuild the cache from scratch to ensure stale dependencies are cleaned up but RuboCop has a mechanism
499503
# for keeping only the N latest cache files, so we take advantage of it with `pull-push`.
500-
policy: push
504+
policy: pull-push
501505

502506
.workhorse-cache: &workhorse-cache
503507
key: "workhorse-${BUILD_OS}-${OS_VERSION}-${GLCI_WORKHORSE_HASH}"
@@ -579,17 +583,18 @@
579583
extends: .cache-analytics
580584
cache:
581585
- !reference [.ruby-gems-cache]
582-
- !reference [.assets-tmp-cache] # use reference to be able to override via overrides/assets-tmp-cache.yml
583586
- *node-modules-cache
584587
- *assets-cache
588+
- *assets-tmp-cache
585589

586590
.assets-compile-cache-pull: # this cache is used only for gdk:compile-test-assets which should only pull, never push
587591
extends: .cache-analytics
588592
cache:
589593
- !reference [.ruby-gems-cache]
590594
- *node-modules-cache
591595
- *assets-cache-pull
592-
- *assets-tmp-cache
596+
- <<: *assets-tmp-cache
597+
policy: pull
593598

594599
.storybook-yarn-cache:
595600
cache:

.gitlab/ci/overrides/assets-tmp-cache.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitlab/ci/rules.gitlab-ci.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,25 +1212,6 @@
12121212
#################
12131213
# Caching rules #
12141214
#################
1215-
# rules for updating unprotected caches via maintenance schedule pipelines
1216-
.caching:rules:update-master-based-caches:
1217-
rules:
1218-
- <<: *if-schedule-maintenance
1219-
- <<: *if-security-schedule
1220-
- <<: *if-foss-schedule
1221-
- <<: *if-merge-request-labels-update-caches
1222-
1223-
.caching:rules:rubocop-cache-update:
1224-
rules:
1225-
- !reference [.caching:rules:update-master-based-caches, rules]
1226-
- *if-rails-next-branch
1227-
- <<: *if-default-branch-push
1228-
changes:
1229-
- '**/*.rb'
1230-
- '**/*.rake'
1231-
- '.rubocop_todo/**/*.yml'
1232-
- '.rubocop.yml'
1233-
12341215
# This rule is used by pull-push cache jobs to ensure pipeline always has cache populated
12351216
# All caches are generally related to app code, so limit cache jobs to code-backstage-patterns
12361217
.caching:rules:update-cache-on-code-changes:

.gitlab/ci/static-analysis.gitlab-ci.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,6 @@
1212
BROWSERSLIST_IGNORE_OLD_DATA: "true"
1313
GRAPHQL_SCHEMA_APOLLO_FILE: "tmp/tests/graphql/gitlab_schema_apollo.graphql"
1414

15-
update-static-analysis-cache:
16-
extends:
17-
- .static-analysis-base
18-
- .rubocop-job-cache-push
19-
- .caching:rules:rubocop-cache-update
20-
stage: prepare
21-
needs:
22-
- job: cache:ruby-gems
23-
optional: true
24-
script:
25-
# Silence cop offenses for rules with "grace period".
26-
# This will notify Slack if offenses were silenced.
27-
# For the moment we only cache `tmp/rubocop_cache` so we don't need to run all the tasks.
28-
- fail_on_warnings bundle exec rake rubocop:check:graceful
29-
3015
static-analysis:
3116
extends:
3217
- .static-analysis-base
@@ -133,7 +118,7 @@ haml-lint:
133118
rubocop:
134119
extends:
135120
- .static-analysis-base
136-
- .rubocop-job-cache
121+
- .rubocop-job-cache-push
137122
- .static-analysis:rules:rubocop
138123
needs:
139124
- job: detect-tests
@@ -144,10 +129,11 @@ rubocop:
144129
- |
145130
# For non-merge request, or when RUN_ALL_RUBOCOP is 'true', run all RuboCop rules
146131
if [ -z "${CI_MERGE_REQUEST_IID:-$FIND_CHANGES_MERGE_REQUEST_IID}" ] || [ "${RUN_ALL_RUBOCOP}" == "true" ]; then
147-
# Silence cop offenses for rules with "grace period".
148-
# We won't notify Slack if offenses were silenced to avoid frequent messages.
149-
# Job `update-static-analysis-cache` takes care of Slack notifications every 2 hours.
150-
unset CI_SLACK_WEBHOOK_URL
132+
if [ "${CI_PIPELINE_SOURCE}" != "schedule" ]; then
133+
# Silence cop offenses for rules with "grace period".
134+
# To avoid frequent notification, unset slack webhook url for everything but scheduled pipelines
135+
unset CI_SLACK_WEBHOOK_URL
136+
fi
151137
fail_on_warnings bundle exec rake rubocop:check:graceful
152138
else
153139
select_existing_files < "${GLCI_PREDICTIVE_CHANGED_FILES_PATH}" > "${RUBOCOP_TARGET_FILES}"

.gitlab/ci/version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ variables:
44
DOCKER_VERSION: "27.4.1"
55
EXIFTOOL_VERSION: "12.60"
66
GCLOUD_VERSION: "413"
7-
GIT_VERSION: "2.49"
7+
GIT_VERSION: "2.51"
88
GO_VERSION: "1.23"
99
GRAPHICSMAGICK_VERSION: "1.3.36"
1010
HELM_VERSION: "3.16"

.gitlab/ci/workhorse.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ workhorse:test go:
4646
extends: .workhorse:test
4747
parallel:
4848
matrix:
49-
- GO_VERSION: ["1.22", "1.23", "1.24"]
49+
- GO_VERSION: ["1.23", "1.24", "1.25"]
5050
REDIS_VERSION: ["7.0", "6.2"]
5151
script:
5252
- make -C workhorse test-coverage
@@ -70,7 +70,7 @@ workhorse:test fips:
7070
- setup-test-env-fips
7171
parallel:
7272
matrix:
73-
- GO_VERSION: ["1.22", "1.23", "1.24"]
73+
- GO_VERSION: ["1.23", "1.24", "1.25"]
7474
REDIS_VERSION: ["7.0", "6.2"]
7575
image: ${REGISTRY_HOST}/${REGISTRY_GROUP}/gitlab-build-images/${BUILD_OS}-${OS_VERSION}-ruby-${RUBY_VERSION}-golang-${GO_VERSION}-rust-${RUST_VERSION}:rubygems-${RUBYGEMS_VERSION}-git-${GIT_VERSION}-exiftool-${EXIFTOOL_VERSION}
7676
variables:

.rubocop_todo/rspec/be_eq.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,6 @@ RSpec/BeEq:
793793
- 'spec/lib/gitlab/git/diff_collection_spec.rb'
794794
- 'spec/lib/gitlab/git/diff_spec.rb'
795795
- 'spec/lib/gitlab/git/hook_env_spec.rb'
796-
- 'spec/lib/gitlab/git/repository_spec.rb'
797796
- 'spec/lib/gitlab/gitaly_client/commit_service_spec.rb'
798797
- 'spec/lib/gitlab/gitaly_client/diff_blobs_stitcher_spec.rb'
799798
- 'spec/lib/gitlab/gitaly_client_spec.rb'

app/assets/javascripts/diffs/components/diff_file.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ export default {
489489
variant="danger"
490490
:dismissible="false"
491491
data-testid="conflictsAlert"
492-
class="gl-rounded-t-base"
492+
class="gl-rounded-b-none gl-rounded-t-base"
493493
>
494494
{{ $options.CONFLICT_TEXT[file.conflict_type] }}
495495
<template v-if="!canMerge">

app/assets/javascripts/homepage/components/homepage_preferences_banner.vue

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
<script>
2-
import { GlBanner } from '@gitlab/ui';
2+
import { GlBanner, GlLink, GlSprintf } from '@gitlab/ui';
33
import UserCalloutDismisser from '~/vue_shared/components/user_callout_dismisser.vue';
44
55
export default {
66
components: {
77
GlBanner,
8+
GlLink,
9+
GlSprintf,
810
UserCalloutDismisser,
911
},
1012
preferencesLink: '/-/profile/preferences#behavior',
13+
buttonAttributes: { hidden: true },
1114
};
1215
</script>
1316

@@ -19,17 +22,23 @@ export default {
1922
v-if="shouldShowCallout"
2023
:title="s__('Homepage|Welcome to the new homepage')"
2124
class="homepage-duo-core-banner gl-mb-5 gl-bg-white"
22-
:button-text="s__('Homepage|Go to preferences')"
23-
:button-link="$options.preferencesLink"
25+
button-text=""
26+
:button-attributes="$options.buttonAttributes"
2427
@close="dismiss"
2528
>
26-
<p>
27-
{{
29+
<gl-sprintf
30+
:message="
2831
s__(
29-
"Homepage|We're introducing a new way for you to get an overview of your work, so you can plan what to work on next. The homepage is now the default for everyone. If you prefer to change your default homepage, you can update your user preferences.",
32+
`Homepage|We're introducing a new way for you to get an overview of your work, so you can plan what to work on next. The homepage is now the default for everyone. If you prefer to change your default homepage, you can %{linkStart}update your user preferences%{linkEnd}.`,
3033
)
31-
}}
32-
</p>
34+
"
35+
>
36+
<template #link="{ content }">
37+
<gl-link :href="$options.preferencesLink" data-testid="go-to-preferences-link">{{
38+
content
39+
}}</gl-link>
40+
</template>
41+
</gl-sprintf>
3342
</gl-banner>
3443
</template>
3544
</user-callout-dismisser>

0 commit comments

Comments
 (0)