Skip to content

[ci] Trigger VM image rebuild for cache rebuild only#213497

Merged
delanni merged 5 commits intoelastic:mainfrom
delanni:vm-images-cache
Mar 10, 2025
Merged

[ci] Trigger VM image rebuild for cache rebuild only#213497
delanni merged 5 commits intoelastic:mainfrom
delanni:vm-images-cache

Conversation

@delanni
Copy link
Contributor

@delanni delanni commented Mar 6, 2025

Summary

When VM image rebuild is triggered after ES promotion, only the cache warmup should be built.

This PR also separates the daily full build to a daily base + cache build (in case ES promotions are failing for some reason, we should still have a daily cache refresh).

Requires: https://github.com/elastic/ci-agent-images/pull/1295

With this, we'd run a daily base image build and cache build (~40m + 25m) + cache warmups for every promotion (~4x 25m) instead of a full build and promotion per build (~4x 55m). Ultimately not that much of a gain 🤷 (4*55=220m => 40+5x25=165m)

@delanni delanni changed the title trigger VM image rebuild with cache rebuild only [ci] Trigger VM image rebuild for cache rebuild only Mar 6, 2025
@delanni delanni added skip-ci backport:prev-minor release_note:skip Skip the PR/issue when compiling release notes labels Mar 6, 2025
@delanni delanni marked this pull request as ready for review March 6, 2025 23:06
@delanni delanni requested a review from a team as a code owner March 6, 2025 23:06
@delanni delanni enabled auto-merge (squash) March 10, 2025 09:28
@delanni delanni disabled auto-merge March 10, 2025 09:56
@delanni delanni merged commit 830dbd4 into elastic:main Mar 10, 2025
8 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.17, 8.18, 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13761759136

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 10, 2025
## Summary
When VM image rebuild is triggered after ES promotion, only the cache
warmup should be built.

This PR also separates the daily full build to a daily base + cache
build (in case ES promotions are failing for some reason, we should
still have a daily cache refresh).

Requires: elastic/ci-agent-images#1295

With this, we'd run a daily base image build and cache build (~40m +
25m) + cache warmups for every promotion (~4x 25m) instead of a full
build and promotion per build (~4x 55m). Ultimately not that much of a
gain 🤷 (4*55=220m => 40+5x25=165m)

(cherry picked from commit 830dbd4)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.16 Backport failed because of merge conflicts
8.17 Backport failed because of merge conflicts
8.18 Backport failed because of merge conflicts
8.x Backport failed because of merge conflicts
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 213497

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Mar 10, 2025
…213697)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[ci] Trigger VM image rebuild for cache rebuild only
(#213497)](#213497)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"alex.szabo@elastic.co"},"sourceCommit":{"committedDate":"2025-03-10T09:56:15Z","message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","skip-ci","backport:prev-minor","backport:prev-major","v9.1.0"],"title":"[ci]
Trigger VM image rebuild for cache rebuild
only","number":213497,"url":"https://github.com/elastic/kibana/pull/213497","mergeCommit":{"message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213497","number":213497,"mergeCommit":{"message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8"}}]}]
BACKPORT-->

Co-authored-by: Alex Szabo <alex.szabo@elastic.co>
delanni added a commit to delanni/kibana that referenced this pull request Mar 10, 2025
## Summary
When VM image rebuild is triggered after ES promotion, only the cache
warmup should be built.

This PR also separates the daily full build to a daily base + cache
build (in case ES promotions are failing for some reason, we should
still have a daily cache refresh).

Requires: elastic/ci-agent-images#1295

With this, we'd run a daily base image build and cache build (~40m +
25m) + cache warmups for every promotion (~4x 25m) instead of a full
build and promotion per build (~4x 55m). Ultimately not that much of a
gain 🤷 (4*55=220m => 40+5x25=165m)

(cherry picked from commit 830dbd4)

# Conflicts:
#	.buildkite/pipeline-resource-definitions/kibana-vm-images.yml
#	.buildkite/scripts/steps/es_serverless/promote_es_serverless_image.sh
#	.buildkite/scripts/steps/fleet/promote_package_registry.sh
delanni added a commit to delanni/kibana that referenced this pull request Mar 10, 2025
## Summary
When VM image rebuild is triggered after ES promotion, only the cache
warmup should be built.

