Skip to content

Commit

Permalink
Run bazel build --nobuild ahead of bazel query in GitHub Actions
Browse files Browse the repository at this point in the history
Also update timeouts as these actions will take slightly longer now

PiperOrigin-RevId: 684617822
  • Loading branch information
ddunl authored and Google-ML-Automation committed Oct 10, 2024
1 parent 48c67ab commit b9fa72e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bazel_dependency_violations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -68,4 +70,4 @@ jobs:
exit 1
fi
echo "No dependency violations found for tag '${{ matrix.tag }}'."
echo "No dependency violations found for tag '${{ matrix.tag }}'."
4 changes: 3 additions & 1 deletion .github/workflows/bazel_query.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/...)"
Expand Down

0 comments on commit b9fa72e

Please sign in to comment.