MCPcopy Create free account
hub / github.com/microsoft/AI-Engineering-Coach / run

Function run

scripts/parse-parity.ts:124–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122}
123
124async function run(): Promise<void> {
125 fs.mkdirSync(outDir, { recursive: true });
126 /* eslint-disable no-console */
127 console.log('Parse-parity check');
128 console.log(` branch tree: ${branchRoot}`);
129 console.log(` main tree: ${mainRoot}`);
130
131 const branch = await runFor('branch', branchRoot);
132 const main = await runFor('main', mainRoot);
133
134 console.log(`\nbranch sha256 = ${branch.sha}`);
135 console.log(`main sha256 = ${main.sha}`);
136
137 if (branch.sha === main.sha) {
138 console.log('\nPARITY OK — parsed output is byte-for-byte identical across both trees.');
139 process.exit(0);
140 }
141 console.log('\nPARITY FAILED — parsed output differs between the two trees.');
142 reportFirstDiff(branch.ndjson, main.ndjson);
143 process.exit(1);
144 /* eslint-enable no-console */
145}
146
147void run();

Callers 10

withProjectsDirFunction · 0.85
withTempFileFunction · 0.85
withStorageFunction · 0.85
withCodexFileFunction · 0.85
withTempFileFunction · 0.85
withCodexRootFunction · 0.85
withCodexFileFunction · 0.85
withCodexRawFileFunction · 0.85
withCodexFilesFunction · 0.85
parse-parity.tsFile · 0.85

Calls 2

runForFunction · 0.85
reportFirstDiffFunction · 0.85

Tested by 9

withProjectsDirFunction · 0.68
withTempFileFunction · 0.68
withStorageFunction · 0.68
withCodexFileFunction · 0.68
withTempFileFunction · 0.68
withCodexRootFunction · 0.68
withCodexFileFunction · 0.68
withCodexRawFileFunction · 0.68
withCodexFilesFunction · 0.68