This PR also separates the daily full build to a daily base + cache
build (in case ES promotions are failing for some reason, we should
still have a daily cache refresh).

Requires: elastic/ci-agent-images#1295

With this, we'd run a daily base image build and cache build (~40m +
25m) + cache warmups for every promotion (~4x 25m) instead of a full
build and promotion per build (~4x 55m). Ultimately not that much of a
gain 🤷 (4*55=220m => 40+5x25=165m)

(cherry picked from commit 830dbd4)

# Conflicts:
#	.buildkite/pipeline-resource-definitions/kibana-vm-images.yml
#	.buildkite/scripts/steps/es_serverless/promote_es_serverless_image.sh
#	.buildkite/scripts/steps/fleet/promote_package_registry.sh
@delanni
Copy link
Contributor Author

delanni commented Mar 10, 2025

💚 All backports created successfully

Status Branch Result
8.x
8.18
8.17
8.16

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

delanni added a commit to delanni/kibana that referenced this pull request Mar 10, 2025
## Summary
When VM image rebuild is triggered after ES promotion, only the cache
warmup should be built.

This PR also separates the daily full build to a daily base + cache
build (in case ES promotions are failing for some reason, we should
still have a daily cache refresh).

Requires: elastic/ci-agent-images#1295

With this, we'd run a daily base image build and cache build (~40m +
25m) + cache warmups for every promotion (~4x 25m) instead of a full
build and promotion per build (~4x 55m). Ultimately not that much of a
gain 🤷 (4*55=220m => 40+5x25=165m)

(cherry picked from commit 830dbd4)

