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

Skydoc failed: error executing Skydoc command with Bazel@HEAD #153

Open
sgowroji opened this issue Dec 22, 2023 · 4 comments
Open

Skydoc failed: error executing Skydoc command with Bazel@HEAD #153

sgowroji opened this issue Dec 22, 2023 · 4 comments

Comments

@sgowroji
Copy link
Member

sgowroji commented Dec 22, 2023

https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3542#018c8f87-ac28-432a-80ce-2b59d1b21d01

Platform : MAC

Logs:


ERROR: /Users/buildkite/builds/bk-imacpro-19/bazel-org-repo-root/rules_sass/sass/docs/BUILD:5:12: Generating Skylark doc for docs (3 files) failed: (Exit 1): skydoc failed: error executing Skydoc command (from target //sass/docs:docs)
--
  | (cd /private/var/tmp/_bazel_buildkite/f203d2471e7226c121700c5d421f6312/sandbox/darwin-sandbox/231/execroot/_main && \
  | exec env - \
  | PATH=/Users/buildkite/Library/Caches/bazelisk/local/-tmp-tmp5s-e-ndg-bazel/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin \
  | bazel-out/darwin_x86_64-opt-exec-ST-13d3ddad9198/bin/external/io_bazel_skydoc/skydoc/skydoc '--format=html' '--output_file=bazel-out/darwin_x86_64-fastbuild/bin/sass/docs/docs-skydoc.zip' '--strip_prefix=sass/' --overview '--site_root=/rules_sass' sass/sass.bzl sass/sass_repositories.bzl sass/npm_sass_library.bzl)
  | # Configuration: e66dbb2fd837b73b65397508cf3e21e89fe5196d0f64392a69bff2f9dc85ab6f
  | # Execution platform: @@local_config_platform//:host



RROR: /Users/buildkite/builds/bk-imacpro-5/bazel-org-repo-root/rules_sass/sass/docs/BUILD:5:12: Generating Skylark doc for docs (3 files) failed: (Exit 1): skydoc failed: error executing Skydoc command (from target //sass/docs:docs)
Traceback (most recent call last):
  File "/private/var/tmp/_bazel_buildkite/def0945ba6f6ced8e7aeaed9b3cc8588/sandbox/darwin-sandbox/231/execroot/_main/bazel-out/darwin_x86_64-opt-exec-ST-13d3ddad9198/bin/external/io_bazel_skydoc/skydoc/skydoc.runfiles/_main/../io_bazel_skydoc/skydoc/main.py", line 19, in <module>
    import jinja2
  File "/private/var/tmp/_bazel_buildkite/def0945ba6f6ced8e7aeaed9b3cc8588/sandbox/darwin-sandbox/231/execroot/_main/bazel-out/darwin_x86_64-opt-exec-ST-13d3ddad9198/bin/external/io_bazel_skydoc/skydoc/skydoc.runfiles/jinja2_archive/jinja2/__init__.py", line 33, in <module>
    from jinja2.environment import Environment, Template
  File "/private/var/tmp/_bazel_buildkite/def0945ba6f6ced8e7aeaed9b3cc8588/sandbox/darwin-sandbox/231/execroot/_main/bazel-out/darwin_x86_64-opt-exec-ST-13d3ddad9198/bin/external/io_bazel_skydoc/skydoc/skydoc.runfiles/jinja2_archive/jinja2/environment.py", line 13, in <module>
    from jinja2 import nodes
  File "/private/var/tmp/_bazel_buildkite/def0945ba6f6ced8e7aeaed9b3cc8588/sandbox/darwin-sandbox/231/execroot/_main/bazel-out/darwin_x86_64-opt-exec-ST-13d3ddad9198/bin/external/io_bazel_skydoc/skydoc/skydoc.runfiles/jinja2_archive/jinja2/nodes.py", line 19, in <module>
    from jinja2.utils import Markup
  File "/private/var/tmp/_bazel_buildkite/def0945ba6f6ced8e7aeaed9b3cc8588/sandbox/darwin-sandbox/231/execroot/_main/bazel-out/darwin_x86_64-opt-exec-ST-13d3ddad9198/bin/external/io_bazel_skydoc/skydoc/skydoc.runfiles/jinja2_archive/jinja2/utils.py", line 531, in <module>
    from markupsafe import Markup, escape, soft_unicode
  File "/private/var/tmp/_bazel_buildkite/def0945ba6f6ced8e7aeaed9b3cc8588/sandbox/darwin-sandbox/231/execroot/_main/bazel-out/darwin_x86_64-opt-exec-ST-13d3ddad9198/bin/external/io_bazel_skydoc/skydoc/skydoc.runfiles/markupsafe_archive/markupsafe/__init__.py", line 13, in <module>
    from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' 

Steps:

git clone -v https://github.com/bazelbuild/rules_sass.git
git reset a9a447e887d7b558716d520ae88bc0426a29cbfc --hard
export USE_BAZEL_VERSION=20a8a206c49e2979ddc154296bc1715f5781bb0c
bazel build  //...

CC Greenteam @Wyverald

@sgowroji
Copy link
Member Author

CC @jelbourn

@meteorcloudy
Copy link
Member

io_bazel_skydoc should probably be updated @jelbourn

@meteorcloudy
Copy link
Member

If this is not getting fixed, we should disable rules_sass in Bazel's downstream pipeline.

meteorcloudy pushed a commit to bazelbuild/continuous-integration that referenced this issue Jan 23, 2024
Moving rules_sass to Disabled CI as there is no response
bazelbuild/rules_sass#153 (comment)
@jelbourn
Copy link
Collaborator

I'll see if I can find time to investigate this week, but disabling the CI for now seems reasonable. We do still use the rules for Angular, but we're behind on Bazel versions for other reasons

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

3 participants