Only run quick checks for changes to renovate.json (#203153)

## Summary

Introduces a new `renovate` CI pipeline to only run quick checks for PRs
which only adjust the `renovate.json` configuration file.
This commit is contained in:
Larry Gregory 2024-12-17 08:59:43 -05:00 committed by GitHub
parent 98fe2dcd3a
commit 591d640b1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,20 @@
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/renovate.sh
label: 'Renovate validation'
agents:
machineType: n2-highcpu-8
preemptible: true
key: renovate_validation
timeout_in_minutes: 60
retry:
automatic:
- exit_status: '-1'
limit: 3

View file

@ -39,6 +39,14 @@ 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', false));
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/post_build.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));

View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
echo '--- Renovate: validation'
.buildkite/scripts/steps/checks/renovate.sh