mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-18 05:52:10 +00:00
🧹 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:
parent
ff127a7951
commit
f70aff8420
78 changed files with 772 additions and 1732 deletions
6
.github/workflows/channel-gateway.yml
vendored
6
.github/workflows/channel-gateway.yml
vendored
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue