Skip to content

Commit

Permalink
[ci] Update VM cache for each ES snapshot (elastic#205119)
Browse files Browse the repository at this point in the history
Currently we're rebuilding our cache after the ES snapshot on main has
been promoted. This makes an assumption that less frequent cache builds
will save minutes over the chance of a build failure on main causing
snapshots for all other passing branches to be out of date.

That assumption hasn't been correct so far, so I'm moving the trigger to
all branches.
  • Loading branch information
jbudz authored Dec 26, 2024
1 parent 1e95b0c commit c382c20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ EOT

cat << EOF | buildkite-agent pipeline upload
steps:
- label: "Builds Kibana VM images for cache update"
- label: "Update cache for ES serverless image"
trigger: kibana-vm-images
async: true
build:
Expand Down
7 changes: 4 additions & 3 deletions .buildkite/scripts/steps/es_snapshots/promote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ ts-node "$(dirname "${0}")/promote_manifest.ts" "$ES_SNAPSHOT_MANIFEST"
if [[ "$BUILDKITE_BRANCH" == "main" ]]; then
echo "--- Trigger agent packer cache pipeline"
ts-node .buildkite/scripts/steps/trigger_pipeline.ts kibana-agent-packer-cache main
cat << EOF | buildkite-agent pipeline upload
fi

cat << EOF | buildkite-agent pipeline upload
steps:
- label: "Builds Kibana VM images for cache update"
- label: "Update cache for ES $BUILDKITE_BRANCH snapshot"
trigger: kibana-vm-images
async: true
build:
env:
IMAGES_CONFIG: "kibana/images.yml"
RETRY: "1"
EOF
fi

0 comments on commit c382c20

Please sign in to comment.