ci: coverage-gate [ERROR] diagnostics + security-ci tools from self-hosted mirror (#118) #130

Merged
amiryahaya merged 2 commits from chore/coverage-gate-error-diag into main 2026-11-09 08:38:47 +01:00
Owner

Follow-up to post-merge api-ci 12162 (main @ 0caa3c6): the coverage leg ended 'Errors: 1, Failed: 0' but the printed diagnostics were empty — the script grepped only [FAIL] blocks, and crash-class failures (fixture/cancellation/runtime errors) print as [ERROR] under MTP. This PR widens the failure diagnostics to surface [FAIL], [ERROR], and 'An unexpected error occurred' blocks.

Local verification on the same commit: the full suite + coverage gate passes clean (958/0, 87.84% line coverage) — 12162 was an environment-class failure on the shared runner, not a code defect. Merging this re-runs the same content under the improved diagnostics; if the error recurs, the job log will now name it.

Also closes out the ADR-012 post-merge verification: this PR's api-ci run revalidates main's content end-to-end.

Follow-up to post-merge api-ci 12162 (main @ 0caa3c6): the coverage leg ended 'Errors: 1, Failed: 0' but the printed diagnostics were empty — the script grepped only [FAIL] blocks, and crash-class failures (fixture/cancellation/runtime errors) print as [ERROR] under MTP. This PR widens the failure diagnostics to surface [FAIL], [ERROR], and 'An unexpected error occurred' blocks. Local verification on the same commit: the full suite + coverage gate passes clean (958/0, 87.84% line coverage) — 12162 was an environment-class failure on the shared runner, not a code defect. Merging this re-runs the same content under the improved diagnostics; if the error recurs, the job log will now name it. Also closes out the ADR-012 post-merge verification: this PR's api-ci run revalidates main's content end-to-end.
ci: coverage-gate surfaces [ERROR] blocks too (crash-class failures print as ERROR, not FAIL)
Some checks failed
Security CI / security-scan (pull_request) Failing after 18s
API CI / build-and-test (pull_request) Successful in 3m56s
fe04ea3450
Seen on post-merge api-ci 12162: the coverage leg ended 'Errors: 1,
Failed: 0' but the printed diagnostics were empty — the script grepped
only [FAIL]. Errors:1 (fixture/crash-class) prints as [ERROR] under MTP.
Also verified locally: the same suite + coverage gate passes clean on
0caa3c6 (958/0, 87.84%), so 12162 was an environment-class failure.
ci: gitleaks + trivy from self-hosted sec-tools-mirror first, GitHub fallback (#118)
All checks were successful
Security CI / security-scan (pull_request) Successful in 3m5s
API CI / build-and-test (pull_request) Successful in 4m33s
bd68e1a212
GitHub's release CDN 504'd again on 2026-11-09 — this time the gitleaks
download died in PR #130's security-scan (run 12168). The sec-tools-mirror
Forgejo release carries the genuine gitleaks 8.24.3 + trivy 0.76.2 assets
(fetched via api.github.com, round-trip sha256-verified) under their
exact upstream filenames. Mirror-first with GitHub fallback; version
bumps must upload the new asset before bumping the env.
amiryahaya changed title from ci: coverage-gate surfaces [ERROR] blocks too (crash-class failures print as ERROR, not FAIL) to ci: coverage-gate [ERROR] diagnostics + security-ci tools from self-hosted mirror (#118) 2026-11-09 08:32:58 +01:00
Author
Owner

Second commit: security-ci's gitleaks download ALSO died on the GitHub CDN 504 (run 12168, same incident class as yesterday's pqc-kaz). The sec-tools-mirror Forgejo release now carries genuine gitleaks 8.24.3 + trivy 0.76.2 (fetched via api.github.com, round-trip sha256-verified) and security-ci downloads mirror-first with GitHub fallback — closing the #118 mirror pass for both CI tools. Note for version bumps: upload the new asset to sec-tools-mirror BEFORE bumping the version env.

Second commit: security-ci's gitleaks download ALSO died on the GitHub CDN 504 (run 12168, same incident class as yesterday's pqc-kaz). The sec-tools-mirror Forgejo release now carries genuine gitleaks 8.24.3 + trivy 0.76.2 (fetched via api.github.com, round-trip sha256-verified) and security-ci downloads mirror-first with GitHub fallback — closing the #118 mirror pass for both CI tools. Note for version bumps: upload the new asset to sec-tools-mirror BEFORE bumping the version env.
Sign in to join this conversation.
No description provided.