release: install verified Purge repair build and seal original state
This commit is contained in:
@@ -92,10 +92,16 @@ try {
|
||||
const connectionId = connection.id ?? connection.connection?.id ?? connection.center?.connections.at(-1).id;
|
||||
assert.ok(connectionId); await controller.api('/model-center/probe', { method: 'POST', input: { id: connectionId } }); assert.equal(authenticated, 1);
|
||||
stage = 'actual update rejects a pending owned model request'; hold = true;
|
||||
const pending = controller.api('/model-center/probe', { method: 'POST', input: { id: connectionId }, timeoutMs: 60000 }); pending.catch(() => {});
|
||||
// Manifest verification is synchronous and can occupy this fixture's event
|
||||
// loop. Keep the explicitly held local response pending across that work;
|
||||
// this is the QA client's deadline, not a product/model timeout override.
|
||||
const pendingStarted = Date.now();
|
||||
const pending = controller.api('/model-center/probe', { method: 'POST', input: { id: connectionId }, timeoutMs: 300000 }); pending.catch(() => {});
|
||||
await until(() => heldRequest); await assert.rejects(ownedManager(null).preflight(), /任务|请求/);
|
||||
assert.equal((await controller.connect()).identity.pid, original.pid); record(stage, { fixture: 'Actual pending owned HTTP request; manager preflight rejects before the product 20-second request timeout.' });
|
||||
releaseRequest?.(); hold = false; await pending;
|
||||
assert.equal((await controller.connect()).identity.pid, original.pid);
|
||||
assert.equal(authenticated, 2, 'Exactly the initial and explicitly held owned requests; no retry.');
|
||||
record(stage, { fixture: 'Actual owned HTTP response held until full manifest/preflight and original PID verification settle. No configured-model call or product timeout change.', elapsedMs: Date.now() - pendingStarted });
|
||||
releaseRequest?.(); hold = false; assert.equal((await pending).ok, true);
|
||||
stage = 'actual installer rejects a persistent original task approval';
|
||||
const projectRoot = path.join(root, 'approval-project'); fs.mkdirSync(projectRoot); fs.writeFileSync(path.join(projectRoot, 'README.md'), '# Owned installer approval project\n');
|
||||
const project = await controller.api('/projects', { method: 'POST', input: { root: projectRoot } }), session = await controller.api('/sessions', { method: 'POST', input: { projectId: project.id } });
|
||||
|
||||
Reference in New Issue
Block a user