pruefe_prosa.py shells out to 'git cat-file' to verify cited commit SHAs, but the python:3.12-alpine image has no git and before_script only installed pyyaml. The job crashed with FileNotFoundError on every push since the migration (pipelines #255, #257). Add 'apk add git' to before_script. Verified green in the same image locally: validate, gen_status --check, upstream_drift and pruefe_prosa all pass.
73 lines
2.6 KiB
YAML
73 lines
2.6 KiB
YAML
# CI des management-Repos. Enthaelt bewusst nur die Stillstandspruefung — hier
|
|
# liegt Dokumentation, es gibt nichts zu bauen.
|
|
#
|
|
# Die Pruefung sucht Dinge, die leise aufgehoert haben zu funktionieren. Anlass ist
|
|
# die Retro vom 2026-08-09: sechs solcher Faelle in neun Tagen, keiner davon durch
|
|
# eine Ueberwachung gefunden.
|
|
|
|
stages:
|
|
- pruefen
|
|
|
|
# Nur geplant und von Hand. Bei jedem Doku-Commit zu laufen brächte nichts —
|
|
# die Pruefung sieht auf den Zustand des Verbunds, nicht auf diesen Commit.
|
|
stillstandspruefung:
|
|
stage: pruefen
|
|
image: python:3.12-alpine
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE == "schedule"
|
|
- if: $CI_PIPELINE_SOURCE == "web"
|
|
variables:
|
|
LAB_CA: "$CI_PROJECT_DIR/ci/lab-ca-chain.crt"
|
|
before_script:
|
|
- apk add --no-cache curl ca-certificates >/dev/null
|
|
script:
|
|
# Ohne Token laeuft nichts — und das soll laut auffallen. Eine Pruefung, die
|
|
# sich still selbst ueberspringt, waere genau der Fehler, den sie sucht.
|
|
- |
|
|
if [ -z "$GITLAB_TOKEN" ]; then
|
|
echo "GITLAB_TOKEN fehlt (Gruppen-Token mit read_api)."
|
|
echo "Ohne Lesezugriff kann nichts geprueft werden - siehe management#31."
|
|
exit 1
|
|
fi
|
|
- python3 scripts/stillstandspruefung.py
|
|
# Befunde sind kein Betriebsausfall, aber sie sollen sichtbar bleiben. Die rote
|
|
# Pipeline ist bei uns die Alarmanlage (gitops/CLAUDE.md, TURN-Rotation).
|
|
allow_failure: false
|
|
|
|
# Offline-Gate bei jedem Push: Artefakte gegen schema.yaml, STATUS.md
|
|
# aktuell, Framework-Dateien unveraendert (Design 2026-08-11, Slice 1).
|
|
# Braucht nur den Baum - bewusst ohne Token und ohne Netz.
|
|
validate:
|
|
stage: pruefen
|
|
image: python:3.12-alpine
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE == "push"
|
|
before_script:
|
|
- apk add --no-cache git >/dev/null # pruefe_prosa.py braucht git cat-file
|
|
- pip install --quiet pyyaml
|
|
script:
|
|
- python3 scripts/validate.py
|
|
- python3 scripts/gen_status.py --check
|
|
- python3 scripts/pruefe_upstream_drift.py
|
|
- python3 scripts/pruefe_prosa.py
|
|
allow_failure: false
|
|
|
|
# Verbund-Prüfung (ADR-0012/0013): Gruppenliste vs. docs/components/,
|
|
# Pointer-Praesenz, Meilenstein-/Prioritaetspflicht, Issue-Drift,
|
|
# Git-Hygiene. Gleiche Regeln wie die Stillstandspruefung: geplant/von
|
|
# Hand, rot = Alarm, Abbruch ohne Token.
|
|
gruppenpruefung:
|
|
stage: pruefen
|
|
image: python:3.12-alpine
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE == "schedule"
|
|
- if: $CI_PIPELINE_SOURCE == "web"
|
|
script:
|
|
- |
|
|
if [ -z "$GITLAB_TOKEN" ]; then
|
|
echo "GITLAB_TOKEN fehlt (Gruppen-Token mit read_api)."
|
|
exit 1
|
|
fi
|
|
- python3 scripts/gruppenpruefung.py
|
|
allow_failure: false
|