chore(test): вынести 14 самодостаточных приёмок из основного набора MCP, объединить шарды

- шард misc: 14 приёмок, которые создают свои серверы и проходят в чистой БД
  (BGP, фильтры, аптайм, путь, артефакты логов, live-трафик, контекст пути,
  management transport, сохранение и CREATE ID); verifyMcpAlertsOutbox зависит от
  состояния основного набора и остался в нём;
- шарды scoped forward+inverse и WireGuard объединены: меньше процессов спорят за CPU;
- acceptance-shard.test.ts при MCP_INTEGRATION_CONTINUE=1 продолжает после отказа
  и перечисляет все упавшие приёмки;
- mcp-host-files: в сообщение отказа добавлен error_code (один нестабильный отказ
  rejected до отправки за 4 прогона, причина не установлена).

Замер: основной набор отдельно 180-277 с (разброс машины до 30%), шарды 93-144 с;
149 строк результатов на месте.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
DenozordecandClaude Opus 5.5 committed 2026-11-19 15:11:47 +07:00
1 parent 171c0e6162
commit 1e96ddac79
5 files changed
+39 -21

No files matched your search

@@ -5,13 +5,13 @@
import { spawn } from 'node:child_process'
import { fileURLToPath } from 'node:url'
// Grouped by measured duration (2026-11-19): each shard ~110-190 s, the primary ~320 s.
// Grouped by measured duration (2026-11-19, after the service speed-ups): each shard ~60-150 s,
// the primary ~220 s. Fewer, fuller shards leave more CPU to the primary.
const shards = {
'scoped-forward': ['acceptScopedRouteCommunitySwitch:forward'],
'scoped-inverse': ['acceptScopedRouteCommunitySwitch:inverse'],
'scoped-forward-inverse': ['acceptScopedRouteCommunitySwitch:forward', 'acceptScopedRouteCommunitySwitch:inverse'],
'scoped-route-ai': ['acceptScopedRouteCommunitySwitch:route-ai'],
'wireguard-create': ['acceptWireguardInterfaceCreation', 'acceptRouteCommunityContextMcp', 'acceptWireguardPeerCreation'],
'wireguard-change': ['acceptWireguardInterfaceUpdate', 'acceptWireguardImport'],
wireguard: ['acceptWireguardInterfaceCreation', 'acceptRouteCommunityContextMcp', 'acceptWireguardPeerCreation', 'acceptWireguardInterfaceUpdate', 'acceptWireguardImport'],
misc: ['verifyMcpBgpExport', 'verifyMcpBgpFilterBinding', 'verifyMcpBgpCommunityPolicy', 'verifyMcpBgpPrefixes', 'verifyMcpFilterWrites', 'verifyMcpUptimeOverview', 'verifyMcpPathCompletion', 'verifyMcpLogArtifacts', 'verifyMcpFlowLive', 'verifyMcpControlPathContext', 'acceptManagementTransport', 'acceptRouteCommunityContextCompatibilityMcp', 'acceptNativeConservation', 'acceptNativeCreateId'],
'overlay-ipsec': ['verifyMcpFlowOverlay', 'acceptWireguardInterfaceDeletion', 'acceptIpsecPeerDeletion', 'acceptIpsecUserDeletion', 'acceptIpsecCertificateDeletion', 'acceptIpsecPeerUpdate'],
}
const harness = fileURLToPath(new URL('./test-mcp-postgres.mjs', import.meta.url))