Migrate instances when draining and verify hosts before enabling

This commit is contained in:
2026-10-05 14:21:48 -04:00
parent a142f06c77
commit 16a5bc3534
20 changed files with 525 additions and 78 deletions
+3 -3
View File
@@ -218,7 +218,7 @@ describe('asynchronous native launch preparation', () => {
expect(await operationFor(second.deploymentId)).toBeUndefined();
});
it('keeps a prepared launch queued if its host is disabled before dispatch', async () => {
it('keeps a prepared launch queued while its host is disabled or re-enabling', async () => {
const job = await queue();
const paused = await pausePreparation();
const pass = runPass();
@@ -228,9 +228,9 @@ describe('asynchronous native launch preparation', () => {
paused.release();
await pass;
expect(await operationFor(job.deploymentId)).toBeUndefined();
updateHost(hostId, { mode: 'active' });
expect(updateHost(hostId, { mode: 'active' })).toMatchObject({ mode: 'disabled', readiness: 'preparing' });
await runPass();
expect(await operationFor(job.deploymentId)).toBeDefined();
expect(await operationFor(job.deploymentId)).toBeUndefined();
});
it('rechecks a reduced startup limit before submitting prepared files', async () => {