Add workflow run log Loki fallback #203

Merged
stephen merged 1 commit from feat/run-log-loki into main 2026-07-03 15:20:28 +00:00
Owner

Adds fj run log <run> and routes fj run view --log through a workflow log source abstraction.

  • Tries the Forgejo API log endpoint first, treating 404 as unavailable.
  • Falls back to Loki using task ids from /actions/tasks?run=<run> and the configured/default Loki URL.
  • Adds wiremock coverage for task-id resolution and Loki query construction.

Checks:

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all --locked
Adds `fj run log <run>` and routes `fj run view --log` through a workflow log source abstraction. - Tries the Forgejo API log endpoint first, treating 404 as unavailable. - Falls back to Loki using task ids from `/actions/tasks?run=<run>` and the configured/default Loki URL. - Adds wiremock coverage for task-id resolution and Loki query construction. Checks: - `cargo fmt --all -- --check` - `cargo clippy --all-targets --all-features -- -D warnings` - `cargo test --all --locked`
Add workflow run log Loki fallback
All checks were successful
ci / check (pull_request) Successful in 10m44s
ci / live-e2e (pull_request) Successful in 1m57s
ci / coverage (pull_request) Successful in 2m19s
90f201a9bb
stephen deleted branch feat/run-log-loki 2026-07-03 15:20:28 +00:00
stephen referenced this pull request from a commit 2026-07-22 15:18:04 +00:00
stephen referenced this pull request from a commit 2026-07-22 15:40:40 +00:00
Sign in to join this conversation.
No description provided.