Remove Komodo backend in favor of native hosts

This commit is contained in:
2026-10-05 18:07:07 -04:00
parent 701066aaf8
commit 4b0f341d64
116 changed files with 557 additions and 8132 deletions
+4 -4
View File
@@ -22,9 +22,9 @@ describe('provisioning detail projection', () => {
it('keeps legacy full activity while the page and opt-in API return a bounded snapshot without probing', async () => {
const history = await import('../../src/lib/server/provisioning/history.js');
const komodo = await import('../../src/lib/server/integrations/komodo.js');
const backend = await import('../../src/lib/server/backends/native.js');
const rcon = await import('../../src/lib/server/integrations/rcon.js');
const inspect = vi.spyOn(komodo, 'komodoInspectHealthy');
const inspect = vi.spyOn(backend, 'nativeHealth');
const status = vi.spyOn(rcon, 'rconStatusResult');
const id = history.beginDeployment('t5_zombie_theater_1', 'create');
for (let index = 0; index < 40; index++) history.recordDeploymentEvent(id, `Recorded activity ${index}`);
@@ -73,7 +73,7 @@ describe('provisioning detail projection', () => {
it('correlates reservations by operation ID without assigning a later same-name slot to historical work', async () => {
const { db } = await import('../../src/lib/server/db/index.js');
const { beginDeployment, getDeployment, finishDeployment } = await import('../../src/lib/server/provisioning/history.js');
db().prepare("INSERT INTO servers (name,komodo_name) VALUES ('server','server')").run();
db().prepare("INSERT INTO servers (name) VALUES ('server')").run();
const old = beginDeployment('server', 'restart');
finishDeployment(old, { ok: false, message: 'Timeout' });
const current = beginDeployment('server', 'restart');
@@ -104,7 +104,7 @@ describe('provisioning detail projection', () => {
it('preserves a failure outcome and evidence before an observation-only same-ID resume', async () => {
const { db } = await import('../../src/lib/server/db/index.js');
const history = await import('../../src/lib/server/provisioning/history.js');
db().prepare("INSERT INTO servers (name,komodo_name,game_port) VALUES ('server','server',28960)").run();
db().prepare("INSERT INTO servers (name,game_port) VALUES ('server',28960)").run();
const id = history.beginDeployment('server', 'create');
db().prepare("INSERT INTO server_creation_jobs VALUES (?, 'server',28960,'zombie','theater','zombie_theater')").run(id);
history.deploymentStage(id, 'Waiting for game evidence', { phase: 'verify-game', checks: [