Maintenance: Do not fetch artifacts in CI jobs that do not use them.
Approved-by: Martin Gruner <mg@zammad.com>
This commit is contained in:
5
.gitlab/ci/__includes__/artifact_dependencies.yml
Normal file
5
.gitlab/ci/__includes__/artifact_dependencies.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
# Certain jobs use no artifacts of the earlier stages. Without this, GitLab downloads all of
|
||||
# them, and retrying such a job after the database dumps expired fails it with
|
||||
# `missing_dependency_failure`.
|
||||
.no_artifact_dependencies:
|
||||
dependencies: []
|
||||
@@ -3,6 +3,8 @@ assets:build:
|
||||
# No `rules:` on purpose: the browser jobs of a filtered pipeline ($JOB_FILTER,
|
||||
# $BROWSER_TEST_FILTER) still need the assets built here, as the specs
|
||||
# themselves skip the compilation ($CI_SKIP_ASSETS_PRECOMPILE).
|
||||
extends:
|
||||
- .no_artifact_dependencies
|
||||
services:
|
||||
- !reference [.services, postgresql]
|
||||
artifacts:
|
||||
@@ -32,6 +34,7 @@ assets:build:pwa:
|
||||
stage: test
|
||||
extends:
|
||||
- .job_rules_default
|
||||
- .no_artifact_dependencies
|
||||
services:
|
||||
- !reference [.services, postgresql]
|
||||
cache: !reference [.cache, read_only_full]
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
.template_docker:
|
||||
image: docker
|
||||
stage: test
|
||||
extends:
|
||||
- .no_artifact_dependencies
|
||||
interruptible: false
|
||||
rules:
|
||||
- !reference [.rule_fragments, main_repository_only]
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
stage: test
|
||||
extends:
|
||||
- .job_rules_default
|
||||
- .no_artifact_dependencies
|
||||
cache: !reference [.cache, read_only_nodejs]
|
||||
before_script:
|
||||
- !reference [.scripts, pnpm_install]
|
||||
@@ -25,6 +26,7 @@ frontend:cypress:
|
||||
extends:
|
||||
- .job_rules_default
|
||||
- .tags_docker_low_concurrency
|
||||
- .no_artifact_dependencies
|
||||
cache: !reference [.cache, read_only_nodejs]
|
||||
before_script:
|
||||
- !reference [.scripts, pnpm_install_cypress]
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
.packager.io:
|
||||
image: docker
|
||||
stage: test
|
||||
extends:
|
||||
- .no_artifact_dependencies
|
||||
interruptible: false
|
||||
allow_failure: true
|
||||
retry: 2
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
.template_supabase:
|
||||
stage: test
|
||||
extends:
|
||||
- .no_artifact_dependencies
|
||||
tags:
|
||||
- push-to-ftp # use only allow-listed ci runners
|
||||
services:
|
||||
|
||||
Reference in New Issue
Block a user