Skip to content

Commit

Permalink
Retry go install commands to prevent network flakes
Browse files Browse the repository at this point in the history
Also `bazel build --nobuild` ahead of querying in `bazel_tags.yml`

PiperOrigin-RevId: 684939185
  • Loading branch information
ddunl authored and Google-ML-Automation committed Oct 11, 2024
1 parent 3f0596e commit 0f95d6f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bazel_dependency_violations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- 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
run: parallel --ungroup --retries 3 --delay 15 --nonall -- 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/..."
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bazel_query.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- 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
run: parallel --ungroup --retries 3 --delay 15 --nonall -- 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/..."
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/bazel_tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
- 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
run: parallel --ungroup --retries 3 --delay 15 --nonall -- 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: "Assert all tags are documented"
run: bazelisk query //xla/... --output=build | python3 build_tools/lint/tags.py
2 changes: 1 addition & 1 deletion .github/workflows/buildifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ jobs:
- name: "Checking out repository"
uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v2.5.0
- name: "Install buildifier"
run: go install github.com/bazelbuild/buildtools/buildifier@433ea85 # 6.4.0
run: parallel --ungroup --retries 3 --delay 15 --nonall -- go install github.com/bazelbuild/buildtools/buildifier@433ea85 # 6.4.0
- name: "Run buildifier"
run: buildifier --lint=warn --warnings=-out-of-order-load -r xla/

0 comments on commit 0f95d6f

Please sign in to comment.