ci: Improve Flaky Test Debugging and CAT-726 Fix (no-changelog) (#14298)

This commit is contained in:
shortstacked
2025-04-02 09:04:05 +01:00
committed by GitHub
parent a39502f3bb
commit 1e4541603f
13 changed files with 146 additions and 7 deletions

View File

@@ -85,6 +85,33 @@ switch (scenario) {
},
});
break;
case 'debugFlaky': {
const filter = process.argv[3];
const burnCount = process.argv[4] || 5;
const envArgs = [`burn=${burnCount}`];
if (filter) {
envArgs.push(`grep=${filter}`);
envArgs.push(`grepFilterSpecs=true`);
}
const envString = envArgs.join(',');
const testCommand = `cypress run --headless --env "${envString}"`;
console.log(`Executing test command: ${testCommand}`);
runTests({
startCommand: 'start',
url: 'http://localhost:5678/favicon.ico',
testCommand: testCommand,
customEnv: {
CYPRESS_NODE_VIEW_VERSION: 2,
},
failFast: true,
});
break;
}
default:
console.error('Unknown scenario');
process.exit(1);