Skip to content

evidence-refresh: a scheduled or dispatched Db2 run is superseded while pending by any push-triggered refresh, so the Db2 sweep never runs on busy days #4743

Closed

Description

@squid-protocol

Found 2026-10-09 after #4740. GitHub keeps at most one pending run per concurrency group, and a newer run cancels the older pending one, even with cancel-in-progress: false (#4720 protects only the running one). Refreshes take more than an hour: run 37870443340, started 01:34, was still running at 03:14. So every pending run is replaced by the next push.

The manual dispatch with db2 = true (run 37874905643, 02:30) waited behind it and was cancelled at 03:13 by the push run for #4742, which skips Db2. The nightly (schedule) Db2 run has the same exposure on any night with a merge. Result: Db2 coverage never refreshes on main (GenApp and CBSA Db2 programs stay at L1/L2 or stale).

Fix (design carefully):

  • A full (Db2) refresh must not be superseded by push refreshes. Options:
    • a separate concurrency group keyed on event type (push vs schedule/dispatch);
    • a separate workflow with its own bot branch and PR.
  • Two bot PRs must never overwrite each other's ledger or record updates. Either serialise their merges (the second regenerates from the updated main), or have the full run's bot PR supersede the push one.
  • Consider why a refresh takes more than an hour (45 stale records re-proved on every run?). Shorter runs shrink the window.

Acceptance:

  • A dispatch with db2 = true during a merge-heavy period completes and lands its ledger and records on main.
  • The nightly Db2 run completes even if pushes arrive during it.
  • Push refreshes still work.
  • There are no conflicting bot PRs.

Related: #4703, #4705, #4720, #4733 / #4740, #4730 / #4734.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    ci-cd
    priority: high
    on Oct 9, 2026
  2. added
    scope:infra
    on Oct 16, 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

    bugci-cdpriority: highscope:infra

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions