Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yongtang committed Nov 5, 2023
1 parent b2c9abe commit 7f54baa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) .
Expand Down
14 changes: 7 additions & 7 deletions tests/test_prometheus/prometheus_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ action=$1

if [ "$action" == "start" ]; then
cat <<EOF >.coredns
.:8053 {
.:1053 {
whoami
prometheus
}
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tools/build/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7f54baa

Please sign in to comment.