Skip to content

[Sync] Update project files from source repository (daa4f3b) - #383

Merged
mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20261019-024612-daa4f3b
Oct 19, 2026
Merged

mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20261019-024612-daa4f3b

Conversation

@mrz1836

@mrz1836 mrz1836 commented Oct 19, 2026

Copy link
Copy Markdown
Member

What Changed

  • Updated .github/workflows/auto-merge-on-approval.yml. The diff was truncated, so only the visible parts are described here.
  • Removed the concurrency block (group and cancel-in-progress: true) from the evaluate job. Overlapping evaluations can now run side by side. The header comments now say apply runs one at a time per branch and is never cancelled halfway.
  • Removed the head-sha output from evaluate, along with the core.setOutput('head-sha', pr.head.sha) call.
  • Moved the base-branch required-status-checks lookup (rulesets plus classic branch protection) earlier in the evaluate script. It no longer runs as a separate guard after the other checks. The result is now one entry in the blockers list: skip-no-required-checks is added if the rules can't be read (fail closed) or if zero required checks are found.
  • Updated the comments on the apply job and the evaluate job to say apply re-reads the PR and re-derives enable / disable / nothing from fresh data. The evaluate result now only decides whether apply runs.

Why It Was Necessary

  • Without the concurrency block, no evaluate run can cancel another run's evaluation, however that run ends.
  • apply can be queued or superseded, so it should not act on a stale decision from the evaluation that queued it. Examples are a retargeted base branch, a removed label, or a re-armed PR.
  • Folding the required-checks check into the blocker list reports it in the same order and with the same reasons as the other conditions. It is also re-checked on every evaluation, because a PR can be retargeted at any time.

Testing Performed

  • No test runs are visible in the diff. This is a workflow-only change.
  • Reviewers should check the workflow YAML for syntax and logic. Suggested scenarios are a PR whose base branch has required checks, one with none, and one where the rules lookup fails.
  • Reviewers should also confirm that apply behaves correctly when runs queue for the same branch.

Impact / Risk

  • Behavior change: evaluate runs are no longer cancelled by newer runs, so there may be more concurrent read-only runs. Each is limited by timeout-minutes: 5.
  • The auto-merge safety guard is kept. It still fails closed when the base branch rules can't be read or require no status checks.
  • Risk is moderate. The diff was truncated, so the full apply job changes could not be reviewed here. The comments say the bash re-check in apply must stay in sync with the blocker list in evaluate.

Copilot AI balanced review requested due to automatic review settings October 19, 2026 02:46
@mrz1836 mrz1836 self-assigned this Oct 19, 2026
@mrz1836 mrz1836 added automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps labels Oct 19, 2026
@github-actions github-actions Bot added update General updates size/L Large change (201-500 lines) labels Oct 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Privileged merge operations warrant human validation of queued-run behavior and required-check lookup failures.

No open issues 🎉

What changed in this PR

Updates auto-merge automation so queued apply jobs derive their action from fresh PR data rather than replaying an earlier decision.

Changes:

  • Allows concurrent read-only evaluations while keeping apply jobs serialized.
  • Rechecks required status checks alongside other eligibility conditions.
  • Uses fresh decisions and head commits for merge operations and outcome reporting.
File Description
.github/​workflows/​auto-merge-on-approval.yml Updates concurrency, eligibility checks, apply decisions, and summaries.

Review effort: Balanced

@mrz1836
mrz1836 merged commit 2b13939 into master Oct 19, 2026
30 checks passed
@github-actions
github-actions Bot deleted the chore/sync-files-go-bitcoin-20261019-024612-daa4f3b branch October 19, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps size/L Large change (201-500 lines) update General updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants