feat(logs): read, search and download run logs inside pipedash #179
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.45) × (1 − Review Confidence (0.38)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 441 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 80% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.364
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #179"
general
weight: 0.35
greptile-apps[bot]
Changes
The run dialog only linked out to the provider for logs. It now has a Logs tab where users read, search and download a run's job logs without leaving Pipedash, on desktop, web and the iPhone shell. GitHub Actions is the first provider.
Selecton narrow web, a Jobs list on iPhone). It opens the failed job at its first error. Steps and##[group]blocks are collapsible sections, and ANSI colors map to theme tokens. Search is text or regex, with match-only filtering. You can move between errors (F8), use the overview ruler, copy, download, and turn on wrap or timestamps. A custom virtual scroller keeps logs with millions of lines smooth.LogServiceand a process-wideLogStore. Each job log is downloaded once, split into lines, sections and styles, and cached on disk as lz4 blocks under<data_dir>/cache/run-logs. The disk budget is 2 GiB (512 MiB on iOS), with a 30-day idle expiry. Revisions are immutable and leased while being read. Saving or removing a provider purges its logs, and shutdown cancels in-flight work.##[group]Run …,Post job cleanup.), with step start times as the fallback.capabilities.logsand three methods:fetch_log_nodes,read_log(streams bytes into aLogSink) andlog_dialect. GitHub uses/actions/jobs/{id}/logs. Running jobs show as pending, because GitHub serves no log until a job finishes..gitignorerulelogsis now/logs, because the unanchored rule ignoredsrc/components/logs/. The logs dialog uses a newfullmodal size, 96% of the window.Checklist before merging:
Anything else?
Checks that passed:
cargo test --workspacecargo clippy --workspace --all-targets --all-features -- -D warningscargo +nightly fmt --checkcargo packagecommand withK8S_OPENAPI_ENABLED_VERSION=1.32bun run test: 223 passtsc,knipbun run lint: no new findingsPerf test (
cargo test -p pipedash-core --release run_logs::perf -- --ignored, 3M lines):| Measurement | Result |
|---|---|
| Ingest | 416 MB/s |
| Page read p99 | 0.32 ms |
| Search, literal / regex | 44 ms / 53 ms |
| Disk | 23.6% of raw |
| Memory growth | 43 MiB |
Tested end to end on the web build against real GitHub:
Not tested:
Open item: search once showed no results in the UI even though the backend had returned matches. I couldn't reproduce it after the viewer fixes, so the cause is unknown.