Skip to content

Commit dd7600a

Browse files
mpyssonCopilot
andcommitted
Merged PR 905243: Filter [SKIP] lines from xunit v3 test error output
fix: filter [SKIP] lines from xunit v3 test error output Add errorRegex to the xunit v3 test pip to exclude [SKIP] test result lines and their hash-bucket skip reasons from error output. Without this, every output line is reported as ##[error] when a pip fails, flooding ADO logs with hundreds of irrelevant skip messages. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4c1d903 commit dd7600a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Public/Sdk/SelfHost/BuildXL/Testing/XUnitV3/xunitv3framework.dsc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ function runStandaloneV3(args : Managed.TestRunArguments) : File[] {
251251
}],
252252
dependencies: args.untrackTestDirectory ? testDeployment.contents.contents : [ testDeployment.contents, ...(testDeployment.targetOpaques || []) ],
253253
warningRegex: "^(?=a)b",
254+
// Filter out xunit v3 [SKIP] lines and their "Test filtered out by hash bucket" reasons
255+
// from error output. Without this, every output line is reported as ##[error] when a pip
256+
// fails, flooding ADO logs with hundreds of irrelevant skip messages.
257+
errorRegex: "^(?!.*\\[SKIP\\])(?!\\s+Test filtered out by hash bucket)",
254258
workingDirectory: testDeployment.contents.root,
255259
retryExitCodes: Environment.getFlag("RetryXunitTests") ? [1, 3] : [],
256260
processRetries: Environment.hasVariable("NumXunitRetries") ? Environment.getNumberValue("NumXunitRetries") : undefined,

0 commit comments

Comments
 (0)