mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-22 10:32:40 +08:00
feat(ql3): admit copilot diagnosis runs
This commit is contained in:
@@ -89,7 +89,10 @@ function assertSafeRecovery(
|
||||
recovery: ClusterControlStartupRecoverySummary,
|
||||
): void {
|
||||
if (!recovery.safe || recovery.remaining !== 0 || recovery.failed !== 0) {
|
||||
throw new Error('Cluster-control startup recovery did not converge safely');
|
||||
throw new Error(
|
||||
'Cluster-control startup recovery did not converge safely ' +
|
||||
`(remaining=${recovery.remaining}, failed=${recovery.failed})`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ test('unsafe recovery stops the stack before lifecycles and admission', async ()
|
||||
},
|
||||
}),
|
||||
),
|
||||
/did not converge safely/,
|
||||
/did not converge safely \(remaining=1, failed=0\)/,
|
||||
);
|
||||
assert.equal(events.includes('start-lifecycles'), false);
|
||||
assert.equal(events.includes('install-admission'), false);
|
||||
|
||||
Reference in New Issue
Block a user