Skip to content

feat(event-drain): C2-S3 drain actions for the other queued kinds (#17078) - #17113

Merged
developing-today-fleet[bot] merged 3 commits into
mainfrom
archer/0022h-c2s3-drain-kinds
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 3 commits into
mainfrom
archer/0022h-c2s3-drain-kinds

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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 as pr_open (exactly one task minds a PR, per D5), but the problem/evidence name the changes-requested review (review_id, state changes_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.
  • Tests: three C2-S3 oracle groups in test_drain_events.py, each naming its oracle — a drain over each of pr_open/ci_failure/mention/pr_review against a fake log ensures exactly one task per item (duplicate events and a full replay create no second task); pr_open + pr_review for 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.
  • README + module docstring updated to name the slice.

Verification

python3 test_drain_events.py in repo layout: 13/13 pass (10 pre-existing S2 oracles + 3 new S3 groups), including the thresholds drift guard against pkgs/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-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 16ef4985-5dcb-4739-812d-add16fe784e3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C2-S3 (#9570): drain actions for the other queued kinds (pr_open, ci_failure, mention, pr_review); the report's quota lines

0 participants