ci: shorter artifact expire_in — storage relief

This commit is contained in:
Александр Зимин
2026-05-11 23:21:22 +00:00
parent 91c48775bf
commit 1f71808acf
+12 -3
View File
@@ -71,7 +71,9 @@ maven-test:
when: always when: always
reports: reports:
junit: '**/target/surefire-reports/TEST-*.xml' junit: '**/target/surefire-reports/TEST-*.xml'
expire_in: 1 week # 3 days — junit reports нужны для debugging recent failures; longer keep
# съедает storage (см. pipeline 6502 500 на artifact upload — storage was full).
expire_in: 3 days
rules: rules:
- changes: *backend-changes - changes: *backend-changes
@@ -98,7 +100,7 @@ maven-e2e:
when: always when: always
reports: reports:
junit: '**/target/surefire-reports/TEST-*.xml' junit: '**/target/surefire-reports/TEST-*.xml'
expire_in: 1 week expire_in: 3 days
rules: rules:
- changes: *backend-changes - changes: *backend-changes
# Можно сделать allow_failure: true если e2e будут флакать — пока нет. # Можно сделать allow_failure: true если e2e будут флакать — пока нет.
@@ -164,7 +166,9 @@ build-docs:
name: "ordinis-docs-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA" name: "ordinis-docs-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA"
paths: paths:
- docs/_dist - docs/_dist
expire_in: 1 week # 2 days — docs/_dist используется только для PR sanity check, deployed
# docs идут через docker-docs image (Nexus registry, not artifact).
expire_in: 2 days
rules: rules:
- if: '$CI_COMMIT_BRANCH != "main"' - if: '$CI_COMMIT_BRANCH != "main"'
changes: *docs-changes changes: *docs-changes
@@ -332,6 +336,11 @@ resolve-tag:
artifacts: artifacts:
reports: reports:
dotenv: resolved.env dotenv: resolved.env
# 6 hours — dotenv нужен только для trigger-deploy-* в этом же pipeline;
# дольше держать смысла нет, downstream consumers свой artifact не качают.
# Без явного expire_in defaults to GitLab project policy (30 дней) →
# каждый main commit накапливает stale artifact.
expire_in: 6 hours
rules: rules:
- if: '$CI_COMMIT_BRANCH == "main"' - if: '$CI_COMMIT_BRANCH == "main"'
# На tag-пайплайне $CI_COMMIT_BRANCH пустой — но trigger-deploy-prod # На tag-пайплайне $CI_COMMIT_BRANCH пустой — но trigger-deploy-prod