From 87dc6a3e0507d1f8480a988e2dee92878df9a477 Mon Sep 17 00:00:00 2001 From: Gloria Hornero Date: Thu, 28 Dec 2023 07:44:09 +0100 Subject: [PATCH 1/3] updating investigations dependencies --- .../pipelines/pull_request/pipeline.ts | 29 +++++++++++++++++-- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index f9eab6138834c..35a4daa7c8d05 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -232,14 +232,37 @@ const uploadPipeline = (pipelineContent: string | object) => { getPipeline('.buildkite/pipelines/pull_request/security_solution/entity_analytics.yml') ); pipeline.push(getPipeline('.buildkite/pipelines/pull_request/security_solution/explore.yml')); - pipeline.push( - getPipeline('.buildkite/pipelines/pull_request/security_solution/investigations.yml') - ); pipeline.push( getPipeline('.buildkite/pipelines/pull_request/security_solution/rule_management.yml') ); } + if ( + (await doAnyChangesMatch([ + /^package.json/, + /^packages\/kbn-securitysolution-.*/, + /^x-pack\/plugins\/alerting/, + /^x-pack\/plugins\/data_views\/common/, + /^x-pack\/plugins\/lists/, + /^x-pack\/plugins\/rule_registry\/common/, + /^x-pack\/plugins\/security_solution/, + /^x-pack\/plugins\/security_solution_ess/, + /^x-pack\/plugins\/security_solution_serverless/, + /^x-pack\/plugins\/task_manager/, + /^x-pack\/plugins\/timelines/, + /^x-pack\/plugins\/triggers_actions_ui\/public\/application\/sections\/alerts_table/, + /^x-pack\/plugins\/usage_collection\/public/, + /^x-pack\/plugins\/elastic_assistant/, + /^x-pack\/packages\/security-solution/, + /^x-pack\/packages\/kbn-elastic-assistant/, + /^x-pack\/packages\/kbn-elastic-assistant-common/, + /^x-pack\/test\/security_solution_cypress/, + ])) || + GITHUB_PR_LABELS.includes('ci:all-cypress-suites') + ) { + getPipeline('.buildkite/pipelines/pull_request/security_solution/investigations.yml'); + } + pipeline.push(getPipeline('.buildkite/pipelines/pull_request/post_build.yml')); // remove duplicated steps From 80096844134ee7b1723805aaf8dfadcf1b3d9b0b Mon Sep 17 00:00:00 2001 From: Gloria Hornero Date: Thu, 28 Dec 2023 13:35:45 +0100 Subject: [PATCH 2/3] Update .buildkite/scripts/pipelines/pull_request/pipeline.ts Co-authored-by: Jon --- .buildkite/scripts/pipelines/pull_request/pipeline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 35a4daa7c8d05..388f3e578cbbf 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -260,7 +260,7 @@ const uploadPipeline = (pipelineContent: string | object) => { ])) || GITHUB_PR_LABELS.includes('ci:all-cypress-suites') ) { - getPipeline('.buildkite/pipelines/pull_request/security_solution/investigations.yml'); + pipeline.push(getPipeline('.buildkite/pipelines/pull_request/security_solution/investigations.yml')); } pipeline.push(getPipeline('.buildkite/pipelines/pull_request/post_build.yml')); From 7f548268ca2021a041ac6e32944113578983cacc Mon Sep 17 00:00:00 2001 From: Gloria Hornero Date: Thu, 28 Dec 2023 13:43:57 +0100 Subject: [PATCH 3/3] fixes checks issue --- .buildkite/scripts/pipelines/pull_request/pipeline.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 388f3e578cbbf..ca0a83616492e 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -260,7 +260,9 @@ const uploadPipeline = (pipelineContent: string | object) => { ])) || GITHUB_PR_LABELS.includes('ci:all-cypress-suites') ) { - pipeline.push(getPipeline('.buildkite/pipelines/pull_request/security_solution/investigations.yml')); + pipeline.push( + getPipeline('.buildkite/pipelines/pull_request/security_solution/investigations.yml') + ); } pipeline.push(getPipeline('.buildkite/pipelines/pull_request/post_build.yml'));