mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Fix osquery cypress tests (#163988)
## Summary Adjust tests to https://github.com/elastic/kibana/pull/161614 Split tests into smaller files to better utilize parallelization and increase the stability of tests
This commit is contained in:
parent
1b6430ece4
commit
fd33ed55fd
20 changed files with 1628 additions and 1662 deletions
|
@ -80,6 +80,7 @@ const uploadPipeline = (pipelineContent: string | object) => {
|
|||
getPipeline('.buildkite/pipelines/pull_request/security_solution_explore.yml')
|
||||
);
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/defend_workflows.yml'));
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/osquery_cypress.yml'));
|
||||
}
|
||||
|
||||
if (
|
||||
|
@ -200,7 +201,8 @@ const uploadPipeline = (pipelineContent: string | object) => {
|
|||
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/post_build.yml'));
|
||||
|
||||
uploadPipeline(pipeline.join('\n'));
|
||||
// remove duplicated steps
|
||||
uploadPipeline([...new Set(pipeline)].join('\n'));
|
||||
} catch (ex) {
|
||||
console.error('PR pipeline generation error', ex.message);
|
||||
process.exit(1);
|
||||
|
|
17
.buildkite/scripts/steps/functional/osquery_cypress_burn.sh
Executable file
17
.buildkite/scripts/steps/functional/osquery_cypress_burn.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
source .buildkite/scripts/common/util.sh
|
||||
source .buildkite/scripts/steps/functional/common_cypress.sh
|
||||
|
||||
.buildkite/scripts/bootstrap.sh
|
||||
node scripts/build_kibana_platform_plugins.js
|
||||
|
||||
export JOB=kibana-osquery-cypress
|
||||
|
||||
buildkite-agent meta-data set "${BUILDKITE_JOB_ID}_is_test_execution_step" 'false'
|
||||
|
||||
echo "--- Osquery Cypress tests, burning changed specs (Chrome)"
|
||||
|
||||
yarn --cwd x-pack/plugins/osquery cypress:changed-specs-only
|
Loading…
Add table
Add a link
Reference in a new issue