---
x_defaults:
  # YAML has a feature for "repeated nodes", BazelCI is fine with extra nodes
  # it doesn't know about; so that is used to avoid repeating common subparts.
  common: &common
    platform: macos
    build_targets:
    - "tools/..."
    - "test/..."
    test_targets:
    - "tools/..."
    - "test/..."
    - "examples/..."

# NOTE: To avoid listing the same things for build_flags/test_flags for each
# of these tasks, they are listed in the .bazelrc instead.
tasks:
  macos_last_green:
    name: "Last Green Bazel"
    bazel: last_downstream_green
    <<: *common


buildifier:
  version: latest
  # Function doc string requirements are a little hard to follow, they did get
  # split into multiple warnings, so there is now just one left that causes
  # warnings. For the history of some of the issues, see:
  #  https://github.com/bazelbuild/buildtools/issues/576
  # Disable 'print' warnings as there is no way to issue a warning from
  # Starlark.
  # Disable 'bzl-visibility' since it doesn't work properly.
  #  https://github.com/bazelbuild/buildtools/issues/718
  # TODO(b/140759502): Remove native-cc from this list.
  # TODO(b/140759593): Remove native-py from this list.
  warnings: -function-docstring-args,-print,-bzl-visibility,-native-cc,-native-py

---
x_defaults:
  # YAML has a feature for "repeated nodes", BazelCI is fine with extra nodes
  # it doesn't know about; so that is used to avoid repeating common subparts.
  common: &common
    platform: macos
    build_targets:
    - "tools/..."
    - "test/..."
    test_targets:
    - "tools/..."
    - "test/..."
    - "examples/..."

# NOTE: To avoid listing the same things for build_flags/test_flags for each
# of these tasks, they are listed in the .bazelrc instead.
tasks:
  macos_last_green:
    name: "Last Green Bazel"
    bazel: last_green
    <<: *common


buildifier:
  version: latest
  # Function doc string requirements are a little hard to follow, they did get
  # split into multiple warnings, so there is now just one left that causes
  # warnings. For the history of some of the issues, see:
  #  https://github.com/bazelbuild/buildtools/issues/576
  # Disable 'print' warnings as there is no way to issue a warning from
  # Starlark.
  # Disable 'bzl-visibility' since it doesn't work properly.
  #  https://github.com/bazelbuild/buildtools/issues/718
  # TODO(b/140759502): Remove native-cc from this list.
  # TODO(b/140759593): Remove native-py from this list.
  warnings: -function-docstring-args,-print,-bzl-visibility,-native-cc,-native-py

Use last_green, not last_downstream_green for buildkite.
Use last_green, not last_downstream_green for buildkite.

Difference documented at:
  https://github.com/bazelbuild/bazelisk/blob/master/README.md#how-does-bazelisk-know-which-bazel-version-to-run-and-where-to-get-it-from

RELNOTES: None
PiperOrigin-RevId: 287557278
