ci: Release-Workflow absichern (#1181)
All checks were successful
ci / pruefen (push) Successful in 1m47s

- release.yml: eigener Job pruefen (dieselben Prüfungen wie ci.yml); binary läuft erst danach (needs). Der Release wartet
  bewusst nicht auf den CI-Status des Commits: ein späterer Push bricht laufende CI-Läufe ab (v0.1.22 am 23.11.2026).
- Zeitlimits: Job (30 und 20 Minuten), Werkzeugschritte (12 Minuten), apt-get update 180 s, apt-get install 300 s,
  rustup-Abruf 300 s mit Wiederholungen, curl zur Gitea-API mit Zeitlimit. Ein hängender Spiegel bricht ab statt 20 Minuten zu blockieren.
- apt nur, wenn musl-tools, nodejs oder python3-venv fehlen.
- Feste Rust-Toolchain 1.99.1 statt stable (RUST_VERSION in beiden Workflows).
- ci.yml: dieselben Zeitlimits und Toolchain, pip mit Wiederholungen und Zeitlimit.

Lokal geprüft: YAML, bash -n, shellcheck, Installationsschritt mit Attrappen (nichts fehlt, apt hängt, apt klappt, nur python3-venv fehlt,
rustup-Abruf scheitert). Nicht geprüft: ein echter Lauf auf dem Gitea-Runner.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 14:29:41 +01:00
parent e3ebe5aff1
commit 6d0311f0b1
2 changed files with 98 additions and 14 deletions

View File

@ -9,18 +9,33 @@ on:
branches:
- '**'
env:
# Feste Toolchain statt „stable von heute“: die Version, mit der lokal geprüft wurde. Anheben von Hand und mit Test.
RUST_VERSION: '1.99.1'
jobs:
pruefen:
runs-on: nexus
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
# Zeitlimits (→ #1181): ein nicht erreichbarer Spiegel hielt am 23.11.2026 den Runner gut 20 Minuten fest.
- name: Werkzeuge installieren
timeout-minutes: 12
run: |
set -eu
SUDO=""; [ "$(id -u)" -ne 0 ] && SUDO="sudo"
$SUDO apt-get update -qq
$SUDO apt-get install -y -qq musl-tools python3-venv nodejs
curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal -c clippy,rustfmt -t x86_64-unknown-linux-musl
fehlt=""
command -v musl-gcc >/dev/null 2>&1 || fehlt="$fehlt musl-tools"
command -v node >/dev/null 2>&1 || fehlt="$fehlt nodejs"
python3 -c 'import ensurepip, venv' >/dev/null 2>&1 || fehlt="$fehlt python3-venv"
if [ -n "$fehlt" ]; then
timeout 180 $SUDO apt-get -o Acquire::Retries=2 -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20 update -qq
# shellcheck disable=SC2086
timeout 300 $SUDO apt-get install -y -qq $fehlt
fi
timeout 300 bash -c 'set -o pipefail; curl -sSf --retry 3 --connect-timeout 20 --max-time 120 https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain "$RUST_VERSION" -c clippy,rustfmt -t x86_64-unknown-linux-musl'
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Format
@ -30,6 +45,7 @@ jobs:
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Rust-Tests
timeout-minutes: 20
run: cargo test --workspace
# Reine Funktionen der Oberfläche (Ortszeit und Tabellen, Markdown der Chat-Antworten), ohne Browser (#1195, A8).
@ -43,7 +59,8 @@ jobs:
for zone in Europe/Berlin America/New_York Australia/Lord_Howe Asia/Kolkata; do TZ=$zone node tests/js/diagramm-zeit.test.mjs; done
- name: SDK-Tests
timeout-minutes: 5
run: |
python3 -m venv .venv
.venv/bin/pip install -q openai
.venv/bin/pip install -q --retries 3 --timeout 30 openai
.venv/bin/python -m unittest discover -s tests/sdk