test: freeze host-authoritative original Purge validation
This commit is contained in:
@@ -80,8 +80,12 @@ try {
|
||||
const store = (file, value) => save(prefix + '/' + file, value), startedAt = Date.now();
|
||||
let own, session, worker, group, workerState, failure, result, route;
|
||||
try {
|
||||
const installation = resolveControlledInstallation(process.cwd(), frozen.installation.root);
|
||||
const source = resolveOriginalPurgeSource(process.cwd(), frozen.source.root, installation);
|
||||
const installation = frozen.availabilityAuthority === 'host-api'
|
||||
? await api('/engines/deepseek/controlled-availability?root=' + encodeURIComponent(frozen.installation.root))
|
||||
: resolveControlledInstallation(process.cwd(), frozen.installation.root);
|
||||
const source = frozen.availabilityAuthority === 'host-api'
|
||||
? await api('/engines/purge/source?kind=' + ORIGINAL_PURGE_KIND + '&root=' + encodeURIComponent(frozen.source.root) + '&harnessRoot=' + encodeURIComponent(installation.root))
|
||||
: resolveOriginalPurgeSource(process.cwd(), frozen.source.root, installation);
|
||||
assert.equal(installation.controlledSha256, frozen.installation.controlledSha256);
|
||||
assert.equal(source.sourceSha256, frozen.source.sourceSha256); assert.equal(source.runtimeSha256, frozen.source.runtimeSha256);
|
||||
const current = await api('/model-center');
|
||||
|
||||
Reference in New Issue
Block a user