Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bazel CI] lint_stardoc failed: error executing Stardoc command with Bazel@HEAD #1208

Open
sgowroji opened this issue Aug 20, 2024 · 0 comments

Comments

@sgowroji
Copy link
Member

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4065#019168cb-ee0f-4299-af56-2be09012a8c3

Platform: Ubuntu

Logs:

 ERROR: /var/lib/buildkite-agent/builds/bk-docker-bg58/bazel-org-repo-root/rules_kotlin/kotlin/BUILD:39:12: Generating proto for Starlark doc for lint failed: (Exit 1): lint_stardoc failed: error executing Stardoc command (from target //kotlin:lint)
  (cd /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f5723a0613570fe02e7fb0d071725b12/sandbox/linux-sandbox/11/execroot/_main && \
  exec env - \
  bazel-out/k8-opt-exec-ST-d57f47055a04/bin/kotlin/lint_stardoc '--input=@@//kotlin:lint.bzl' '--workspace_name=_main' '--output=bazel-out/k8-fastbuild/bin/kotlin/lint.raw')
# Configuration: 8e50a3246821cfc8f7f910e99c6a5d00d9318aaff1b5756f08506c8e88f2984b
# Execution platform: @@platforms//host:host
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
Exception in thread "main" java.lang.IllegalArgumentException: com.google.devtools.build.lib.cmdline.LabelSyntaxException: invalid repository name '@rules_java+': repo names may contain only A-Z, a-z, 0-9, '-', '_', '.' and '~' and must not start with '~'
	at com.google.devtools.build.lib.cmdline.Label.parseCanonicalUnchecked(Label.java:152)
	at com.google.devtools.build.skydoc.SkydocMain.toCanonicalLabel(SkydocMain.java:491)
	at com.google.devtools.build.skydoc.SkydocMain.recursiveEval(SkydocMain.java:447)
	at com.google.devtools.build.skydoc.SkydocMain.recursiveEval(SkydocMain.java:450)
	at com.google.devtools.build.skydoc.SkydocMain.eval(SkydocMain.java:289)
	at com.google.devtools.build.skydoc.SkydocMain.main(SkydocMain.java:151)
Caused by: com.google.devtools.build.lib.cmdline.LabelSyntaxException: invalid repository name '@rules_java+': repo names may contain only A-Z, a-z, 0-9, '-', '_', '.' and '~' and must not start with '~'
	at com.google.devtools.build.lib.cmdline.LabelParser.syntaxErrorf(LabelParser.java:208)
	at com.google.devtools.build.lib.cmdline.RepositoryName.validate(RepositoryName.java:160)
	at com.google.devtools.build.lib.cmdline.LabelParser$Parts.validateRepoName(LabelParser.java:180)
	at com.google.devtools.build.lib.cmdline.LabelParser$Parts.validateAndCreate(LabelParser.java:72)
	at com.google.devtools.build.lib.cmdline.LabelParser$Parts.parse(LabelParser.java:164)
	at com.google.devtools.build.lib.cmdline.Label.parseCanonical(Label.java:138)
	at com.google.devtools.build.lib.cmdline.Label.parseCanonicalUnchecked(Label.java:150)
	... 5 more
Target //kotlin:stardoc failed to build

Culprit:

Steps:

git clone https://github.com/bazelbuild/rules_kotlin
git reset 61e1a3d57e7bc353293b0d3d87c5f8e9102ba123  --hard
export USE_BAZEL_VERSION=ffdf41acfd4d82bdfd3f855b8f4aa3840d918eba
bazel buiild //kotlin:stardoc 

CC Greenteam @Wyverald

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant