Phase 2 of golden-parity redesign (epic #2264). Adds an install file-set snapshot (golden-install-tree) and a ci-test-scope rule selecting golden-parity whenever any installed-source path changes, closing the silent-staleness hole behind the #2266 red. ADR-2264 amended (the copy/transform split premise was unsound). Closes #2267.
This commit is contained in:
@@ -227,6 +227,13 @@ function buildParityManifest(configDir, root) {
|
||||
return sorted;
|
||||
}
|
||||
|
||||
/** Sorted list of emitted relative paths for a runtime install (file-set snapshot,
|
||||
* #2267). Reuses buildParityManifest's exact exclusion set so the tree and the
|
||||
* content manifest never diverge on which files they cover. */
|
||||
function buildInstallTree(configDir, root) {
|
||||
return Object.keys(buildParityManifest(configDir, root)).sort();
|
||||
}
|
||||
|
||||
function simulateHookCopy(hooksSrc, hooksDest) {
|
||||
fs.mkdirSync(hooksDest, { recursive: true });
|
||||
for (const entry of fs.readdirSync(hooksSrc)) {
|
||||
@@ -397,6 +404,7 @@ module.exports = {
|
||||
stripAnsi,
|
||||
walk,
|
||||
buildParityManifest,
|
||||
buildInstallTree,
|
||||
simulateHookCopy,
|
||||
installerEnv,
|
||||
runMinimalInstall,
|
||||
|
||||
Reference in New Issue
Block a user