Skip to content

claims: use the org claim bot; claims are assignments, Ready issues only - #2286

Merged
zackees merged 1 commit into
masterfrom
infra/org-claims
Oct 25, 2026
Merged

zackees merged 1 commit into
masterfrom
infra/org-claims

Conversation

@zackees

@zackees zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member

Depends on obs-rust/.github#5, which adds the reusable claim bot this calls. Merge that first.

The claim bot moves to obs-rust/.github as a reusable workflow, so every org repo shares one set of claim rules and one simulation-tested implementation. This repo keeps a thin caller with the same triggers, permissions, fork guard (#1258) and per-issue concurrency.

What changes for contributors (coordination.md §2–3, WORKFLOW.md):

  • A claim is now the issue's assignee. It lapses after 24 h without progress, down from 48; P0 and critical claims after 8 h.
  • Only issues labeled ready can be claimed for implementation (P0 never waits). An underdefined issue gets Claiming: investigation, then /ready once it meets the definition of Ready. Maintainers triage with /ready and /investigate.
  • Claims are refused while an issue has an open "blocked by" dependency or an open decision. The refusal says why.
  • The first sweep migrates existing claimed labels to assignments, and marks those issues ready.
  • Workers hand a PR to the coordinator once it is in the merge queue (now the default). The coordinator starts every tick from uv run -m workflow.coordinator and leases each task, so parallel coordinators never collide.

The removed tools/claim-bot/claim_bot.py and ci/test_claim_bot.py are ported, with every test case, to obs-rust/.github workflow/claims.py and tests/test_claims.py. That suite adds simulation tests for the full lifecycle.

Docs and workflow config only; there's no product code, so no RED→GREEN. Ran ci/test_workflow_schedule_guard.py on the new caller: passes.

The claim bot moves to obs-rust/.github as a reusable workflow, so every
org repo shares one set of rules (obs-rust/.github#5). A claim is now the
issue's assignee and lapses after 24 hours without progress (8 on P0). Only
issues labeled ready can be claimed for implementation; an underdefined
issue gets 'Claiming: investigation' and then /ready. Open blockers and
decisions refuse a claim. Existing claimed labels migrate to assignments
on the first sweep.

Workers hand their PR to the coordinator once it is in the merge queue.
The coordinator starts each tick from the computed work list
(uv run -m workflow.coordinator) and leases each task.

The logic and its tests (ci/test_claim_bot.py, ported) now live in
obs-rust/.github's workflow/ and tests/.
@zackees
zackees enabled auto-merge October 25, 2026 01:11
@zackees
zackees added this pull request to the merge queue Oct 25, 2026
Merged via the queue into master with commit 9d6caff Oct 25, 2026
30 checks passed
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In review to Done in obs-rust Multiview Oct 25, 2026
@zackees
zackees deleted the infra/org-claims branch October 26, 2026 15:45
MCPVOT pushed a commit to MCPVOT/obs-studio that referenced this pull request Oct 30, 2026
…s-rust#2982) (obs-rust#2983)

* test(ci): pin that a burned-down workflow holds no WF-002 exception (obs-rust#962)

RED on origin/master: `test_burned_down_workflows_hold_no_wf_002_exception`
fails with `['claim-bot.yaml'] != []` — the workflow gained its top-level
`concurrency` group with the org claim bot (obs-rust#2286) but ci.toml still records
its WF-002 [[exceptions]] block, so the recorded baseline carries one
exception for a finding that no longer exists.

Also pins claim-bot.yaml's group and `cancel-in-progress: false` (a superseded
run must not cancel claim processing mid-flight), and adds it to EXPECTED so
a later edit that drops the group fails here the same way the linter would.

Refs obs-rust#962

* ci: drop claim-bot.yaml's dead WF-002 exception (obs-rust#962)

claim-bot.yaml carries the top-level group `claim-bot-${{ github.event.issue.number
|| 'sweep' }}` with `cancel-in-progress: false` since the org claim bot took
claims over (obs-rust#2286), so ci-lint's WF-002 no longer reports the file and the
recorded exception has been inert ever since: `ci-lint precheck` on
origin/master prints no WF-002 line at all, before or after this change.

Deleting it keeps ci.toml's baseline honest — the recorded set is what the
linter still reports, and a dead entry hides the next real one.
`ci-lint precheck` header is unchanged at `4 violation(s), 363 approved
exception(s), 2 needs_review` because the tool counts only exceptions whose
finding is present; the RED half of this PR is the offline pin that now fails
without this deletion.

Refs obs-rust#962
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant