Skip to content

Commit 5393a45

Browse files
authored
[Synthetics] Enable synthetics e2e in flaky test runner !! (#210778)
## Summary Enable synthetics e2e in flaky test runner !! ![image](https://github.com/user-attachments/assets/d21dd0bf-e9b7-4a18-9568-22bfe09e67fd)
1 parent 7683f01 commit 5393a45

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.buildkite/pipelines/flaky_tests/groups.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@
103103
{
104104
"key": "cypress/cloud_security_posture_serverless",
105105
"name": "[Serverless] Cloud Security Posture - Cypress"
106+
},
107+
{
108+
"key": "elastic_synthetics/synthetics_plugin",
109+
"name": "Synthetics plugin e2e tests - Elastic/Synthetics"
106110
}
107111
]
108-
}
112+
}

.buildkite/pipelines/flaky_tests/pipeline.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,31 @@ for (const testSuite of testSuites) {
193193
},
194194
});
195195
break;
196+
case 'elastic_synthetics':
197+
const synthGroup = groups.find((g) => g.key === testSuite.key);
198+
if (!synthGroup) {
199+
throw new Error(
200+
`Group configuration was not found in groups.json for the following synthetics suite: {${suiteName}}.`
201+
);
202+
}
203+
steps.push({
204+
command: `.buildkite/scripts/steps/functional/${suiteName}.sh`,
205+
label: synthGroup.name,
206+
agents: expandAgentQueue('n2-4-spot'),
207+
key: `synthetics-suite-${suiteIndex++}`,
208+
depends_on: 'build',
209+
timeout_in_minutes: 30,
210+
parallelism: testSuite.count,
211+
concurrency,
212+
concurrency_group: process.env.UUID,
213+
concurrency_method: 'eager',
214+
cancel_on_build_failing: true,
215+
retry: {
216+
automatic: [{ exit_status: '-1', limit: 3 }],
217+
},
218+
});
219+
break;
220+
196221
default:
197222
throw new Error(`unknown test suite: ${testSuite.key}`);
198223
}

0 commit comments

Comments
 (0)