Repository navigation
Closed
Description
Replaces the CI part of PR #3654 (issue #3622). Start from the epic branch, not from that PR.
Problem
101 "CI failed" comments on 36 PRs; 19 of 65 failing commits got more than one, up to 8 in 66 seconds (PR #3434, commit 91f89c3). The aggregate job "Run Full Test Suite" is reported next to its own failing shard. 29 follow-up runs started by these comments changed nothing.
Approach (decided): read-then-write, best effort
- Each CI-failure comment carries a hidden marker with the head commit SHA.
- Before posting for a failing check, list the PR's comments by the ProPR app and look for a CI-failure comment with the same head SHA. If one exists, edit it to add the new check to its list (no second comment, and no new follow-up run, since one was already requested for that commit). If none exists, post as today.
- Do not list an aggregate job when one of its own shards is listed for the same commit. Decide "aggregate" from the workflow data already available (a job that
needsthe shards, or the existing non-blocking/aggregate knowledge in the code); if that data is not available, use the simplest existing signal and say which in the PR. - If listing or editing fails, post a new comment as today. Never drop a failure report.
Non-goals (explicitly accepted limits; reviewers should not ask for these)
- No atomicity across workers. Two deliveries that arrive within the same second may still produce two comments. That is accepted: the goal is to go from eight comments to usually one, not to guarantee one.
- No locks, no Redis keys, no new tables or columns, no revision tracking, no retry queues, no pending-comment refresh.
- No change to which checks count as failures, to Auto CI follow-up's setting, or to recovery sweeps beyond calling the same read-then-write step.
- ProPR runs on SQLite only: no code or tests for other databases.
Acceptance
- Unit tests with the GitHub client stubbed: second failing check for the same head edits the first comment and starts no second follow-up; a new head gets a new comment; aggregate job omitted when its shard is present; list failure and edit failure each fall back to posting.
- The comment's marker survives the edit and the body stays readable with five checks listed.
- Keep it small: aim for under 200 lines of non-test code. If it needs more, stop and explain in the PR description.
Implementation
The CI-failure comment is built and posted from the check-run handling in packages/core/src/webhook and src/jobs (search CI failed). Add the lookup just before the post; reuse the existing app-authored comment listing helper if there is one.
Activity
propr-dev commentedon Nov 17, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-5-53674/claude-opus-5-5-ci-failure-comments-one-p-20261117-1457-jfz3616-epic-0-9-d8bissue-3674-20261117-1457-claude-opus-5-5-jfz🔍 Track Task Execution
feat(ai): I removed the aggregate-job omission. A failing aggregate j…
[3674 by Claude Opus 5.5] CI-failure comments: one per head commit, b…
I've prepared the 0.9.2 release metadata on top of upstream `main`. I…