From 1f5c7f7a1c2a445f914784f02f3647e21b1a4a2e Mon Sep 17 00:00:00 2001 From: pieh Date: Thu, 24 Oct 2024 12:01:36 +0200 Subject: [PATCH] ci: skip reporting about tests that use canary only features when testing stable --- tools/deno/junit2json.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/deno/junit2json.ts b/tools/deno/junit2json.ts index d1c133ebf..d38847056 100644 --- a/tools/deno/junit2json.ts +++ b/tools/deno/junit2json.ts @@ -117,6 +117,13 @@ function junitToJson(xmlData: { testsuites: JUnitTestSuites }): Array if (skippedTestsForFile?.some(({ name }) => name === testCase['@name'])) { continue } + + // skip reporting on tests that even fail to deploy because they rely on experiments not available + // in currently tested version + if (testCase.failure?.includes('CanaryOnlyError')) { + continue + } + const status = testCase.failure ? 'failed' : 'passed' const test: TestCase = { name: testCase['@name'],