Revert "merge: integrate extension auto-update"
This reverts commit322475860a, reversing changes made tof52d9d7413.
This commit is contained in:
1 parent
b2e33e2e5d
commit
81a0cdac8e
47 files changed
+169
-3108
No files matched your search
@@ -71,37 +71,6 @@ test('AgentBus account-worker migration adds fail-closed channel, task, browser,
|
||||
assert.match(sql, /owner_user_id IS NULL[\s\S]+enabled = true/);
|
||||
});
|
||||
|
||||
test('extension host migration binds accounts to ECS and persists release/update state without a host daemon', async () => {
|
||||
const [sql, server, tasks, extensionUpdates] = await Promise.all([
|
||||
source('../migrations/019_extension_host_updates.sql'),
|
||||
source('../src/server.ts'),
|
||||
source('../src/task-service.ts'),
|
||||
source('../src/extension-updates.ts')
|
||||
]);
|
||||
assert.match(sql, /extension_ecs_region_id/);
|
||||
assert.match(sql, /extension_ecs_instance_id/);
|
||||
assert.match(sql, /CREATE TABLE IF NOT EXISTS extension_releases/);
|
||||
assert.match(sql, /CREATE TABLE IF NOT EXISTS extension_host_updates/);
|
||||
assert.match(sql, /waiting_for_idle/);
|
||||
assert.doesNotMatch(sql, /DELETE\s+FROM/i);
|
||||
assert.match(server, /\/api\/extension-updates\/releases/);
|
||||
assert.match(server, /extension_update_safe/);
|
||||
assert.match(tasks, /requireExtensionHostAvailable/);
|
||||
assert.match(tasks, /extension_update_required/);
|
||||
assert.match(tasks, /compareExtensionVersions/);
|
||||
assert.match(tasks, /attempt\.status IN \('accepted', 'running', 'reconciliation_pending'\)/);
|
||||
assert.match(extensionUpdates, /class AliyunEcsCloudAssistantClient/);
|
||||
assert.match(extensionUpdates, /type: 'RunPowerShellScript'/);
|
||||
assert.match(extensionUpdates, /Get-FileHash/);
|
||||
assert.match(extensionUpdates, /EXTENSION_WINDOWS_INSTALL_PATH/);
|
||||
assert.match(extensionUpdates, /安全完成已启动的上一版本部署/);
|
||||
assert.match(extensionUpdates, /id = \$2 AND is_active = true/);
|
||||
assert.match(extensionUpdates, /\$\{inspected\.sha256\}/);
|
||||
assert.match(extensionUpdates, /clientToken: createHash\('sha256'\)/);
|
||||
assert.doesNotMatch(extensionUpdates, /clientToken: randomUUID\(\)/);
|
||||
assert.doesNotMatch(extensionUpdates, /setInterval\(/);
|
||||
});
|
||||
|
||||
test('AgentBus channel keys and owners are unique so one inbound identity cannot fan out to multiple employees', async () => {
|
||||
const channels = await source('../src/agentbus-channels.ts');
|
||||
assert.match(channels, /requireAssignableOwner/);
|
||||
|
||||
Reference in new issue
Block a user