Skip to content

Commit

Permalink
Disable --features=treat_warnings_as_errors on CI for Bazel 6
Browse files Browse the repository at this point in the history
Bazel 6.x has dependencies that produce warnings now.

Signed-off-by: Brentley Jones <[email protected]>
  • Loading branch information
brentleyjones committed Oct 17, 2023
1 parent 0abd919 commit 046c263
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ tasks:
name: "Latest Bazel"
bazel: latest
<<: *common
build_flags:
# Bazel 6.x has dependencies that produce warnings now
# TODO: Remove once latest is Bazel 7+
- "--features=-treat_warnings_as_errors"
test_flags:
# Bazel 6.x has dependencies that produce warnings now
# TODO: Remove once latest is Bazel 7+
- "--features=-treat_warnings_as_errors"

macos_latest_bzlmod:
name: "Current LTS using bzlmod"
Expand All @@ -35,8 +43,14 @@ tasks:
- "-//doc/..."
build_flags:
- "--enable_bzlmod"
# Bazel 6.x has dependencies that produce warnings now
# TODO: Remove once latest is Bazel 7+
- "--features=-treat_warnings_as_errors"
test_flags:
- "--enable_bzlmod"
# Bazel 6.x has dependencies that produce warnings now
# TODO: Remove once latest is Bazel 7+
- "--features=-treat_warnings_as_errors"

macos_last_green:
name: "Last Green Bazel"
Expand All @@ -51,6 +65,14 @@ tasks:
# has landed on them breaking this project.
- .bazelci/update_workspace_to_deps_heads.sh
<<: *common
build_flags:
# Bazel 6.x has dependencies that produce warnings now
# TODO: Remove once latest is Bazel 7+
- "--features=-treat_warnings_as_errors"
test_flags:
# Bazel 6.x has dependencies that produce warnings now
# TODO: Remove once latest is Bazel 7+
- "--features=-treat_warnings_as_errors"

linux_latest:
name: "Current LTS on Linux"
Expand Down

0 comments on commit 046c263

Please sign in to comment.