Skip to content

Commit 7010a48

Browse files
yongtangmichaelbanfield
authored andcommitted
Combine Ubuntu 20.04 and CentOS 7 tests into one GitHub jobs (tensorflow#1299)
When GitHub Actions runs it looks like there is an implicit concurrent jobs limit. As such the CentOS 7 test normally is scheduled later after other jobs completes. However, many times CentOS 7 test hangs (e.g., https://github.com/tensorflow/io/runs/1825943449). This is likely due to the CentOS 7 test is on the GitHub Actions queue for too long. This PR moves CentOS 7 to run after Ubuntu 20.04 test complete, to try to avoid hangs. Signed-off-by: Yong Tang <[email protected]>
1 parent 880c8b3 commit 7010a48

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,13 @@ jobs:
6868
bash -x -e source.sh
6969
python3 -c 'import tensorflow as tf; print(tf.version.VERSION)'
7070
71-
ubuntu-2004:
72-
name: Ubuntu 20.04
71+
linux:
72+
name: Linux
7373
runs-on: ubuntu-latest
7474
steps:
7575
- uses: actions/checkout@v2
76-
- run: |
76+
- name: Ubuntu 20.04
77+
run: |
7778
if [[ "${EVENT_NAME}" == "push" && "${REPO_NAME}" == "tensorflow/io" ]]; then
7879
printf '%s\n' "${GCP_CREDS}" >service_account_creds.json
7980
export BAZEL_OPTIMIZATION="--remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=true --google_credentials=service_account_creds.json"
@@ -87,13 +88,8 @@ jobs:
8788
docker run -i --rm -v $PWD:/v -w /v --net=host \
8889
-e BAZEL_OPTIMIZATION="${BAZEL_OPTIMIZATION}" \
8990
ubuntu:20.04 bash -x -e source.sh
90-
91-
centos-7:
92-
name: CentOS 7
93-
runs-on: ubuntu-latest
94-
steps:
95-
- uses: actions/checkout@v2
96-
- run: |
91+
- name: CentOS 7
92+
run: |
9793
if [[ "${EVENT_NAME}" == "push" && "${REPO_NAME}" == "tensorflow/io" ]]; then
9894
printf '%s\n' "${GCP_CREDS}" >service_account_creds.json
9995
export BAZEL_OPTIMIZATION="--remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=true --google_credentials=service_account_creds.json"

0 commit comments

Comments
 (0)