bazel-contrib / bazel-gazelle

Gazelle is a Bazel build file generator for Bazel projects. It natively supports Go and protobuf, and it may be extended to support new languages and custom rule sets.
Apache License 2.0
1.19k stars 378 forks source link

Support timeout and size in gazelle_test #1909

Closed rockwotj closed 1 month ago

rockwotj commented 1 month ago

What type of PR is this?

Feature

What package or component does this PR mostly affect?

bazel's gazelle_test

What does this PR do? Why is it needed?

Supports removing noisy warnings like:

  WARNING: //:gazelle_test: Test execution time (0.1s excluding execution overhead) outside of range for MODERATE tests. Consider setting timeout="short" or size="small".

Which issues(s) does this PR fix?

N/A

Other notes for review

rockwotj commented 1 month ago

Thanks for reviewing @fmeum!

It looks like CI is failing for unrelated reasons? Is there anything I can do to resolve?

(17:16:53) ERROR: /private/var/tmp/_bazel_buildkite/604032029e897c8ce856734d27a0137a/external/com_google_protobuf/BUILD.bazel:457:10: Linking external/com_google_protobuf/protoc [for tool] failed: Failed to fetch blobs because they do not exist remotely.: Missing digest: d02d0e4440d1bce95050d408e118bea7d7fb8737624c6d306cf6fee638d86709/860768 for bazel-out/darwin_arm64-opt-exec-ST-13d3ddad9198/bin/external/com_google_protobuf/libprotobuf_lite.a
(17:16:53) ERROR: /private/var/tmp/_bazel_buildkite/604032029e897c8ce856734d27a0137a/external/io_bazel_stardoc/src/main/java/com/google/devtools/build/skydoc/renderer/BUILD:35:13 Building external/io_bazel_stardoc/src/main/java/com/google/devtools/build/skydoc/renderer/librenderer_lib.jar (4 source files) [for tool] failed: Failed to fetch blobs because they do not exist remotely.: Missing digest: