From 7f54baa805304ab6f88900f9fc7c25d11af5aa24 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Sun, 5 Nov 2023 18:34:49 +0000 Subject: [PATCH] Cleanup --- .github/workflows/build.yml | 14 +++++++------- tests/test_prometheus/prometheus_test.sh | 14 +++++++------- tools/build/configure.py | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e3747b96a..af269644e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -292,9 +292,9 @@ jobs: runs-on: ubuntu-22.04 #container: # image: gcr.io/tensorflow-testing/nosla-cuda11.2-cudnn8.1-ubuntu20.04-manylinux2014-multipython@sha256:48612bd85709cd014711d0b0f87e0806f3567d06d2e81c6e860516b87498b821 - # env: - # REPO_NAME: ${{ env.REPO_NAME }} - # EVENT_NAME: ${{ env.EVENT_NAME }} + env: + REPO_NAME: ${{ env.REPO_NAME }} + EVENT_NAME: ${{ env.EVENT_NAME }} steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - name: GCP @@ -306,10 +306,10 @@ jobs: shell: bash run: | set -x - echo export BAZEL_OPTIMIZATION="--config=optimization" # --config=linux_ci --config=cache - #if [[ "${EVENT_NAME}" == "push" && "${REPO_NAME}" == "tensorflow/io" ]]; then - # export BAZEL_OPTIMIZATION="$BAZEL_OPTIMIZATION --remote_upload_local_results=true --google_credentials=service_account_creds.json" - #fi + export BAZEL_OPTIMIZATION="--config=optimization --config=linux_ci --config=cache" + if [[ "${EVENT_NAME}" == "push" && "${REPO_NAME}" == "tensorflow/io" ]]; then + export BAZEL_OPTIMIZATION="$BAZEL_OPTIMIZATION --remote_upload_local_results=true --google_credentials=service_account_creds.json" + fi docker run -v $PWD:/v -w /v --net=host quay.io/pypa/manylinux2014_x86_64 bash -x .github/workflows/build.bazel.sh python3.10 sudo cp .bazelrc build/tensorflow_io/ sudo chown -R $(id -nu):$(id -ng) . diff --git a/tests/test_prometheus/prometheus_test.sh b/tests/test_prometheus/prometheus_test.sh index a2f89f5dc..c1565d23e 100644 --- a/tests/test_prometheus/prometheus_test.sh +++ b/tests/test_prometheus/prometheus_test.sh @@ -25,7 +25,7 @@ action=$1 if [ "$action" == "start" ]; then cat <.coredns -.:8053 { +.:1053 { whoami prometheus } @@ -56,12 +56,12 @@ docker run -d --rm --name=tensorflow-io-prometheus --net=host -v $PWD/.prometheu # wait for coredns and prometheus up sleep 25 -dig @localhost -p 8053 www.google.com -dig @localhost -p 8053 www.google.com -dig @localhost -p 8053 www.google.com -dig @localhost -p 8053 www.google.com -dig @localhost -p 8053 www.google.com -dig @localhost -p 8053 www.google.com +dig @localhost -p 1053 www.google.com +dig @localhost -p 1053 www.google.com +dig @localhost -p 1053 www.google.com +dig @localhost -p 1053 www.google.com +dig @localhost -p 1053 www.google.com +dig @localhost -p 1053 www.google.com else docker rm -f tensorflow-io-coredns diff --git a/tools/build/configure.py b/tools/build/configure.py index fd9e7a34b..0a25150eb 100644 --- a/tools/build/configure.py +++ b/tools/build/configure.py @@ -142,8 +142,8 @@ def write_config(): ) bazel_rc.write("build:linux --copt=-Wno-error=stringop-overflow=\n") # For a cleaner output - # bazel_rc.write("build --noshow_progress\n") - # bazel_rc.write("build --noshow_loading_progress\n") + bazel_rc.write("build --noshow_progress\n") + bazel_rc.write("build --noshow_loading_progress\n") bazel_rc.write("build --verbose_failures\n") bazel_rc.write("build --test_output=errors\n") bazel_rc.write("build --experimental_ui_max_stdouterr_bytes=-1\n")