CI: Pipelines fuer Fork-MRs, Testberichte im MR, Stack-Check der Images, Trivy+SBOM, Release-Preflight
Was die Pipeline neu kann: - release:preflight prueft auf einem v*-Tag, dass frontend/api-package.json und CHANGELOG zum Tag passen und der Commit auf main liegt - bevor 40 Minuten Build anlaufen. - test:* liefern JUnit (Fehler stehen im MR-Widget) und Coverage (Badge + Diff-Annotation); test:frontend misst das Bundle und zeigt im MR die Differenz zu main. - verify:stack startet die gerade gepushten Images ueber die echte docker-compose.yml und fragt sie durch nginx ab; verify:scan (Trivy) scannt beide Images und legt je ein CycloneDX-SBOM ab, das der Release verlinkt. - Der Release nennt Digests, Pull-Befehl und APK-SHA-256. - mr:fork-pipelines startet die Pipelines von Fork-MRs bekannter Contributor hier im Projekt (Fork-Pipelines laufen sonst im Fork ohne Runner); Erstkontakte bekommen das Label ci-approval-needed. Braucht PIPELINE_API_TOKEN und den Zeitplan SCHEDULE_JOB=fork-mrs. Korrekturen: - web/Dockerfile: npm ci --ignore-scripts statt "npm ci || npm install" - der sharp/libvips-Download hatte v1.3.1 rot gemacht, und der Fallback ignorierte das Lockfile. - interruptible + Retry bei Runner-Fehlern fuer alle Jobs, Timeouts pro Job, release-cli gepinnt, Docker-/Rules-Vorlagen statt Copy-Paste. - Zeitplaene unterscheiden sich per SCHEDULE_JOB, damit Renovate und der MR-Starter sich nicht gegenseitig ausloesen.
This commit is contained in:
1 parent
d6f0db9b4b
commit
2899f27fa6
11 files changed
+1259
-340
No files matched your search
@@ -43,6 +43,20 @@ cd frontend && npm test
|
||||
rules are easy to get subtly wrong and nearly impossible to verify by clicking — the
|
||||
progression engine grew two real bugs that only a test pinned down.
|
||||
|
||||
## What CI does with your merge request
|
||||
|
||||
Every MR runs the three test suites (frontend, MCP, api), with the results and the coverage
|
||||
of your diff shown in the MR itself, plus a build of the web image and the api image when you
|
||||
touched their inputs. The frontend job also prints how much your change adds to the gzipped
|
||||
bundle compared with main. The APK and the published images are manual jobs there.
|
||||
|
||||
One gitlab.com quirk: an MR from a fork runs its pipeline in *your* fork, which usually has
|
||||
no runners enabled — so it would show "no pipeline" forever. For that reason the project
|
||||
starts the pipeline on its own runners for you: automatically if you have had an MR merged
|
||||
here before, otherwise a maintainer presses "Run pipeline" after a first look at the diff
|
||||
(the MR gets the `ci-approval-needed` label until then). Changes to `.gitlab-ci.yml` or
|
||||
`scripts/ci/` always go through that manual step.
|
||||
|
||||
## Good first issues
|
||||
|
||||
- Additional starter plans (upper/lower, full-body, 5×5…)
|
||||
|
||||
Reference in new issue
Block a user