Skip to content

Commit

Permalink
[lucene_snapshot] Fix schedules, set default branch, and pass branch …
Browse files Browse the repository at this point in the history
…to triggered builds (elastic#98410)
  • Loading branch information
brianseeders authored Aug 11, 2023
1 parent 6be476d commit 5ad8a79
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .buildkite/pipelines/lucene-snapshot/build-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ steps:
buildDirectory: /dev/shm/bk
- wait
- trigger: "elasticsearch-lucene-snapshot-tests"
build:
branch: "${BUILDKITE_BRANCH}"
async: true
2 changes: 2 additions & 0 deletions .buildkite/pipelines/lucene-snapshot/update-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ steps:
timeout_in_minutes: 15
- wait
- trigger: "elasticsearch-lucene-snapshot-tests"
build:
branch: "${BUILDKITE_BRANCH}"
async: true
5 changes: 5 additions & 0 deletions .buildkite/scripts/lucene-snapshot/update-es-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -euo pipefail

if [[ "$BUILDKITE_BRANCH" != "lucene_snapshot" ]]; then
echo "Error: This script should only be run on the lucene_snapshot branch"
exit 1
fi

echo --- Update Lucene snapshot in Elasticsearch

LUCENE_SNAPSHOT_VERSION=${LUCENE_SNAPSHOT_VERSION:-}
Expand Down
33 changes: 18 additions & 15 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ spec:
repository: elastic/elasticsearch
pipeline_file: .buildkite/pipelines/lucene-snapshot/build-snapshot.yml
branch_configuration: lucene_snapshot
default_branch: lucene_snapshot
teams:
elasticsearch-team: {}
ml-core: {}
Expand All @@ -171,11 +172,11 @@ spec:
build_pull_requests: false
publish_commit_status: false
trigger_mode: none
schedules:
Periodically on lucene_snapshot:
branch: lucene_snapshot
cronline: "0 2 * * America/New_York"
message: "Builds a new lucene snapshot 1x per day"
schedules:
Periodically on lucene_snapshot:
branch: lucene_snapshot
cronline: "0 2 * * America/New_York"
message: "Builds a new lucene snapshot 1x per day"
---
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json
apiVersion: backstage.io/v1alpha1
Expand All @@ -200,6 +201,7 @@ spec:
repository: elastic/elasticsearch
pipeline_file: .buildkite/pipelines/lucene-snapshot/update-branch.yml
branch_configuration: lucene_snapshot
default_branch: lucene_snapshot
teams:
elasticsearch-team: {}
ml-core: {}
Expand All @@ -210,11 +212,11 @@ spec:
build_pull_requests: false
publish_commit_status: false
trigger_mode: none
schedules:
Periodically on lucene_snapshot:
branch: lucene_snapshot
cronline: "0 6 * * America/New_York"
message: "Merges main into lucene_snapshot branch 1x per day"
schedules:
Periodically on lucene_snapshot:
branch: lucene_snapshot
cronline: "0 6 * * America/New_York"
message: "Merges main into lucene_snapshot branch 1x per day"
---
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json
apiVersion: backstage.io/v1alpha1
Expand All @@ -239,6 +241,7 @@ spec:
repository: elastic/elasticsearch
pipeline_file: .buildkite/pipelines/lucene-snapshot/run-tests.yml
branch_configuration: lucene_snapshot
default_branch: lucene_snapshot
teams:
elasticsearch-team: {}
ml-core: {}
Expand All @@ -249,8 +252,8 @@ spec:
build_pull_requests: false
publish_commit_status: false
trigger_mode: none
schedules:
Periodically on lucene_snapshot:
branch: lucene_snapshot
cronline: "0 9,12,15,18 * * America/New_York"
message: "Runs tests against lucene_snapshot branch several times per day"
schedules:
Periodically on lucene_snapshot:
branch: lucene_snapshot
cronline: "0 9,12,15,18 * * America/New_York"
message: "Runs tests against lucene_snapshot branch several times per day"

0 comments on commit 5ad8a79

Please sign in to comment.