Skip to content

evidence-refresh bot: re-render / merge main right before auto-merge (a refresh computed on an older main turned main red, #4820) #4822

Closed

Description

@squid-protocol

What happened (2026-10-09). Evidence Refresh computed #4820 on main as of #4808 (8130b9a). #4759 then merged, re-proving carddemo-tranadd and committing its record and rendered page. The bot's PR auto-merged afterwards with checks that had run on its older base. The squash left tranadd's record (CI oracle image d7e387df360c) and rendered page (local image 42d04bb08a2a) out of step. test_evidence.py::test_the_rendered_pages_are_current went red on main (ground-truth + full-suite), and every open PR inherited it until the fix PR re-rendered.

Fix options:

  1. Right before gh pr merge --auto, the job merges current main into auto/evidence-refresh, re-runs the deterministic renders (evidence.py render, the report), and pushes. If main moves again, repeat (bounded).
  2. Enable "require branches to be up to date" for the bot PR / use a merge queue.
  3. Make PRs stop committing rendered pages entirely (as evidence report: regenerate on main by bot, advisory in PRs, strict at release (stop per-PR report churn) #4703 did for the report), so the bot is the only writer.

Option 3 removes the class of bug; option 1 is the quick guard.

Also for the CI shepherd (#4790): when the same failing test appears on main and on several PRs, the shepherd should triage it as main, post one note and file nothing per PR, not a real note on each.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    ci-cd
    priority: high
    on Oct 9, 2026
  2. squid-protocol commented on Oct 10, 2026

    @squid-protocol
    OwnerAuthor

    Resolved by the CI v2 work (#4825), so closing:

    Residual edge: a bot PR that merges onto a main which moved without conflicting. Tracked as the merge-queue item in #4825 (option 2 here).

    🤖 Generated with Claude Code

  3. 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