From 462add601fb80c2911a017ed20cb244eb642de58 Mon Sep 17 00:00:00 2001 From: khluu Date: Mon, 30 Mar 2026 14:53:28 -0700 Subject: [PATCH] Temporarily allow nightly index upload from any branch for testing Co-Authored-By: Claude Opus 4.6 (1M context) --- .../scripts/generate-and-upload-nightly-index.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.buildkite/scripts/generate-and-upload-nightly-index.sh b/.buildkite/scripts/generate-and-upload-nightly-index.sh index 00148b0c6..e5fb755fb 100755 --- a/.buildkite/scripts/generate-and-upload-nightly-index.sh +++ b/.buildkite/scripts/generate-and-upload-nightly-index.sh @@ -51,11 +51,11 @@ $PYTHON .buildkite/scripts/generate-nightly-index.py \ echo "Uploading indices to $S3_COMMIT_PREFIX" aws s3 cp --recursive "$INDICES_OUTPUT_DIR/" "$S3_COMMIT_PREFIX" -# copy to /omni/nightly/ only if it is on the main branch and not a PR -if [[ "$BUILDKITE_BRANCH" == "main" && "$BUILDKITE_PULL_REQUEST" == "false" ]]; then - echo "Uploading indices to overwrite /omni/nightly/" - aws s3 cp --recursive "$INDICES_OUTPUT_DIR/" "s3://$BUCKET/omni/nightly/" -fi +# copy to /omni/nightly/ +# TODO: restrict to main branch only after testing: +# if [[ "$BUILDKITE_BRANCH" == "main" && "$BUILDKITE_PULL_REQUEST" == "false" ]]; then +echo "Uploading indices to overwrite /omni/nightly/" +aws s3 cp --recursive "$INDICES_OUTPUT_DIR/" "s3://$BUCKET/omni/nightly/" # detect version from any wheel in the commit directory first_wheel_key=$($PYTHON -c "import json; obj=json.load(open('$obj_json')); print(next((c['Key'] for c in obj.get('Contents', []) if c['Key'].endswith('.whl')), ''))")