Failure-summary PR comments with log tails; /ui/merge-queue page #27
Loading…
Reference in a new issue
No description provided.
Delete branch "failure-comments"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Makes CI failures legible from where users actually are (the forge), for clients that can't reach the web UI.
failed: exit 1 on ares/infra: spawn-error on ares), a link to its instance page, and the last 30 log lines (≤4 KiB; ANSI and control chars stripped, fence longer than any backtick run in the log). Later failures edit the same comment; a later green graph edits it to "Resolved". Merge-queue candidates, push-only graphs andfailure_comments = falsepipelines post nothing. Delivery is durable: what's owed is written with the graph's completion and a worker posts/edits it, so restarts and forge outages only delay it. New additive tablepr_summaries./ui/merge-queue: per (repo, base) queue in run order with state, priority, approver, PR/head links, candidate graph and failure reason; testing entry highlighted, recent merges folded.GET /api/merge-queuegainspr_url/head_url.Note: #14 (durable forge outbox) is not on main yet, so this keeps its own delivery state (an edit needs the created comment's id, which fire-and-forget outbox rows can't carry). Expect a merge in
forgejo/api.rs,state.rs,scheduler/status.rs,lib.rsand the fake forge when #14 lands — whichever is second takes it.🤖 Generated with Claude Code
@krisbuild r+
Removed from the merge queue: the merge conflicts in SPEC.md, crates/kb-control-plane/src/db.rs, crates/kb-control-plane/src/forge/forgejo/api.rs, crates/kb-control-plane/src/forge/forgejo/mod.rs, crates/kb-control-plane/src/forge/mod.rs, crates/kb-control-plane/src/http.rs, crates/kb-control-plane/src/lib.rs, crates/kb-control-plane/src/scheduler/status.rs, crates/kb-control-plane/src/state.rs, crates/kb-control-plane/tests/it/common/mod.rs, docs/TODO.md.
Merged main (#14 outbox, #15, #24, #26). The failure summary now rides the durable outbox (new
summarykind; the writer returns created comment ids and reports edits of deleted comments as gone) instead of its own worker, and PR heads come from #14'sforge_refs. Reviewed.@krisbuild r+
Merged as
8a5757d01d.