Skip to content

Commit 11ab40c

Browse files
committed
[ci] release test: use rayci to perform test init
so that rayci buildid can be populated Signed-off-by: Lonnie Liu <[email protected]>
1 parent 21bc452 commit 11ab40c

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.buildkite/release/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ env:
1515
RAYCI_SKIP_UPLOAD: "true"
1616
hook_env_keys:
1717
- RAYCI_CHECKOUT_DIR
18+
build_env_keys:
19+
- AUTOMATIC
20+
- RELEASE_FREQUENCY
21+
docker_plugin:
22+
allow_mount_buildkite_agent: true

.buildkite/release/test-init.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
if [[ ${BUILDKITE_COMMIT} == "HEAD" ]]; then
6+
BUILDKITE_COMMIT="$(git rev-parse HEAD)"
7+
export BUILDKITE_COMMIT
8+
fi
9+
10+
aws ecr get-login-password --region us-west-2 | \
11+
docker login --username AWS --password-stdin 029272617770.dkr.ecr.us-west-2.amazonaws.com
12+
13+
bash release/gcloud_docker_login.sh release/aws2gce_iam.json
14+
export PATH="${PWD}/google-cloud-sdk/bin:$PATH"
15+
16+
if [[ "${AUTOMATIC:-0}" == "1" && "${BUILDKITE_BRANCH}" == "master" ]]; then
17+
export REPORT_TO_RAY_TEST_DB=1
18+
fi
19+
20+
RUN_FLAGS=()
21+
22+
if [[ "${AUTOMATIC:-0}" == "0" || "${BUILDKITE_BRANCH}" == "releases/"* ]]; then
23+
RUN_FLAGS+=(--run-jailed-tests)
24+
fi
25+
if [[ "${BUILDKITE_BRANCH}" != "releases/"* ]]; then
26+
RUN_FLAGS+=(--run-unstable-tests)
27+
fi
28+
29+
echo "---- Build test steps"
30+
bazelisk run //release:build_pipeline -- "${RUN_FLAGS[@]}" \
31+
| buildkite-agent pipeline upload

.buildkite/release/test.rayci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
group: test init
2+
tags:
3+
- oss
4+
steps:
5+
- label: "test init"
6+
key: test-init
7+
instance_type: release-medium
8+
commands:
9+
- /bin/bash .buildkite/release/test-init.sh
10+
mount_buildkite_agent: true
11+
depends_on: forge

0 commit comments

Comments
 (0)