CI job-log export to Loki (v16 download-job-log API) #177

Stängd
öppnade 2026-07-20 15:28:47 +00:00 av supernaut · 1 kommentar
Ägare

Split from #78 (the cancel path shipped in PR #176; log-export was plan-only there).

Ship CI job logs to the monitoring VM's Loki (ADR 0020): a timer/exporter walks completed Actions runs, downloads job logs via the v16 download-job-log API (PR 12666 — verify endpoint against /api/swagger), and pushes them to Loki with low-cardinality labels + a last-exported-run state file. Decouples CI-log retention from LOG_RETENTION_DAYS=30 and makes CI failures searchable next to service logs. Design detail in the #78 PR body / plan.

Split from #78 (the cancel path shipped in PR #176; log-export was plan-only there). Ship CI job logs to the monitoring VM's Loki (ADR 0020): a timer/exporter walks completed Actions runs, downloads job logs via the v16 `download-job-log` API (PR 12666 — verify endpoint against /api/swagger), and pushes them to Loki with low-cardinality labels + a last-exported-run state file. Decouples CI-log retention from `LOG_RETENTION_DAYS=30` and makes CI failures searchable next to service logs. Design detail in the #78 PR body / plan.
Upphovsperson
Ägare

Forgejo v17.0.0 (live since 2026-10-17) adds GET /actions/jobs/{id}, logs?step=N (PR12799) and NDJSON output with a substring filter on job logs (PR12820, PR12821). The export can use them.

Forgejo v17.0.0 (live since 2026-10-17) adds `GET /actions/jobs/{id}`, `logs?step=N` (PR12799) and NDJSON output with a substring filter on job logs (PR12820, PR12821). The export can use them.
supernaut 2026-10-19 19:13:38 +00:00
Logga in för att delta i denna konversation.
Ingen milstolpe
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra#177
Ingen beskrivning angiven.