This is an automated email from the ASF dual-hosted git repository.
leandron pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 9e14509cab [docker] Fall back to tlcpackstaging in bash.sh (#11976)
9e14509cab is described below
commit 9e14509cabf9e6ba674d819d36b5d29f97f3dc2f
Author: driazati <[email protected]>
AuthorDate: Fri Jul 1 09:03:14 2022 -0700
[docker] Fall back to tlcpackstaging in bash.sh (#11976)
This uses #11775 to make local builds work if they're run in the meantime
before CI tags over a new image to tlcpack
Co-authored-by: driazati <[email protected]>
---
docker/bash.sh | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/docker/bash.sh b/docker/bash.sh
index 18c655d2dd..56efa1d045 100755
--- a/docker/bash.sh
+++ b/docker/bash.sh
@@ -290,7 +290,15 @@ DOCKER_DEVICES=( )
# If the user gave a shortcut defined in the Jenkinsfile, use it.
EXPANDED_SHORTCUT=$(lookup_image_spec "${DOCKER_IMAGE_NAME}")
if [ -n "${EXPANDED_SHORTCUT}" ]; then
- DOCKER_IMAGE_NAME="${EXPANDED_SHORTCUT}"
+ if [ "${CI+x}" == "true" ]; then
+ DOCKER_IMAGE_NAME="${EXPANDED_SHORTCUT}"
+ else
+ python tests/scripts/determine_docker_images.py
"$DOCKER_IMAGE_NAME=$EXPANDED_SHORTCUT" 2> /dev/null
+ DOCKER_IMAGE_NAME=$(cat ".docker-image-names/$DOCKER_IMAGE_NAME")
+ if [[ "$DOCKER_IMAGE_NAME" == *"tlcpackstaging"* ]]; then
+ echo "WARNING: resolved docker image to fallback tag in
tlcpackstaging" >&2
+ fi
+ fi
fi
# Set up working directories