Repository navigation
merge_main: merge origin/main with no model when every conflict is in a regenerated file (#6732) - #6739
Merged
Conversation
… a regenerated file (#6732) Conflicted golden masters, lint baselines, docs_read_by_tests.txt, the graph coverage chart and .test_durations take main's side and their writer re-runs (with pr_gates' corpora environment); mutation_testing.md's prose merges with its generated score table blanked, then `mutation_scores.py table` re-renders it; proof records (det-sweep ledger entries, evidence records, the graph comparison ledger) take main's side and derived_check (#6731) names any re-prove. Any other conflict aborts the merge untouched (exit 2). Always a merge commit, never a rebase or a push. --repo lets churn run main's copy on a PR branch's worktree. Replayed on churn's 37 precheck conflicts of 10-16..26: 12 of the 27 that still conflict are all-resolvable, and 11 of 11 replayed live merged with no conflict markers (4 re-blessing goldens). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6732.
Why. Conflicts with main were 25% of churn fix runs from 10-18 to 10-26 (41 on 10-24 alone). Each was a model run plus a CI round, and many were in files no one writes by hand. A clean merge is already GitHub's update-branch (promoter-bot #20). This adds the next step.
What:
tests/tools/merge_main.pyruns a merge commit withgit merge origin/main, never a rebase and never a push. Each conflicted path is handled by type:docs_read_by_tests.txt,graph_coverage_chart.svg,.test_durationspr_gates' environment, which has the corpora beside the main checkoutmutation_testing.mdgit merge-file, with the<!-- mutation-scores -->table blanked on all three sides; thenmutation_scores.py tablere-renders it. Prose that itself conflicts aborts.graph_comparison_ledger.jsonderived_check.py(#6734) prints the re-prove commands (exit 3)git merge --abort, branch untouched, exit 2--dry-runclassifies viagit merge-treewithout changing anything.--repo PATHlets churn run main's copy of the tool against a PR branch's worktree.merge_mainjoinschange_classifier.PATTERN_HOLDERS, because it names paths as patterns, not as reads.docs_read_by_tests.txtis unchanged.Replay on churn's 37 recorded precheck conflicts (10-16..26), each rebuilt at that moment's PR head and main:
crucible_check --update.Checks:
test_merge_main.pyhas 16 tests, including scratch-repo merges: a hand-written conflict changes nothing, a regenerated file takes main's side in a real merge commit, and a region file merges prose and re-renders its table.test_source_reads,test_change_classifier,test_ground_truth_planandpr_gates --only lint auditspass.Follow-up: the churn side will run this before queuing a model fix for a dirty PR.
🤖 Generated with Claude Code