Skip to content

feat(roadmap): detect merge conflicts on open ready pull requests - #4766

Merged
dan-petty merged 4 commits into
mainfrom
feat/4027-detect-merge-conflicts-on-open-ready
Nov 11, 2026
Merged

dan-petty merged 4 commits into
mainfrom
feat/4027-detect-merge-conflicts-on-open-ready

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

GitHub sends no event when a merge into the default branch makes a conflict with an open pull request, so a ready delivery pull request stayed blocked until a person opened it. The new status-lane row pr_conflicts reads each ready pull request that closes one open Item into the default branch, and comments once on a conflict. A ledger beside schedule.json stops a second comment for the same head commit. An unknown merge state changes nothing. The row sends the gauge devops_cli_roadmap_conflicted_pulls. A clean pull request that is only behind gets no action, because docs/SDLC.md forbids a catch-up update of an open pull request. devops pr check-readiness, the implement watch and the row judge a conflict with one function, merge_conflict.

Closes #4027
Change: openspec/changes/archive/2026-11-11-4027-detect-merge-conflicts-on-open-ready/

A new status-lane row, pr_conflicts, comments once on a ready delivery pull request that has merge conflicts with the default branch. A clean pull request that is only behind gets no action. check-readiness, the implement watch and the row share one conflict judgment.
The due table has 12 rows with pr_conflicts, so one repository adds at most 36 series of devops_cli_roadmap_row_seconds.
Each Service interval is a prime that no other row uses, and 13 is the interval of the metrics row.
@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 11, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence for this pull request.

Test first: tests/roadmap/test_pr_conflicts.py failed on the base with an ImportError (no CONST_ROADMAP_PR_CONFLICTS_LEDGER_FILENAME, no row). On the branch it passes (23 tests).

Local runs on the branch:

  • uv run pytest -n 8 tests/roadmap tests/github tests/release: 7848 passed, 1 skipped. Two failures in that run (the interval count and the limit class of the new interval) are fixed in a later commit, and their files pass now (53 passed).
  • uv run pytest -n 6 tests/docs tests/invariants tests/grafana tests/prometheus tests/telemetry ...: 1628 passed; the row seconds bound now counts 12 rows (149 passed after the fix).
  • uv run mypy on the changed modules: no issues. uv run devops openspec check: passed. Archive: every spec and change validates.

Premise check (REST read of one open pull request, 2026-11-11): {"base":"main","default":"main","draft":false,"mergeable":null,"mergeable_state":"unknown"}. The listing of open pull requests holds no mergeable field (has_mergeable: false). So the row reads each candidate, and an unknown state waits for the next round.

Scope change from the issue design: the row sends no update-branch request for a clean pull request that is behind. docs/SDLC.md (Phase 1) and the owner requirement of 2026-11-11 forbid a catch-up update of an open pull request. A Job that rebases a conflicted bot pull request through the push check waits for #4670.

Live steps: none. The row needs no setting, ConfigMap or Secret change. The Service writes pr_conflicts.json beside schedule.json at its first round after the image rolls.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 18:54
@dan-petty
dan-petty merged commit 3f72e76 into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the feat/4027-detect-merge-conflicts-on-open-ready branch November 11, 2026 19:10
dan-petty pushed a commit that referenced this pull request Nov 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.113.0](v0.112.3...v0.113.0)
(2026-11-11)


### Features

* **roadmap:** detect merge conflicts on open ready pull requests
([#4766](#4766))
([3f72e76](3f72e76))


### Bug Fixes

* **ci:** run the job-time alarm on the schedule only
([#4774](#4774))
([60c0847](60c0847))


### Performance Improvements

* **roadmap:** parse only the test modules that name the registry
([#4778](#4778))
([4b28980](4b28980))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): detect merge conflicts on open ready pull requests

1 participant