Skip to content

Commit

Permalink
[8.16] Fix/renovate pipeline (#204672) (#204829)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.16`:
- [Fix/renovate pipeline
(#204672)](#204672)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Brad
White","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-18T12:35:36Z","message":"Fix/renovate
pipeline (#204672)\n\n## Summary\n\nRenovate pipeline isn't being
uploaded to Buildkite properly and `pre`\nand `post` build steps were
not necessary and create errors with CI\nstats.\n\n[Successful
CI\nrun](https://buildkite.com/elastic/kibana-pull-request/builds/261627)","sha":"ecd4567ac6d0663756724f7a4ed34401a0873389","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","v9.0.0","backport:prev-major","v8.18.0","v8.17.1"],"title":"Fix/renovate
pipeline","number":204672,"url":"https://github.com/elastic/kibana/pull/204672","mergeCommit":{"message":"Fix/renovate
pipeline (#204672)\n\n## Summary\n\nRenovate pipeline isn't being
uploaded to Buildkite properly and `pre`\nand `post` build steps were
not necessary and create errors with CI\nstats.\n\n[Successful
CI\nrun](https://buildkite.com/elastic/kibana-pull-request/builds/261627)","sha":"ecd4567ac6d0663756724f7a4ed34401a0873389"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204672","number":204672,"mergeCommit":{"message":"Fix/renovate
pipeline (#204672)\n\n## Summary\n\nRenovate pipeline isn't being
uploaded to Buildkite properly and `pre`\nand `post` build steps were
not necessary and create errors with CI\nstats.\n\n[Successful
CI\nrun](https://buildkite.com/elastic/kibana-pull-request/builds/261627)","sha":"ecd4567ac6d0663756724f7a4ed34401a0873389"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/204743","number":204743,"state":"MERGED","mergeCommit":{"sha":"afa4fc9c94aa41de8fbff9364ceb8ef59be605f5","message":"[8.x]
Fix/renovate pipeline (#204672) (#204743)\n\n# Backport\n\nThis will
backport the following commits from `main` to `8.x`:\n- [Fix/renovate
pipeline\n(#204672)](https://github.com/elastic/kibana/pull/204672)\n\n<!---
Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Brad\nWhite\",\"email\":\"[email protected]\"},\"sourceCommit\":{\"committedDate\":\"2024-12-18T12:35:36Z\",\"message\":\"Fix/renovate\npipeline
(#204672)\\n\\n## Summary\\n\\nRenovate pipeline isn't being\nuploaded
to Buildkite properly and `pre`\\nand `post` build steps were\nnot
necessary and create errors with
CI\\nstats.\\n\\n[Successful\nCI\\nrun](https://buildkite.com/elastic/kibana-pull-request/builds/261627)\",\"sha\":\"ecd4567ac6d0663756724f7a4ed34401a0873389\",\"branchLabelMapping\":{\"^v9.0.0$\":\"main\",\"^v8.18.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"Team:Operations\",\"release_note:skip\",\"v9.0.0\",\"backport:prev-major\"],\"title\":\"Fix/renovate\npipeline\",\"number\":204672,\"url\":\"https://github.com/elastic/kibana/pull/204672\",\"mergeCommit\":{\"message\":\"Fix/renovate\npipeline
(#204672)\\n\\n## Summary\\n\\nRenovate pipeline isn't being\nuploaded
to Buildkite properly and `pre`\\nand `post` build steps were\nnot
necessary and create errors with
CI\\nstats.\\n\\n[Successful\nCI\\nrun](https://buildkite.com/elastic/kibana-pull-request/builds/261627)\",\"sha\":\"ecd4567ac6d0663756724f7a4ed34401a0873389\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v9.0.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/204672\",\"number\":204672,\"mergeCommit\":{\"message\":\"Fix/renovate\npipeline
(#204672)\\n\\n## Summary\\n\\nRenovate pipeline isn't being\nuploaded
to Buildkite properly and `pre`\\nand `post` build steps were\nnot
necessary and create errors with
CI\\nstats.\\n\\n[Successful\nCI\\nrun](https://buildkite.com/elastic/kibana-pull-request/builds/261627)\",\"sha\":\"ecd4567ac6d0663756724f7a4ed34401a0873389\"}}]}]\nBACKPORT-->\n\nCo-authored-by:
Brad White
<[email protected]>"}},{"branch":"8.17","label":"v8.17.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/204742","number":204742,"state":"MERGED","mergeCommit":{"sha":"8db1b876ec072ca381ae96905a961f1a53af47ba","message":"[8.17]
Fix/renovate pipeline (#204672) (#204742)\n\n# Backport\n\nThis will
backport the following commits from `main` to `8.17`:\n- [Fix/renovate
pipeline\n(#204672)](https://github.com/elastic/kibana/pull/204672)\n\n<!---
Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Brad\nWhite\",\"email\":\"[email protected]\"},\"sourceCommit\":{\"committedDate\":\"2024-12-18T12:35:36Z\",\"message\":\"Fix/renovate\npipeline
(#204672)\\n\\n## Summary\\n\\nRenovate pipeline isn't being\nuploaded
to Buildkite properly and `pre`\\nand `post` build steps were\nnot
necessary and create errors with
CI\\nstats.\\n\\n[Successful\nCI\\nrun](https://buildkite.com/elastic/kibana-pull-request/builds/261627)\",\"sha\":\"ecd4567ac6d0663756724f7a4ed34401a0873389\",\"branchLabelMapping\":{\"^v9.0.0$\":\"main\",\"^v8.18.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"Team:Operations\",\"release_note:skip\",\"v9.0.0\",\"backport:prev-major\"],\"title\":\"Fix/renovate\npipeline\",\"number\":204672,\"url\":\"https://github.com/elastic/kibana/pull/204672\",\"mergeCommit\":{\"message\":\"Fix/renovate\npipeline
(#204672)\\n\\n## Summary\\n\\nRenovate pipeline isn't being\nuploaded
to Buildkite properly and `pre`\\nand `post` build steps were\nnot
necessary and create errors with
CI\\nstats.\\n\\n[Successful\nCI\\nrun](https://buildkite.com/elastic/kibana-pull-request/builds/261627)\",\"sha\":\"ecd4567ac6d0663756724f7a4ed34401a0873389\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v9.0.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/204672\",\"number\":204672,\"mergeCommit\":{\"message\":\"Fix/renovate\npipeline
(#204672)\\n\\n## Summary\\n\\nRenovate pipeline isn't being\nuploaded
to Buildkite properly and `pre`\\nand `post` build steps were\nnot
necessary and create errors with
CI\\nstats.\\n\\n[Successful\nCI\\nrun](https://buildkite.com/elastic/kibana-pull-request/builds/261627)\",\"sha\":\"ecd4567ac6d0663756724f7a4ed34401a0873389\"}}]}]\nBACKPORT-->\n\nCo-authored-by:
Brad White <[email protected]>"}}]}] BACKPORT-->

Co-authored-by: Brad White <[email protected]>
  • Loading branch information
kibanamachine and Ikuni17 authored Dec 18, 2024
1 parent 7cf56ea commit 92f15a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
8 changes: 0 additions & 8 deletions .buildkite/pipelines/pull_request/renovate.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
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:
Expand Down
7 changes: 4 additions & 3 deletions .buildkite/scripts/pipelines/pull_request/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@ const getPipeline = (filename: string, removeSteps = true) => {
return;
}

pipeline.push(getAgentImageConfig({ returnYaml: true }));

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.');

console.log([...new Set(pipeline)].join('\n'));
return;
}

pipeline.push(getAgentImageConfig({ returnYaml: true }));
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/base.yml', false));

if (await doAnyChangesMatch([/^packages\/kbn-handlebars/])) {
Expand Down

0 comments on commit 92f15a9

Please sign in to comment.