This commit is contained in:
simon-mo
2021-02-15 13:06:25 -08:00
parent 9ebc307a99
commit a8ee0ed7fc
4 changed files with 9 additions and 1 deletions
+2
View File
@@ -22,6 +22,8 @@ ENV DOCKER_TLS_CERTDIR=/certs
ENV DOCKER_HOST=tcp://docker:2376
ENV DOCKER_TLS_VERIFY=1
ENV DOCKER_CERT_PATH=/certs/client
ENV TRAVIS_COMMIT=${BUILDKITE_COMMIT}
ENV BUILDKITE_BAZEL_CACHE_URL=${REMOTE_CACHE_URL}
RUN apt-get update -qq
RUN apt-get install -y -qq \
+2
View File
@@ -313,6 +313,8 @@ build_wheels() {
-e "TRAVIS_COMMIT=${TRAVIS_COMMIT}"
-e "CI=${CI}"
-e "RAY_INSTALL_JAVA=${RAY_INSTALL_JAVA:-}"
-e "BUILDKITE=${BUILDKITE:-}"
-e "BUILDKITE_BAZEL_CACHE_URL=$=${BUILDKITE_BAZEL_CACHE_URL=$:-}"
)
# This command should be kept in sync with ray/python/README-building-wheels.md,
+4
View File
@@ -117,6 +117,10 @@ build --google_credentials="${translated_path}"
EOF
elif [ -n "${BUILDKITE-}" ]; then
echo "Using buildkite secret store to communicate with cache address"
cat <<EOF >> ~/.bazelrc
build --remote_cache=${BUILDKITE_BAZEL_CACHE_URL=$}
EOF
else
echo "Using remote build cache in read-only mode." 1>&2
cat <<EOF >> ~/.bazelrc
+1 -1
View File
@@ -378,7 +378,7 @@ def import_attr(full_path: str):
async def mock_imported_function(batch):
return [await request.body() for request in batch]
return [ await request.body() for request in batch]
class MockImportedBackend: