diff --git a/.buildkite/pipelines/pull_request/renovate.yml b/.buildkite/pipelines/pull_request/renovate.yml new file mode 100644 index 0000000000000..6925bb4882376 --- /dev/null +++ b/.buildkite/pipelines/pull_request/renovate.yml @@ -0,0 +1,34 @@ +steps: + # - command: .buildkite/scripts/lifecycle/pre_build.sh + # label: Pre-Build + # timeout_in_minutes: 10 + # agents: + # machineType: n2-standard-2 + + # - wait + + # - command: .buildkite/scripts/steps/build_kibana.sh + # label: Build Kibana Distribution + # agents: + # machineType: n2-standard-8 + # preemptible: true + # diskSizeGb: 125 + # key: build + # if: "build.env('KIBANA_BUILD_ID') == null || build.env('KIBANA_BUILD_ID') == ''" + # timeout_in_minutes: 90 + # retry: + # automatic: + # - exit_status: '-1' + # limit: 3 + + - command: .buildkite/scripts/steps/quick_checks.sh + label: 'Quick Checks' + agents: + machineType: n2-highcpu-8 + preemptible: true + key: quick_checks + timeout_in_minutes: 60 + retry: + automatic: + - exit_status: '-1' + limit: 3 diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index ad71f70258a23..b63b6defb3e9f 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -39,6 +39,13 @@ const getPipeline = (filename: string, removeSteps = true) => { return; } + const onlyRunQuickChecks = await areChangesSkippable([/^renovate\.json$/], REQUIRED_PATHS); + if (onlyRunQuickChecks) { + pipeline.push(getPipeline('.buildkite/pipelines/pull_request/renovate.yml')); + console.log('Isolated changes to renovate.json. Skipping main PR pipeline.'); + return; + } + pipeline.push(getAgentImageConfig({ returnYaml: true })); pipeline.push(getPipeline('.buildkite/pipelines/pull_request/base.yml', false));