Skip to content

Commit

Permalink
Only run quick checks for changes to renovate.json
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego committed Dec 5, 2024
1 parent 2ae1dd4 commit 6eb8cb9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .buildkite/pipelines/pull_request/renovate.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions .buildkite/scripts/pipelines/pull_request/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 6eb8cb9

Please sign in to comment.