Repository navigation
feat(event-drain): C2-S3 drain actions for the other queued kinds (#17078) - #17113
Merged
Merged
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
C2-S3 (#17078): drain actions for the other queued kinds
Slice C2-S3 of #9570, extending the C2-S2 drain runner (PR #17103, merged 2026-11-30T06:30:49Z) beyond
issue_new. The S2 runner already ensured generic shepherd/CI/mention packets for the other kinds; this slice makes those drain actions kind-faithful to the Worker's derived rows (pkgs/github-ci/worker/src/derive.ts) and proves the S3 acceptance at drain level.What changes (
scripts/fleet/event-drain/)pr_open: the packet now carries the actual triggering action from the derived row (opened/reopened/ready_for_review) in its title, problem and evidence instead of always saying "opened", and links the PR with its/pull/<n>URL.pr_review: a distinct packet — same dedupe key aspr_open(exactly one task minds a PR, per D5), but the problem/evidence name the changes-requested review (review_id, statechanges_requested) so the PR's task sees the review, with acceptance on addressing/dispositioning the requested changes.ci_failure: the failing run's branch (present in the derived row) is carried into the packet body and evidence.test_drain_events.py, each naming its oracle — a drain over each ofpr_open/ci_failure/mention/pr_reviewagainst a fake log ensures exactly one task per item (duplicate events and a full replay create no second task);pr_open+pr_reviewfor one PR share its one task and the review packet names its review; a multi-kind drain report carries the quota current + projected lines, with the no-prediction case stated plainly.Verification
python3 test_drain_events.pyin repo layout: 13/13 pass (10 pre-existing S2 oracles + 3 new S3 groups), including the thresholds drift guard againstpkgs/github-ci/worker/src/thresholds.ts. CI is not used as a gate (standing rule); verification is this test run plus the full-diff read recorded by the landing lane.Closes #17078
Lane 0022-H (delta PRESS author lane). Queue broker down (#16762) — authored via the Git-API contents route, claim by agent-note on the issue.
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-30T06:39:11Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": null, "model": null, "lane_start_issues": [], "workspace_ref": null, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.