Repository navigation
Add local blink parity script with divergent-file re-check - #153
Merged
Merged
Conversation
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.
What
Adds
blink/bin/parity.sh- a local version of theblink_parity_laravel/blink_parity_mauticCI workflows, for the tight iteration loop while closing a blink gap.It runs the same all-sets ECS config both ways on two identical copies of a real project, then diffs the trees:
bin/ecs check --fix --blink(Go binary)bin/ecs check --fix(PHP engine)The files whose output differs are recorded to
parity.<project>.txt. On the next run,--onlyre-checks just those files instead of the whole tree - so after a full run you iterate against the handful of divergent files rather than re-scanning thousands.Usage
The project is cloned once into
$TMPDIRand reused.--onlypasses the recorded file list as explicit path args to both engines (CheckCommand...$pathsoverrides the config sources for both the PHP and blink paths), and rewritesparity.<project>.txtwith whatever still diverges - so the list shrinks as gaps close.Per-project file names (
parity.laravel.txt,parity.mautic.txt) keep the two projects from clobbering each other. Both are gitignored.Notes
--onlyre-check logic verified on synthetic trees (full run lists both divergent files; after fixing one,--onlyshrinks the list to the remaining file).