mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Security Solution][CI Stats] - Add cypress tests to flaky test runner (#127293)
This commit is contained in:
parent
5233e74e87
commit
2dc753b262
2 changed files with 33 additions and 0 deletions
|
@ -13,6 +13,18 @@
|
|||
"key": "oss/accessibility",
|
||||
"name": "OSS Accessibility"
|
||||
},
|
||||
{
|
||||
"key": "xpack/cypress/security_solution",
|
||||
"name": "Security Solution - Cypress"
|
||||
},
|
||||
{
|
||||
"key": "xpack/cypress/osquery_cypress",
|
||||
"name": "Osquery - Cypress"
|
||||
},
|
||||
{
|
||||
"key": "xpack/cypress/fleet_cypress",
|
||||
"name": "Fleet - Cypress"
|
||||
},
|
||||
{
|
||||
"key": "xpack/cigroup",
|
||||
"name": "Default CI Group",
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
*/
|
||||
|
||||
const { execSync } = require('child_process');
|
||||
const groups = /** @type {Array<{key: string, name: string, ciGroups: number }>} */ (
|
||||
require('./groups.json').groups
|
||||
);
|
||||
|
||||
const concurrency = 25;
|
||||
const defaultCount = concurrency * 2;
|
||||
|
@ -183,6 +186,24 @@ for (const testSuite of testSuites) {
|
|||
concurrency_group: UUID,
|
||||
concurrency_method: 'eager',
|
||||
});
|
||||
case 'cypress':
|
||||
const CYPRESS_SUITE = CI_GROUP;
|
||||
const group = groups.find((group) => group.key.includes(CYPRESS_SUITE));
|
||||
if (!group) {
|
||||
throw new Error(
|
||||
`Group configuration was not found in groups.json for the following cypress suite: {${CYPRESS_SUITE}}.`
|
||||
);
|
||||
}
|
||||
steps.push({
|
||||
command: `.buildkite/scripts/steps/functional/${CYPRESS_SUITE}.sh`,
|
||||
label: group.name,
|
||||
agents: { queue: 'ci-group-6' },
|
||||
depends_on: 'build',
|
||||
parallelism: RUN_COUNT,
|
||||
concurrency: concurrency,
|
||||
concurrency_group: UUID,
|
||||
concurrency_method: 'eager',
|
||||
});
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue