Open sgowroji opened 1 week ago
I can't repro. The error looks like it comes from stardoc. I think this was fixed by https://github.com/mattrobmattrob/stardoc/commit/5f92c744fc0be770edfd393c573e6f98c8debedc
I'd close this issue, but it looks like I don't have that permission anymore :shrug:
Hi @rickeylev, Missed adding the test flag = "--enable_bzlmod". Updated now. please take a look. Am able to reproduce this issue in local adding below logs for your reference.
sgowroji-macbookpro3:rules_testing sgowroji$ git clone https://github.com/bazelbuild/rules_testing
Cloning into 'rules_testing'...
remote: Enumerating objects: 798, done.
remote: Counting objects: 100% (382/382), done.
remote: Compressing objects: 100% (176/176), done.
remote: Total 798 (delta 250), reused 265 (delta 201), pack-reused 416 (from 1)
Receiving objects: 100% (798/798), 345.99 KiB | 3.36 MiB/s, done.
Resolving deltas: 100% (453/453), done.
sgowroji-macbookpro3:rules_testing sgowroji$ cd rules_*
sgowroji-macbookpro3:rules_testing sgowroji$ git reset 724bf647aaf30d302f07c7890b5c8149526bbfe7 --hard
HEAD is now at 724bf64 Skip analysis tests when coverage is run.
sgowroji-macbookpro3:rules_testing sgowroji$ export USE_BAZEL_VERSION=788b6080f54c6ca5093526023dfd9b12b90403f8
sgowroji-macbookpro3:rules_testing sgowroji$ bazel test --enable_bzlmod //docgen/... //docs/...
2024/10/14 09:39:22 Using unreleased version at commit 788b6080f54c6ca5093526023dfd9b12b90403f8
2024/10/14 09:39:22 Downloading https://storage.googleapis.com/bazel-builds/artifacts/macos/788b6080f54c6ca5093526023dfd9b12b90403f8/bazel...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
WARNING: For repository 'platforms', the root module requires module version platforms@0.0.6, but got platforms@0.0.10 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'bazel_skylib', the root module requires module version bazel_skylib@1.3.0, but got bazel_skylib@1.7.1 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'rules_license', the root module requires module version rules_license@0.0.4, but got rules_license@1.0.0 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'io_bazel_stardoc', the root module requires module version stardoc@0.6.2, but got stardoc@0.7.0 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'rules_python', the root module requires module version rules_python@0.27.0, but got rules_python@0.36.0 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: Couldn't auto load rules or symbols, because no dependency on module/repository 'protobuf' found. This will result in a failure if there's a reference to those rules or symbols.
WARNING: Couldn't auto load rules or symbols, because no dependency on module/repository 'rules_android' found. This will result in a failure if there's a reference to those rules or symbols.
ERROR: Traceback (most recent call last):
File "/private/var/tmp/_bazel_sgowroji/45a7034ebd75ba66b4f1abff8e305317/external/stardoc+/stardoc/BUILD", line 72, column 16, in <toplevel>
srcs = glob(["*.jar"]),
Error in glob: glob pattern '*.jar' didn't match anything, but allow_empty is set to False (the default value of allow_empty can be set with --incompatible_disallow_empty_glob).
ERROR: /Users/sgowroji/bazelci/rules_testing/rules_testing/docgen/BUILD:24:16: Target '@@stardoc+//stardoc:templates/markdown_tables/module_extension.vm' contains an error and its package is in error and referenced by '//docgen:_docs_action_subject'
Target //docs:requirements_test was skipped
ERROR: Analysis of target '//docgen:_docs_action_subject' failed; build aborted: Analysis failed
INFO: Elapsed time: 22.651s, Critical Path: 0.03s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
//docs:requirements_test SKIPPED
Executed 0 out of 1 test: 1 was skipped.
All tests passed but there were other errors during the build.
CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4189#019274a0-a4f7-4c6a-985e-2429371cae1f
Platform: Ubuntu
Logs:
Culprit: bazelbuild/bazel#8195
Steps:
CC Greenteam @fweikert