Skip to content

Automate semantic YAML merge conflict resolution for META.yml (#9117) - #9126

Open
jcscottiii wants to merge 1 commit into
masterfrom
fix/issue-9117-phase3-conflict-resolver
Open

Automate semantic YAML merge conflict resolution for META.yml (#9117)#9126
jcscottiii wants to merge 1 commit into
masterfrom
fix/issue-9117-phase3-conflict-resolver

Conversation

@jcscottiii

Copy link
Copy Markdown
Collaborator

When concurrent automated PRs (Gecko sync, wpt.fyi triage) modify the same META.yml file, Git performs line-based text merging and flags conflicts. Introduce tools/resolve_conflicts/main.go to semantically union Stage 2 (ours) and Stage 3 (theirs) YAML metadata links using go.yaml.in/yaml/v4.

Add .github/workflows/resolve_conflicts.yml to automatically re-resolve and push clean merge commits to open bot PRs when master advances. Upon resolution, posts an explanatory comment on the PR detailing the merge and providing exact copy-pasteable instructions for reverting or overriding.

Part of #9117

TAG=agy
CONV=151bab34-ef13-4f42-a878-c25d60599679

When concurrent automated PRs (Gecko sync, wpt.fyi triage) modify the same META.yml file, Git performs line-based text merging and flags conflicts. Introduce tools/resolve_conflicts/main.go to semantically union Stage 2 (ours) and Stage 3 (theirs) YAML metadata links using go.yaml.in/yaml/v4.

Add .github/workflows/resolve_conflicts.yml to automatically re-resolve and push clean merge commits to open bot PRs when master advances. Upon resolution, posts an explanatory comment on the PR detailing the merge and providing exact copy-pasteable instructions for reverting or overriding.

Part of #9117

TAG=agy
CONV=151bab34-ef13-4f42-a878-c25d60599679
@jcscottiii jcscottiii added the do not merge yet Disable auto-merge label Jul 1, 2026
@jcscottiii
jcscottiii requested review from a team as code owners July 1, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge yet Disable auto-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant