Rebuild beta and campaign file activations
This commit is contained in:
@@ -22,7 +22,7 @@ vi.mock('../../src/lib/server/provisioning/worker.js', () => ({
|
||||
await import('../../src/lib/server/fleet/status-evidence.js');
|
||||
const jobs = db()
|
||||
.prepare(
|
||||
"SELECT id,server,state FROM server_deployments WHERE action='restart' AND state IN ('waiting','awaiting-health')"
|
||||
"SELECT id,server,state FROM server_deployments WHERE action IN ('restart','rebuild') AND state IN ('waiting','awaiting-health')"
|
||||
)
|
||||
.all() as { id: string; server: string; state: string }[];
|
||||
for (const job of jobs) {
|
||||
@@ -243,7 +243,7 @@ describe('durable beta test plans', () => {
|
||||
expect(getScript(file.script_id)?.current_version_id).toBe(replacement);
|
||||
});
|
||||
|
||||
it('waits for occupied telemetry to clear before restarting a beta despite an empty RCON response', async () => {
|
||||
it('waits for occupied telemetry to clear before rebuilding a beta despite an empty RCON response', async () => {
|
||||
const id = await openPlan(defaultPlan());
|
||||
const { listBetaServers } = await import('../../src/lib/server/fleet/beta.js');
|
||||
await postTelemetry(gameEvent('heartbeat', 4, 2));
|
||||
@@ -437,7 +437,7 @@ describe('durable beta test plans', () => {
|
||||
await expect(promoteBeta(id)).rejects.toThrow();
|
||||
});
|
||||
|
||||
it('automatically rolls back only the deployed wave and queues safe rollback restarts', async () => {
|
||||
it('automatically rolls back only the deployed wave and queues safe rollback rebuilds', async () => {
|
||||
await writeFile(scriptPath(names[0]), 'original');
|
||||
const id = await openPlan(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user