You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A confusing behavior I see is that changing the custom runner target (yamlfmt_runner, by adding or changing one of the args in the target), and then running the format_test that depends on it, results in the test passing with beingcached:
➜ example git:(yaml-with-native-binary) ✗ bazel test //:format_custom_yaml
INFO: Analyzed target //:format_custom_yaml_YAML_with_yamlfmt (0 packages loaded, 4 targets configured).
INFO: Found 1 test target...
Target //:format_custom_yaml_YAML_with_yamlfmt up-to-date:
bazel-bin/format_custom_yaml_YAML_with_yamlfmt
INFO: Elapsed time: 0.101s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
//:format_custom_yaml_YAML_with_yamlfmt (cached) PASSED in 0.2s
Executed 0 out of 1 test: 1 test passes.
There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.
What happened?
I created a custom yamlfmt executable target, and used that in the
yaml
attribute informat_test
.See the example branch at https://github.com/menny/rules_lint/tree/yaml-with-native-binary
Version
Development (host) and target OS/architectures:
mac arm
Output of
bazel --version
:Bazelisk version: 1.20.0
Aspect CLI version: 2024.39.54-f22225e33
Build label: 7.1.1
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Thu Mar 21 18:08:59 2024 (1711044539)
Build timestamp: 1711044539
Build timestamp as int: 1711044539
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:It's at
HEAD
. I assume it is very close to 1.0.7Language(s) and/or frameworks involved:
yaml
How to reproduce
Check out the branch at https://github.com/menny/rules_lint/tree/yaml-with-native-binary.
Under the
example
folder:yamlfmt_runner
usingnative_binary
rule.violations.yml
with ident-2format_test
targetformat_custom_yaml
that takes the custom runnable+config+violationsRunning the test:
bazel test //:format_custom_yaml
passes:Running the binary
yamlfmt_runner
using bazel and passing the args shows the errors:Any other information?
No response
The text was updated successfully, but these errors were encountered: