From b9fa72ebb315a1d92a435ccf94a3d07cee98e241 Mon Sep 17 00:00:00 2001 From: David Dunleavy Date: Thu, 10 Oct 2024 16:32:39 -0700 Subject: [PATCH] Run `bazel build --nobuild` ahead of `bazel query` in GitHub Actions Also update timeouts as these actions will take slightly longer now PiperOrigin-RevId: 684617822 --- .github/workflows/bazel_dependency_violations.yml | 6 ++++-- .github/workflows/bazel_query.yml | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bazel_dependency_violations.yml b/.github/workflows/bazel_dependency_violations.yml index cca94153ec53b..683faa72f4346 100644 --- a/.github/workflows/bazel_dependency_violations.yml +++ b/.github/workflows/bazel_dependency_violations.yml @@ -35,13 +35,15 @@ jobs: defaults: run: shell: bash - timeout-minutes: 3 + timeout-minutes: 4 continue-on-error: true steps: - name: "Checking out repository" uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: "Install bazelisk" run: go install github.com/bazelbuild/bazelisk@24651ab # v1.20.0 + - name: "Run bazel build --nobuild //xla/... with retries" + run: parallel --ungroup --retries 3 --delay 15 --nonall -- bazelisk build --nobuild //xla/... - name: "Run bazel cquery ... //xla/..." run: | set -euo pipefail @@ -68,4 +70,4 @@ jobs: exit 1 fi - echo "No dependency violations found for tag '${{ matrix.tag }}'." \ No newline at end of file + echo "No dependency violations found for tag '${{ matrix.tag }}'." diff --git a/.github/workflows/bazel_query.yml b/.github/workflows/bazel_query.yml index da47f7fcb9926..f608d7c9ff2af 100644 --- a/.github/workflows/bazel_query.yml +++ b/.github/workflows/bazel_query.yml @@ -31,12 +31,14 @@ jobs: defaults: run: shell: bash - timeout-minutes: 2 + timeout-minutes: 4 steps: - name: "Checking out repository" uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: "Install bazelisk" run: go install github.com/bazelbuild/bazelisk@24651ab # v1.20.0 + - name: "Run bazel build --nobuild //xla/... with retries" + run: parallel --ungroup --retries 3 --delay 15 --nonall -- bazelisk build --nobuild //xla/... - name: "Run bazel query //xla/..." run: bazelisk query //xla/... > /dev/null - name: "Run bazel query deps(//xla/...)"