Skip to content

docs(pull-request-workflow): parallel-merged config PR turns green checks red on main - #135

Merged
CybotTM merged 1 commit into
mainfrom
feat/parallel-config-drift-post-merge
Aug 4, 2026
Merged

docs(pull-request-workflow): parallel-merged config PR turns green checks red on main#135
CybotTM merged 1 commit into
mainfrom
feat/parallel-config-drift-post-merge

Conversation

@CybotTM

@CybotTM CybotTM commented Aug 4, 2026

Copy link
Copy Markdown
Member

Adds a second mechanism under "PR-green is not main-green": lint/analysis runs are pinned to the PR branch's config, so a sibling PR adopting a stricter shared config (rector/eslint/phpstan) that merges between your last CI run and your merge makes main fail a check both PRs passed. Rebasing does not close the window (the config PR can land after the rebase); only a merge queue or "require branches up to date" does. Consequence spelled out: watching the post-merge run on main is part of the merge, and the recovery is a mechanical fix-forward against the new config.

Real case: t3x-nr-vault 2026-08-04 — #287 merged in parallel with #288 (org rector config with NewlineAfterStatementRector); ci / Rector went red on main over one blank line, fixed forward in #289.

…ecks red on main

Second mechanism under 'PR-green is not main-green': lint/analysis runs
are pinned to the PR branch's config, so a sibling PR adopting a
stricter shared config that merges between the last CI run and the merge
makes main fail a check both PRs passed. Rebase does not close the
window; post-merge main watch is the only place this class is visible.
Real case: t3x-nr-vault Rector config adoption, 2026-08-04.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
Copilot AI lite review requested due to automatic review settings August 4, 2026 16:12
@sonarqubecloud

sonarqubecloud Bot commented Aug 4, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions Bot added documentation Improvements or additions to documentation skill labels Aug 4, 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.

Pull request overview

Updates the Git workflow documentation to explain an additional, practical way a “green PR” can still produce failing checks on main after merge, specifically when shared lint/analysis configuration changes land in parallel.

Changes:

  • Add a new “PR-green is not main-green” subsection describing config drift between PR CI runs and the eventual merge-to-main result.
  • Document mitigations (merge queue / require-up-to-date branches) and the operational consequence (monitoring post-merge main CI and fix-forward).
  • Include a concrete real-world example (t3x-nr-vault) to illustrate the failure mode and recovery.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@CybotTM
CybotTM merged commit affb5fd into main Aug 4, 2026
22 checks passed
@CybotTM
CybotTM deleted the feat/parallel-config-drift-post-merge branch August 4, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants