Skip to content

auto-format: push-race rebase conflict aborts the pass (run 41684257818) — make conflicted passes retryable/distinguishable #5230

Closed

Description

@dezren39

Finding (2026-11-04, from task 7586 revalidation of #4787)

Scheduled auto-format run 41684257818 (2026-11-03T17:26:26Z, head 4ab80c458) fired correctly but the pass failed at the push step:

  • The workflow's format commit (2b36e5430) raced a newer main; the push was rejected non-fast-forward.
  • The workflow's rebase retry hit a content conflict in pm-stack/aggregator/test/quota-current.test.ts (auto-merging pm-stack/aggregator/events.json, src/render.ts, and two test files) and aborted: error: could not apply 2b36e5430... style(treefmt): auto-format on main, exit 1.
  • Impact was self-healing this time: the next scheduled run (41730853769, 2026-11-03T22:26Z) succeeded and the pass at 23:12Z pushed b65342bc. But a conflicted pass silently drops that range's formatting until a later clean pass covers it, and the failure looks identical to a formatting failure in the run list.

Acceptance criteria

  • On a rebase conflict during the auto-format push retry, the workflow either (a) drops the conflicted files from its format commit and pushes the remainder, (b) abandons its commit cleanly with a distinct, greppable log line (e.g. auto-format: push abandoned, range will be retried next pass) and a success/neutral exit for the record step, or (c) another mechanism that makes a push-race conflict distinguishable from a formatter failure and guarantees the range is retried.
  • A verification run or workflow-level test demonstrates the chosen behavior on a simulated conflicting push.

Related: #4787 (parent findings; closed with the schedule/token/biome findings resolved), #2014 (closed fleet-wide format tracker).

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/lowNice to have; do when convenient
    area/ciCI/CD pipelines, workflows, and build automation (area)
    on Nov 4, 2026
  2. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    main-ci watch — new main failure for this workflow's tracked defect

    Failure mode is exactly this issue's defect: the format pass committed (35 files changed), its push was rejected (non-fast-forward), the rebase onto newer main hit CONFLICT (content): Merge conflict in pm-stack/aggregator/README.md, could not apply 6f15df5e4... style(treefmt): auto-format on main, and the pass aborted with exit code 1.

    Fresh round: the previous auto-format CI-watch track (issue #4787 / queue task 6794) was CLOSED at 2026-11-04T01:22:15Z, and this run was created 2026-11-04T09:50:05Z, after that closure (it completed late, updated 2026-11-04T10:38:38Z, so it was first observable in this watch pass). This open issue already tracks this exact failure mode, so it is reused instead of filing a duplicate; a new queue task is being enqueued against it by the trigger.

    Filed by main-ci-failure-fix-trigger (fleet). One fix track per failing workflow; duplicates are suppressed until this issue closes.

    🤖 Agent note · filed

  3. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    source/ci-watchFiled by the main-ci-failure-fix-trigger (fleet CI watch)
    priority/highImportant and time-sensitive
    and removed
    priority/lowNice to have; do when convenient
    on Nov 4, 2026
  4. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  5. added
    work/assignedQueue worker lifecycle state
    and removed on Nov 4, 2026
  6. 66 remaining items

  7. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 8, 2026
  8. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  9. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  10. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  11. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  12. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  13. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged (real/current; shepherd follow-on already live)

    Fresh check: issue #5230 is OPEN. Canonical fix PR #6200 remains OPEN and unmerged; its checks were neutral/queued at revalidation. The existing shepherd follow-on is task 12729; triage task 13097 completed and returned that follow-on id. No competing implementation was created.

  14. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 lane=code-f task=12729 stage=done outcome=already_done — Verified fresh: issue #5230 is CLOSED and PR #6200 (ci(auto-format): retry after main push races) is MERGED at a29e791 on 2026-11-09T08:41:16Z. The shepherd work task 12729 exists to drive is already landed, so task 12729 is completed already_done with no further action.

  15. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/ciCI/CD pipelines, workflows, and build automation (area)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivesource/ci-watchFiled by the main-ci-failure-fix-trigger (fleet CI watch)task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions