Skip to content

Commit 1f5c7f7

Browse files
committed
ci: skip reporting about tests that use canary only features when testing stable
1 parent 21bb071 commit 1f5c7f7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/deno/junit2json.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ function junitToJson(xmlData: { testsuites: JUnitTestSuites }): Array<TestSuite>
117117
if (skippedTestsForFile?.some(({ name }) => name === testCase['@name'])) {
118118
continue
119119
}
120+
121+
// skip reporting on tests that even fail to deploy because they rely on experiments not available
122+
// in currently tested version
123+
if (testCase.failure?.includes('CanaryOnlyError')) {
124+
continue
125+
}
126+
120127
const status = testCase.failure ? 'failed' : 'passed'
121128
const test: TestCase = {
122129
name: testCase['@name'],

0 commit comments

Comments
 (0)