test(ci): harden release failure paths

This commit is contained in:
Peter Steinberger
2026-04-29 06:41:22 +01:00
parent a7c3755327
commit 5580d8951c
4 changed files with 17 additions and 4 deletions

View File

@@ -943,9 +943,8 @@ export async function runMatrixQaLive(params: {
} finally {
if (gatewayHarness) {
try {
const shouldPreserveGatewayDebugArtifacts = scenarioResults.some(
(scenario) => scenario?.status === "fail",
);
const shouldPreserveGatewayDebugArtifacts =
scenarioResults.some((scenario) => scenario?.status === "fail") || canaryFailed;
preservedGatewayDebugDirPath = shouldPreserveGatewayDebugArtifacts
? path.join(outputDir, "gateway-debug")
: undefined;