Skip to content

infra: a PR merged for an issue closed as a duplicate of a claimed one (#3251 / #3279 vs #3238) #3307

Closed

Description

@rdoupe

What happened (2026-10-31, UTC)

Two issues asked for the same change, running the ASan unit tests in rust/tools/sanitize/sanitize.py in parallel instead of one at a time:

Time Event
18:32 #3238 filed by @vpacher
19:06 #3238 marked Ready
19:49 #3251 filed by a zackees agent as a sub-issue of the CI lead-time tracker #3249. It never got ready and never had a Claiming: comment
20:02 @vpacher claims #3238 (the claim bot assigns him)
21:10 RED commit 7bec9078c for #3251 on build/3251-asan-parallel, from another zackees agent
21:14 A zackees agent closes #3251 as a duplicate of #3238 ("older, already Ready and claimed")
21:16 #3279 opened with Fixes #3251, and auto-merge was turned on when it opened
21:25 #3279 added to the merge queue
21:32 #3279 merged with no review and no comment

Volker's PR for the issue he claimed (#3290, now a draft) was being measured when this happened. He has rebuilt it on top of #3279. His measurements show #3279 broke three tests on master without failing the check: test_xshm_monitor_late and test_xshm_monitor_hotplug fail on the shared Xvfb display, and test_async_delay_audio fails on timing under load. The asan job still reports success because fail_on_findings is off.

Why nothing stopped it

  1. The issue was coded while it was neither Ready nor claimed. coordination.md §2 says only a ready issue can be claimed, and the claim comes before the code. ci(sanitize): run the ASan unit tests in parallel (20 of 27 min serial) #3251 had neither, and its RED commit came 4 minutes before the duplicate close.
  2. Nobody re-read the issue before opening the PR. It had been closed as a duplicate 2 minutes earlier.
  3. The build/<issue>-* pipeline skips the claim in other cases too. Of its recent PRs, fix(benchmarks): record.py --cpu pins only the measurement, not the build (#3252) #3274 built bench: record.py --cpu pins the whole build to one core, not just the measurement #3252, which was neither Ready nor claimed. build(libobs): lib-module manifest and its checker (#3258) #3300 builds build(libobs): module manifest in source-sets.json and its checker #3258, which is Ready but has no claim comment. The others (build: compile build-script C in parallel; forbid pinned codegen-units = 1 (#3253) #3255, build(cmake): keep cmake/common host-neutral, move OS logic to cmake/<os> (#3234) #3269, build(libobs): one source-set file per set in source-sets.d (#3235) #3280, build(libobs): per-unit compile options and headers in ported-source-sets (#3236) #3293, build(libobs): record the libobs build phases for the module-cache baseline (#3257) #3294) had claims. That pipeline lives outside this repo's skills, so the obs-worker skill's claim step does not cover it.
  4. Nothing checks the linked issue when a PR opens. The claim bot only acts on issue comments. No PR-side check confirms that a Fixes #N issue is open, Ready and claimed, or that it was not closed as a duplicate of an issue someone else claimed.
  5. Many agents share one account. The agent that closed the duplicate and the agent that built it were both zackees, so neither saw a conflict. A check that compares only assignees would not have caught it either.
  6. Auto-merge was on from the start and there was no review. Only 16 minutes passed between opening and merging, so nobody had a chance to notice, including the person who claimed the issue.

Proposed fixes

  • A PR check (claim bot or Fast Gate): for each Fixes/Closes #N, fail (or add a claim-conflict label and keep the PR out of the queue) when #N is closed, isn't ready, has no Claiming: comment, or was closed as a duplicate of an issue someone else claimed. Docs-only PRs and focused CI fixes can opt out, the same way they already skip RED.
  • The build/ pipeline and the obs-worker skill: claim before the first commit. Before gh pr create and before enabling auto-merge, re-read the issue. If it is closed, not Ready, or claimed by someone else, stop and comment on the replacement issue instead.
  • Closing a duplicate: look for open branches or PRs that name the issue (build/<N>-*, Fixes #N) and comment on them, so whoever is building it sees the close.
  • A separate fix: make the sanitizer job fail when a unit test fails. ci(sanitizers): the asan job fails on what it finds; tsan in a pool; valgrind runs every test, two at a time (follow-up to #3279) #3290 already measures this.

Reported by @vpacher in Discord. zackees asked for an investigation so this doesn't happen again. Based on the GitHub timelines of #3238, #3251, #3279 and #3290.

Activity

  1. added
    infra
    on Oct 31, 2026
  2. rdoupe commented on Oct 31, 2026

    @rdoupe
    CollaboratorAuthor

    Filed where each fix lives:

  3. added
    P2
    size:M
    on Nov 1, 2026
  4. zackees commented on Nov 1, 2026

    @zackees
    Member

    /ready

    Coordinator triage. Thanks for the timeline, rdoupe and vpacher. One part of it is the coordinator's: the 21:14 duplicate close of #3251 came from a triage helper I launched. It checked the issue thread but not for open branches or PRs naming #3251. build/3251-asan-parallel already had its RED commit, so whoever was building it never learned of the close. That is your third proposed fix ("Closing a duplicate"), and I'll add it to the coordinator playbook as part of this issue.

    Remaining scope here, with the other halves filed elsewhere: obs-rust/.github#26 is the PR-side check, and talos-hq/clud#2503 is /do checking the issue first.

    1. obs-worker skill: claim before the first commit, and re-read the issue before gh pr create and before enabling auto-merge.
    2. obs-coordinator skill: before closing an issue as a duplicate, search for build/<N>-* branches and Fixes #N PRs, and comment on each.
    3. The masked test failures (test_xshm_monitor_late, test_xshm_monitor_hotplug, test_async_delay_audio) are real breakage on master. They belong to ci(sanitizers): the asan job fails on what it finds; tsan in a pool; valgrind runs every test, two at a time (follow-up to #3279) #3290 / ci(sanitizers): the ASan unit tests run one at a time and take 20 of the job's 26 minutes #3238, which vpacher has claimed, including making the sanitizer job fail on a unit-test failure.

    P2: it caused a regression on master that CI didn't see, and it overrode a contributor's claim.

  5. added
    ready
    on Nov 1, 2026
  6. zackees commented on Nov 2, 2026

    @zackees
    Member

    Claiming: #3307 remaining repository playbook safeguards.

    1. Require the worker to claim before the first commit and re-read issue state, Ready status and claims before PR creation and auto-merge.
    2. Require the coordinator to search branches and PRs before closing a duplicate and notify any active PR or branch owner.
    3. Review the documentation against the incident and linked external follow-ups; open one documentation-only PR today.
  7. moved this from Ready to In merge queue in obs-rust Multiviewon Nov 2, 2026
  8. moved this from In merge queue to Done in obs-rust Multiviewon Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2infrareadysize:M

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions