2020 echo " Code files changed. Proceeding with pipeline upload."
2121fi
2222
23+ upload_pre_merge_pipeline () {
24+ buildkite-agent pipeline upload .buildkite/pipeline_pre_merge.yml
25+ }
26+
2327upload_pipeline () {
24- VLLM_COMMIT_HASH=$( git ls-remote https://github.com/vllm-project/vllm.git HEAD | awk ' { print $1}' )
25- buildkite-agent meta-data set " VLLM_COMMIT_HASH" " ${VLLM_COMMIT_HASH} "
26- echo " Using vllm commit hash: $( buildkite-agent meta-data get " VLLM_COMMIT_HASH" ) "
2728 buildkite-agent pipeline upload .buildkite/pipeline_jax.yml
2829 # buildkite-agent pipeline upload .buildkite/pipeline_torch.yml
2930 buildkite-agent pipeline upload .buildkite/main.yml
3031 buildkite-agent pipeline upload .buildkite/nightly_releases.yml
32+ upload_pre_merge_pipeline
3133}
3234
33- echo " --- Starting Buildkite Bootstrap ---"
35+ fetch_latest_upstream_vllm_commit () {
36+ # To help with debugging (when needed), perform setup to:
37+ # 1. Use the same upstream vllm commit for all jobs in this CI run for consistency
38+ # 2. Record which upstream commit this CI run is using
39+ VLLM_COMMIT_HASH=$( git ls-remote https://github.com/vllm-project/vllm.git HEAD | awk ' { print $1}' )
40+ buildkite-agent meta-data set " VLLM_COMMIT_HASH" " ${VLLM_COMMIT_HASH} "
41+ echo " Using vllm commit hash: $( buildkite-agent meta-data get " VLLM_COMMIT_HASH" ) "
42+ }
3443
44+ echo " --- Starting Buildkite Bootstrap ---"
45+ fetch_latest_upstream_vllm_commit
3546# Check if the current build is a pull request
3647if [ " $BUILDKITE_PULL_REQUEST " != " false" ]; then
3748 echo " This is a Pull Request build."
@@ -42,8 +53,8 @@ if [ "$BUILDKITE_PULL_REQUEST" != "false" ]; then
4253 echo " Found 'ready' label on PR. Uploading main pipeline..."
4354 upload_pipeline
4455 else
45- echo " No 'ready' label found on PR. Skipping main pipeline upload. "
46- exit 0 # Exit with 0 to indicate success (no error, just skipped)
56+ echo " No 'ready' label found on PR. Uploading fast check pipeline "
57+ upload_pre_merge_pipeline
4758 fi
4859else
4960 # If it's NOT a Pull Request (e.g., branch push, tag, manual build)
0 commit comments