Skip to content

migrate_diff: the migration differential; the 97 fallback discards partial outputs (#2230) - #2234

Merged
ehartford merged 2 commits into
mainfrom
migrate-diff
Oct 7, 2026
Merged

ehartford merged 2 commits into
mainfrom
migrate-diff

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Part 2 of #2230: tools/migrate_diff.w lays two migrations out as the cohesive lib layout, checks the main module with --dump-mir, and compares statements per function with every positional id normalized — on #2214's pcre2 it names the four touched functions with exactly the zeroed rewrite. The build runner's 97 fallback now removes the target's declared outputs before the evaluator re-runs the action, naming each (the native attempt's partial files were the likely source of the never-reproduced heap-8 failure). Doc route updated. A regex literal opening a statement is #2233.

Draft until its battery is green.

Eric Hartford added 2 commits October 6, 2026 19:15
…wer differently between two migrations (#2230)

Lays each migration out as the cohesive lib layout, checks the main module
with --dump-mir, splits per function and compares statements with every
positional id normalized (symN, _N, bbN, tyN, .fN), printing the statements
present on one side only. On #2214's pcre2 it names four functions, each
with exactly the zeroed rewrite — the answer a file-by-file bisect of six
files and three bundle rebuilds could not give. The deep-debugging-tools
route uses it as step 2. Naming the migrator rule behind each site stays
open on #2230; a regex literal opening a statement is #2233.
…utputs before the evaluator re-runs the action (#2230)

The native runner executes an action's With code up to the call that needs
the evaluator (Workspace.begin_intercept); every file written before that
stayed, and the evaluator's run — and any dependent that ran between —
could see a half-written output (pcre2's heap-8 test once ran a pcre2test
from such a state and the failure never reproduced). The target's declared
outputs are removed first, each named in the log.
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery GREEN on 8c4b8e1 (seed-driven): gate rc=0 553s, uat rc=0 27s, battery-checks rc=0 827s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant