bazel-contrib / bazel-lib

Common useful functions for writing BUILD files and Starlark macros/rules
Apache License 2.0
141 stars 91 forks source link

DNL: testing #900

Closed gregmagolan closed 3 months ago

gregmagolan commented 3 months ago

Changes are visible to end-users: yes/no

Test plan

aspect-workflows[bot] commented 3 months ago

Test

4 test targets passed

Targets
//lib/tests/copy_to_directory:case_22_test [k8-fastbuild]    88ms
//lib/tests/copy_to_directory_bin_action:test [k8-fastbuild] 262ms
//lib/tests/jq:check_stamped [k8-fastbuild]                  279ms
//lib/tests/yq:check_stamped [k8-fastbuild]                  94ms

Total test execution time was 723ms. 216 tests (98.2%) were fully cached saving 28s.


Test

e2e/copy_action

All tests were cache hits

1 test (100.0%) was fully cached saving 59ms.


Test

e2e/copy_to_directory

All tests were cache hits

6 tests (100.0%) were fully cached saving 750ms.


Test

e2e/coreutils

All tests were cache hits

4 tests (100.0%) were fully cached saving 742ms.


Test

e2e/external_copy_to_directory

All tests were cache hits

1 test (100.0%) was fully cached saving 59ms.


Test

e2e/smoke

All tests were cache hits

7 tests (100.0%) were fully cached saving 2s.


Buildifier

Buildifier managed files require formatting

--- ./e2e/smoke/BUILD.bazel 2024-08-14 14:42:45.414113568 +0000
+++ /tmp/buildifier-tmp-1953008182  2024-08-14 14:44:05.376426756 +0000
@@ -116,11 +116,11 @@

 sh_test(
     name = "test_preserve_mtime",
+    size = "small",
     srcs = ["test_preserve_mtime.sh"],
     data = [
         "d",
-        ":copy_to_directory_mtime_case",
         ":copy_directory_mtime_case",
+        ":copy_to_directory_mtime_case",
     ],
-    size = "small",
 )

:bulb: Run the following to apply the suggested formatting fixes

bazel run //:buildifier

Format      Gazelle