# Conflicts:
#	.buildkite/pipeline-resource-definitions/kibana-vm-images.yml
#	.buildkite/scripts/steps/es_serverless/promote_es_serverless_image.sh
#	.buildkite/scripts/steps/fleet/promote_package_registry.sh
delanni added a commit that referenced this pull request Mar 10, 2025
…213719)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ci] Trigger VM image rebuild for cache rebuild only
(#213497)](#213497)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"alex.szabo@elastic.co"},"sourceCommit":{"committedDate":"2025-03-10T09:56:15Z","message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","skip-ci","backport:prev-minor","backport:prev-major","v9.1.0"],"title":"[ci]
Trigger VM image rebuild for cache rebuild
only","number":213497,"url":"https://github.com/elastic/kibana/pull/213497","mergeCommit":{"message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/213697","number":213697,"state":"MERGED","mergeCommit":{"sha":"e3b7db6f446a8daedb965cbe0f6823c91747c10c","message":"[9.0]
[ci] Trigger VM image rebuild for cache rebuild only (#213497)
(#213697)\n\n# Backport\n\nThis will backport the following commits from
`main` to `9.0`:\n- [[ci] Trigger VM image rebuild for cache rebuild
only\n(#213497)](https://github.com/elastic/kibana/pull/213497)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Alex Szabo
<alex.szabo@elastic.co>"}},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213497","number":213497,"mergeCommit":{"message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8"}}]}]
BACKPORT-->
delanni added a commit that referenced this pull request Mar 10, 2025
…#213721)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[ci] Trigger VM image rebuild for cache rebuild only
(#213497)](#213497)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"alex.szabo@elastic.co"},"sourceCommit":{"committedDate":"2025-03-10T09:56:15Z","message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","skip-ci","backport:prev-minor","backport:prev-major","v9.1.0"],"title":"[ci]
Trigger VM image rebuild for cache rebuild
only","number":213497,"url":"https://github.com/elastic/kibana/pull/213497","mergeCommit":{"message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/213697","number":213697,"state":"MERGED","mergeCommit":{"sha":"e3b7db6f446a8daedb965cbe0f6823c91747c10c","message":"[9.0]
[ci] Trigger VM image rebuild for cache rebuild only (#213497)
(#213697)\n\n# Backport\n\nThis will backport the following commits from
`main` to `9.0`:\n- [[ci] Trigger VM image rebuild for cache rebuild
only\n(#213497)](https://github.com/elastic/kibana/pull/213497)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Alex Szabo
<alex.szabo@elastic.co>"}},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213497","number":213497,"mergeCommit":{"message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8"}}]}]
BACKPORT-->
delanni added a commit that referenced this pull request Mar 10, 2025
…#213722)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[ci] Trigger VM image rebuild for cache rebuild only
(#213497)](#213497)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"alex.szabo@elastic.co"},"sourceCommit":{"committedDate":"2025-03-10T09:56:15Z","message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","skip-ci","backport:prev-minor","backport:prev-major","v9.1.0"],"title":"[ci]
Trigger VM image rebuild for cache rebuild
only","number":213497,"url":"https://github.com/elastic/kibana/pull/213497","mergeCommit":{"message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/213697","number":213697,"state":"MERGED","mergeCommit":{"sha":"e3b7db6f446a8daedb965cbe0f6823c91747c10c","message":"[9.0]
[ci] Trigger VM image rebuild for cache rebuild only (#213497)
(#213697)\n\n# Backport\n\nThis will backport the following commits from
`main` to `9.0`:\n- [[ci] Trigger VM image rebuild for cache rebuild
only\n(#213497)](https://github.com/elastic/kibana/pull/213497)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Alex Szabo
<alex.szabo@elastic.co>"}},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213497","number":213497,"mergeCommit":{"message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8"}}]}]
BACKPORT-->
delanni added a commit that referenced this pull request Mar 10, 2025
…#213723)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[ci] Trigger VM image rebuild for cache rebuild only
(#213497)](#213497)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"alex.szabo@elastic.co"},"sourceCommit":{"committedDate":"2025-03-10T09:56:15Z","message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","skip-ci","backport:prev-minor","backport:prev-major","v9.1.0"],"title":"[ci]
Trigger VM image rebuild for cache rebuild
only","number":213497,"url":"https://github.com/elastic/kibana/pull/213497","mergeCommit":{"message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/213697","number":213697,"state":"MERGED","mergeCommit":{"sha":"e3b7db6f446a8daedb965cbe0f6823c91747c10c","message":"[9.0]
[ci] Trigger VM image rebuild for cache rebuild only (#213497)
(#213697)\n\n# Backport\n\nThis will backport the following commits from
`main` to `9.0`:\n- [[ci] Trigger VM image rebuild for cache rebuild
only\n(#213497)](https://github.com/elastic/kibana/pull/213497)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Alex Szabo
<alex.szabo@elastic.co>"}},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213497","number":213497,"mergeCommit":{"message":"[ci]
Trigger VM image rebuild for cache rebuild only (#213497)\n\n##
Summary\nWhen VM image rebuild is triggered after ES promotion, only the
cache\nwarmup should be built.\n\nThis PR also separates the daily full
build to a daily base + cache\nbuild (in case ES promotions are failing
for some reason, we should\nstill have a daily cache
refresh).\n\nRequires:
https://github.com/elastic/ci-agent-images/pull/1295\n\nWith this, we'd
run a daily base image build and cache build (~40m +\n25m) + cache
warmups for every promotion (~4x 25m) instead of a full\nbuild and
promotion per build (~4x 55m). Ultimately not that much of a\ngain 🤷
(4*55=220m =>
40+5x25=165m)","sha":"830dbd4ed72cb05829dbc1ee383dee9f9cbcdac8"}}]}]
BACKPORT-->
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
## Summary
When VM image rebuild is triggered after ES promotion, only the cache
warmup should be built.

This PR also separates the daily full build to a daily base + cache
build (in case ES promotions are failing for some reason, we should
still have a daily cache refresh).

Requires: elastic/ci-agent-images#1295

With this, we'd run a daily base image build and cache build (~40m +
25m) + cache warmups for every promotion (~4x 25m) instead of a full
build and promotion per build (~4x 55m). Ultimately not that much of a
gain 🤷 (4*55=220m => 40+5x25=165m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants