Skip to content

pr-state / l1-face: a superseded same-name check-run on the head (a PR-body guard re-run by a body edit) still counts as failed #38403

Duplicate

Description

@objectstack-fleet

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Filing gate: ① a reproducible tooling defect with a named producer, met in flight. Source: L1-a record 7247697798 on PR #38393 (out-of-scope observation), area o5-fleet.

维护者速读

  • 问题:同一个检查在同一个提交上跑了两次(比如改了 PR 正文触发重跑),旧的一次失败、新的一次通过,席位读 PR 状态的工具仍把它算成“1 个失败”。
  • 做什么:同名检查只按最新一次计。
  • 出错会怎样:只影响席位的读数,合并队列不读这个工具;最坏是席位多核对一次。
  • 要你做什么:无。

What happens (read on origin/main)

  • scripts/pm/pr-state.mjs (~:228) reads /commits/{head}/check-runs?filter=latest and judges every row. filter=latest keeps the latest run per name within one check suite. A workflow re-triggered by a PR-body edit (pull_request edited) creates a NEW suite on the same sha, so both suites' same-name runs come back.
  • Measured on PR chore(pm): probe classifier carve-out, paste-safe rerun line, runnable probe rule (#35237 slice 13) #38393 at 084b6dba7a: PR-body guards (claim · duplicate · Part-of · single-writer path) has run 141154753970 (failure, 23:26Z, run 46201579500) and 141156562353 (success, 23:33Z, run 46202153018). pr-state printed 1 failed (PR-body guards …=failure) and l1-face flagged all-checks, while mergeable_state was clean.
  • l1-face.mjs takes pr-state's reading (readPrState), so it inherits the miscount.

Ask

Among same-name check-runs on the head, judge only the newest (by started_at, or completed_at when present) and print how many superseded runs were dropped, so the reading stays auditable. Add a self-test fixture with a red-then-green pair (green reading) and a green-then-red pair (red reading).

Done when

pr-state --pr N on a head with a superseded red run and a newer green one reads 0 failed and names the dropped run; the reverse order reads 1 failed.

Dedupe: is:issue is:open pr-state superseded check-run and is:issue is:open "same name" check-run pr-state return no card for this.
Suggested-grade: p3 · a seat's reading only; the queue guard and branch protection read the platform's own state.
Clause-②: no · Metadata-protocol: none

Activity

  1. added
    bug
    tooling
    pm:queue
    domain:devx
    domain:skills
    and removed
    domain:devx
    bug
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Closed · 2026-11-29T00:48Z · Triage: lands in scripts/pm/pr-state.mjs (keep only the newest run of each check-run name before judgeCheckRuns; l1-face.mjs inherits the fix through readPrState) · area:fleet · domain:devx → domain:skills · Task · p3 · folded into the area:fleet sweep card #35768 · size S. Rationale: a measured false red on a correct source, which passes the tooling queue gate (third gate). On PR #38393 at 084b6dba7a, the PR-body guard's red run 141154753970 is superseded by green run 141156562353, yet pr-state reports 1 failed while mergeable_state is clean. A p3 size-S tooling fix meets sweep admission. The change belongs in pr-state.mjs, ⛔ not in check-expected-skips.mjs's judgeCheckRuns, which ci.yml reads (a gate change).

  3. removed
    pm:queue
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:fleetdomain:skillspriority:p3tooling

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions