Skip to content

Commit b20033f

Browse files
committed
Add new gpu/cuvs pipelines
1 parent b03d2be commit b20033f

File tree

4 files changed

+61
-3
lines changed

4 files changed

+61
-3
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
steps:
2+
- label: "{{matrix.GRADLE_TASK}}"
3+
command: .buildkite/scripts/cuvs-snapshot/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-file-fingerprints {{matrix.GRADLE_TASK}}
4+
timeout_in_minutes: 300
5+
agents:
6+
provider: gcp
7+
image: family/elasticsearch-ubuntu-2404-nvidia
8+
machineType: g2-standard-32
9+
buildDirectory: /dev/shm/bk
10+
matrix:
11+
setup:
12+
GRADLE_TASK:
13+
- checkPart1
14+
- checkPart2
15+
- checkPart3
16+
- checkPart4
17+
- checkPart5
18+
- checkPart6
19+
env:
20+
GRADLE_TASK: "{{matrix.GRADLE_TASK}}"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
steps:
2+
- label: "Smoke test and update new cuVS snapshot"
3+
command: .buildkite/scripts/cuvs-snapshot/update-current-snapshot-version.sh
4+
agents:
5+
provider: gcp
6+
image: family/elasticsearch-ubuntu-2404-nvidia
7+
machineType: g2-standard-16
8+
zones: us-central1-a
9+
diskSizeGb: 150
10+
- wait: ~
11+
- trigger: "elasticsearch-cuvs-run-tests"
12+
build:
13+
branch: "${BUILDKITE_BRANCH}"
14+
async: true
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
config:
2+
allow-labels: test-gpu
3+
steps:
4+
- group: gpu-tests
5+
steps:
6+
- label: "{{matrix.CHECK_TASK}} / gpu-tests"
7+
key: "packaging-tests-unix"
8+
command: .buildkite/scripts/cuvs-snapshot/run-gradle.sh -Dbwc.checkout.align=true -Dorg.elasticsearch.build.cache.push=true -Dignore.tests.seed -Dscan.capture-file-fingerprints {{matrix.GRADLE_TASK}}
9+
timeout_in_minutes: 300
10+
matrix:
11+
setup:
12+
CHECK_TASK:
13+
- checkPart1
14+
- checkPart2
15+
- checkPart3
16+
- checkPart4
17+
- checkPart5
18+
- checkPart6
19+
agents:
20+
provider: gcp
21+
image: family/elasticsearch-ubuntu-2404-nvidia
22+
machineType: g2-standard-32
23+
buildDirectory: /dev/shm/bk
24+
env:
25+
GRADLE_TASK: "{{matrix.GRADLE_TASK}}"

.buildkite/scripts/cuvs-snapshot/update-current-snapshot-version.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
set -euo pipefail
44

55
SNAPSHOT_VERSION_FILE=.buildkite/scripts/cuvs-snapshot/current-snapshot-version
6-
PLUGIN_GRADLE_FILE=x-pack/plugin/gpu/build.gradle
76
BRANCH_TO_UPDATE="${BRANCH_TO_UPDATE:-${BUILDKITE_BRANCH:-cuvs-snapshot}}"
87

98
if [[ -z "${CUVS_SNAPSHOT_VERSION:-}" ]]; then
@@ -22,15 +21,15 @@ source .buildkite/scripts/cuvs-snapshot/configure.sh
2221
if [[ "${SKIP_TESTING:-}" != "true" ]]; then
2322
echo "--- Testing snapshot before updating"
2423
./gradlew -Druntime.java=24 :x-pack:plugin:gpu:yamlRestTest -S
25-
fi
24+
fi
2625

2726
echo "--- Updating snapshot"
2827

2928
echo "$CUVS_SNAPSHOT_VERSION" > "$SNAPSHOT_VERSION_FILE"
3029

3130
CURRENT_SHA="$(gh api "/repos/elastic/elasticsearch/contents/$SNAPSHOT_VERSION_FILE?ref=$BRANCH_TO_UPDATE" | jq -r .sha)" || true
3231

33-
echo gh api -X PUT "/repos/elastic/elasticsearch/contents/$SNAPSHOT_VERSION_FILE" \
32+
gh api -X PUT "/repos/elastic/elasticsearch/contents/$SNAPSHOT_VERSION_FILE" \
3433
-f branch="$BRANCH_TO_UPDATE" \
3534
-f message="Update cuvs snapshot version to $CUVS_VERSION" \
3635
-f content="$(base64 -w 0 "$WORKSPACE/$SNAPSHOT_VERSION_FILE")" \

0 commit comments

Comments
 (0)