-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Add support for running tests with stack 9.0.0 (#11138)
Add support for 9.0 stack in Buildkite scripts as well as adding the steps required in daily and weekly pipelines to start testing packages with a local stack 9.0.0-SNAPSHOT.
- Loading branch information
Showing
8 changed files
with
154 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...atecli.d/bump-latest-snapshot-version.yml → ...cli.d/bump-latest-8x-snapshot-version.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
.github/workflows/updatecli/updatecli.d/bump-latest-9x-snapshot-version.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
--- | ||
name: Bump latest 9.x-SNAPSHOT elastic-stack test version | ||
pipelineid: 'bump-latest-9x-elastic-stack-version' | ||
|
||
actions: | ||
default: | ||
title: '[updatecli] Update latest snapshot to {{ source "latestSnapshot" }}' | ||
kind: github/pullrequest | ||
scmid: default | ||
spec: | ||
labels: | ||
- automation | ||
- dependency | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
owner: '{{ .scm.owner }}' | ||
repository: '{{ .scm.repository }}' | ||
user: '{{ requiredEnv "GITHUB_ACTOR" }}' | ||
username: '{{ requiredEnv "GITHUB_ACTOR" }}' | ||
token: '{{ requiredEnv "GITHUB_TOKEN" }}' | ||
commitusingapi: true | ||
branch: main | ||
|
||
sources: | ||
latestSnapshot: | ||
name: Get latest snapshot | ||
kind: json | ||
spec: | ||
file: https://storage.googleapis.com/artifacts-api/snapshots/main.json | ||
key: .version | ||
latestSnapshotMajorMinor: | ||
name: Get latest snapshort major and minor | ||
kind: json | ||
spec: | ||
file: https://storage.googleapis.com/artifacts-api/snapshots/main.json | ||
key: .version | ||
transformers: | ||
- findsubmatch: | ||
pattern: '(^\d+\.\d+)\.[^\s]+$' | ||
captureindex: 1 | ||
|
||
targets: | ||
update-snapshot-daily: | ||
name: '[updatecli] [daily] Update latest snapshot to {{ source "latestSnapshot" }}' | ||
kind: file | ||
sourceid: latestSnapshot | ||
scmid: default | ||
spec: | ||
file: '.buildkite/pipeline.schedule-daily.yml' | ||
matchpattern: '(STACK_VERSION:) 9\.[^\s]*\.[^\s]*' | ||
replacepattern: '$1 {{ source "latestSnapshot" }}' | ||
|
||
update-snapshot-label-daily: | ||
name: '[updatecli] [daily] Update latest snapshot label step to {{ source "latestSnapshotMajorMinor" }}' | ||
kind: file | ||
sourceid: latestSnapshotMajorMinor | ||
scmid: default | ||
spec: | ||
file: '.buildkite/pipeline.schedule-daily.yml' | ||
matchpattern: '(Stack Version) v9\.\d+"' | ||
replacepattern: 'Stack Version v{{ source "latestSnapshotMajorMinor" }}"' | ||
|
||
update-snapshot-weekly: | ||
name: '[updatecli] [weekly] Update latest snapshot to {{ source "latestSnapshot" }}' | ||
kind: file | ||
sourceid: latestSnapshot | ||
scmid: default | ||
spec: | ||
file: '.buildkite/pipeline.schedule-weekly.yml' | ||
matchpattern: '(STACK_VERSION:) 9\.[^\s]*\.[^\s]*' | ||
replacepattern: '$1 {{ source "latestSnapshot" }}' | ||
|
||
update-snapshot-label-weekly: | ||
name: '[updatecli] [weekly] Update latest snapshot label step to {{ source "latestSnapshotMajorMinor" }}' | ||
kind: file | ||
sourceid: latestSnapshotMajorMinor | ||
scmid: default | ||
spec: | ||
file: '.buildkite/pipeline.schedule-weekly.yml' | ||
matchpattern: '(Stack Version) v9\.\d+"' | ||
replacepattern: 'Stack Version v{{ source "latestSnapshotMajorMinor" }}"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters