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
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-12 15:08:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-12 15:08:27 +0300
commite0d7577e29dcab90623e1f38cf11b351c665ee23 (patch)
tree5a34f26be66301f1af9e36b10a67dfca01fed8ec /.gitlab
parent60e7627c998b74d48df10b9a7759d6038a1f139c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/ci/frontend.gitlab-ci.yml25
-rw-r--r--.gitlab/ci/review-apps/dast.gitlab-ci.yml10
2 files changed, 16 insertions, 19 deletions
diff --git a/.gitlab/ci/frontend.gitlab-ci.yml b/.gitlab/ci/frontend.gitlab-ci.yml
index ad7f4552ae3..97bd121e1aa 100644
--- a/.gitlab/ci/frontend.gitlab-ci.yml
+++ b/.gitlab/ci/frontend.gitlab-ci.yml
@@ -131,17 +131,21 @@ retrieve-frontend-fixtures:
- .rails-cache
- .use-pg13
stage: fixtures
- needs: ["setup-test-env", "retrieve-tests-metadata"]
+ needs: ["setup-test-env", "retrieve-tests-metadata", "retrieve-frontend-fixtures"]
variables:
CRYSTALBALL: "false"
WEBPACK_VENDOR_DLL: "true"
script:
- source scripts/utils.sh
- source scripts/gitlab_component_helpers.sh
- - install_gitlab_gem
- - export_fixtures_sha_for_download
- |
- if check_fixtures_download; then
+ if [[ -d "tmp/tests/frontend" ]]; then
+ # Remove tmp/tests/frontend/ except on the first parallelized job so that depending
+ # jobs don't download the exact same artifact multiple times.
+ if [[ -n "${CI_NODE_INDEX}" ]] && [[ "${CI_NODE_INDEX}" -ne 1 ]]; then
+ echoinfo "INFO: Removing 'tmp/tests/frontend' as we're on node ${CI_NODE_INDEX}.";
+ rm -rf "tmp/tests/frontend";
+ fi
exit 0
else
echo "No frontend fixtures directory, generating frontend fixtures."
@@ -250,7 +254,7 @@ jest:
extends:
- .jest-base
- .frontend:rules:jest
- needs: ["rspec-all frontend_fixture", "retrieve-frontend-fixtures"]
+ needs: ["rspec-all frontend_fixture"]
artifacts:
name: coverage-frontend
expire_in: 31d
@@ -298,10 +302,7 @@ jest-integration:
- .frontend:rules:default-frontend-jobs
script:
- run_timed_command "yarn jest:integration --ci"
- needs:
- - job: "rspec-all frontend_fixture"
- - job: "retrieve-frontend-fixtures"
- - job: "graphql-schema-dump"
+ needs: ["rspec-all frontend_fixture", "graphql-schema-dump"]
coverage-frontend:
extends:
@@ -384,10 +385,7 @@ startup-css-check:
extends:
- .startup-css-check-base
- .frontend:rules:default-frontend-jobs
- needs:
- - job: "compile-test-assets"
- - job: "rspec-all frontend_fixture"
- - job: "retrieve-frontend-fixtures"
+ needs: ["compile-test-assets", "rspec-all frontend_fixture"]
startup-css-check as-if-foss:
extends:
@@ -414,7 +412,6 @@ compile-storybook:
needs:
- !reference [.compile-storybook-base, needs]
- job: "rspec-all frontend_fixture"
- - job: "retrieve-frontend-fixtures"
artifacts:
name: storybook
expire_in: 31d
diff --git a/.gitlab/ci/review-apps/dast.gitlab-ci.yml b/.gitlab/ci/review-apps/dast.gitlab-ci.yml
index 8f0c6b60190..d3019577ab4 100644
--- a/.gitlab/ci/review-apps/dast.gitlab-ci.yml
+++ b/.gitlab/ci/review-apps/dast.gitlab-ci.yml
@@ -5,14 +5,14 @@
extends:
- .reports:rules:schedule-dast
image:
- name: "${REGISTRY_HOST}/security-products/dast:$DAST_VERSION"
+ name: "${CI_TEMPLATE_REGISTRY_HOST}/security-products/dast:$DAST_VERSION"
resource_group: dast_scan
variables:
- DAST_USERNAME_FIELD: "user[login]"
- DAST_PASSWORD_FIELD: "user[password]"
- DAST_SUBMIT_FIELD: "name:button"
+ DAST_USERNAME_FIELD: "name:user[login]"
+ DAST_PASSWORD_FIELD: "name:user[password]"
+ DAST_SUBMIT_FIELD: "css:.js-sign-in-button"
DAST_FULL_SCAN_ENABLED: "true"
- DAST_VERSION: 2
+ DAST_VERSION: 3
GIT_STRATEGY: none
# -Xmx is used to set the JVM memory to 6GB to prevent DAST OutOfMemoryError.
DAST_ZAP_CLI_OPTIONS: "-Xmx6144m"