DEVX-49: Fix auto-merge rebase feedback loop causing duplicate CI runs #75

Merged
emil merged 0 commits from DEVX-49-fix-auto-merge-rebase-loop into master 2026-06-25 19:29:46 +00:00
Owner

Changes

The auto-merge script rebased and force-pushed when the branch was behind master. This push triggered a new pull_request: synchronize event, starting a new CI run with another auto-merge job, which rebased and pushed again — creating an infinite loop of duplicate CI runs.

Fix

When the branch is behind master, auto-merge now fails with a clear message asking the user to rebase manually. The pre-merge-check job already validates this, but master can advance between pre-merge-check and auto-merge execution.

Impact

This fixes the duplicate CI runs observed in all repos using devx (infra, grm, devx).

Closes DEVX-49

## Changes The auto-merge script rebased and force-pushed when the branch was behind master. This push triggered a new `pull_request: synchronize` event, starting a new CI run with another auto-merge job, which rebased and pushed again — creating an infinite loop of duplicate CI runs. ### Fix When the branch is behind master, auto-merge now fails with a clear message asking the user to rebase manually. The `pre-merge-check` job already validates this, but master can advance between pre-merge-check and auto-merge execution. ### Impact This fixes the duplicate CI runs observed in all repos using devx (infra, grm, devx). Closes DEVX-49
emil added the ready-to-merge label 2026-06-25 19:03:23 +00:00
emil reviewed 2026-06-25 19:04:12 +00:00
emil left a comment
Author
Owner

Automated PR Review

  • Architecture compliance: OK
  • Best practices: OK
  • Security: OK
  • i18n: OK
  • Resource management: OK
  • Documentation: WARNING — source files changed but no docs updated
  • Tests: OK
  • Commit conventions: OK

No issues found by automated checks.


Auto-merge: If all CI checks pass, this PR will be merged automatically.

## Automated PR Review - Architecture compliance: OK - Best practices: OK - Security: OK - i18n: OK - Resource management: OK - Documentation: WARNING — source files changed but no docs updated - Tests: OK - Commit conventions: OK No issues found by automated checks. --- **Auto-merge:** If all CI checks pass, this PR will be merged automatically.
emil force-pushed DEVX-49-fix-auto-merge-rebase-loop from 9ffcbe6063 to 7fff924413 2026-06-25 19:28:07 +00:00 Compare
emil reviewed 2026-06-25 19:28:52 +00:00
emil left a comment
Author
Owner

Automated PR Review

  • Architecture compliance: OK
  • Best practices: OK
  • Security: OK
  • i18n: OK
  • Resource management: OK
  • Documentation: WARNING — source files changed but no docs updated
  • Tests: OK
  • Commit conventions: OK

No issues found by automated checks.


Auto-merge: If all CI checks pass, this PR will be merged automatically.

## Automated PR Review - Architecture compliance: OK - Best practices: OK - Security: OK - i18n: OK - Resource management: OK - Documentation: WARNING — source files changed but no docs updated - Tests: OK - Commit conventions: OK No issues found by automated checks. --- **Auto-merge:** If all CI checks pass, this PR will be merged automatically.
emil merged commit af610d22ec into master 2026-06-25 19:29:46 +00:00
emil deleted branch DEVX-49-fix-auto-merge-rebase-loop 2026-06-25 19:29:46 +00:00
Sign in to join this conversation.