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:
Florian Liebe
2026-09-14 09:45:16 +02:00
parent 646d6bafc1
commit 71678141d5
6 changed files with 16 additions and 0 deletions

View 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: []

View File

@@ -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]

View File

@@ -1,6 +1,8 @@
.template_docker:
image: docker
stage: test
extends:
- .no_artifact_dependencies
interruptible: false
rules:
- !reference [.rule_fragments, main_repository_only]

View File

@@ -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]

View File

@@ -1,6 +1,8 @@
.packager.io:
image: docker
stage: test
extends:
- .no_artifact_dependencies
interruptible: false
allow_failure: true
retry: 2

View File

@@ -1,5 +1,7 @@
.template_supabase:
stage: test
extends:
- .no_artifact_dependencies
tags:
- push-to-ftp # use only allow-listed ci runners
services: