🧹 refactor: Consolidate Channel and Response Contracts (#17705)

* refactor: consolidate unreleased channel and response contracts

* test: align gateway process smoke with current bundle

* fix: retain dispatch acknowledgement identity across pauses

* test: align remaining fixtures with initial channel contracts

* test: align admin integration fixture lifecycles
This commit is contained in:
Dustin Healy 2026-11-10 21:04:06 -08:00 • committed by GitHub
parent ff127a7951
commit f70aff8420
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
78 changed files with 772 additions and 1732 deletions

View file

@ -80,8 +80,9 @@ jobs:
const { createHmac } = require('node:crypto');
const { setTimeout: delay } = require('node:timers/promises');
const bundle = {
delivery: { maxDeliveryParts: 100 },
channel: { channelId: 'fixture', tenantId: 'fixture', agentId: 'agent_fixture', createdBy: 'owner', type: 'slack', status: 'active', revision: 'fixture', slack: { teamId: 'T1', appId: 'A1', botUserId: 'U1' } },
gateway: { version: 1, transport: 'webhook', nativeSessions: false, lifecycleReactions: false, signatureToleranceSeconds: 300 },
gateway: { version: 1, transport: 'webhook', nativeSessions: false, lifecycleReactions: false, signatureToleranceSeconds: 300, socketReconnectDelayMs: 5000 },
credentials: { botToken: 'fixture', signingSecret: 'fixture-signing' }, agent: { id: 'agent_fixture' },
};
const backend = http.createServer((req, res) => {
@ -115,7 +116,8 @@ jobs:
child.kill('SIGTERM');
if (await exited !== 0) throw new Error('Gateway did not exit cleanly');
console.log('Standalone gateway became healthy and stopped cleanly.');
} catch {
} catch (error) {
console.error(error.message);
child.kill('SIGKILL'); process.exitCode = 1;
} finally {
clearTimeout(deadline); backend.closeAllConnections(); backend.close();