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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

@build_bazel_rules_nodejs//:bzl has no integration test #3030

Open
UebelAndre opened this issue Oct 21, 2021 · 4 comments
Open

@build_bazel_rules_nodejs//:bzl has no integration test #3030

UebelAndre opened this issue Oct 21, 2021 · 4 comments
Assignees
Labels
package:builtin not in any of the npm packages tests

Comments

@UebelAndre
Copy link
Contributor

馃悶 bug report

Affected Rule

The issue is caused by the rule:

Is this a regression?

Yes, loads and stardoc used to work just fine in at least 4.0.0

Description

A clear and concise description of the problem...

Currently, rendering docs via stardoc is broken for rules_rust on newer versions of rules_nodejs because of an update to some of the .bzl files.

(21:15:47) ERROR: error loading package 'wasm_bindgen': in /workdir/wasm_bindgen/wasm_bindgen.bzl: in /workdir/wasm_bindgen/providers.bzl: cannot load '@build_bazel_rules_nodejs//internal/providers:declaration_info.bzl': no such file

bazelbuild/rules_rust#984
bazelbuild/rules_rust#953

There should be an integration test to ensure the //:bzl target actually includes all files such that external workspaces can continue to render stardoc docs.

ERROR: /private/var/tmp/_bazel_user/ed46dd183bde476d0b6a237289845378/external/build_bazel_rules_nodejs/BUILD.bazel:42:12: no such target '@build_bazel_rules_nodejs//internal/generated_file_test:bzl': target 'bzl' not declared in package 'internal/generated_file_test' defined by /private/var/tmp/_bazel_user/ed46dd183bde476d0b6a237289845378/external/build_bazel_rules_nodejs/internal/generated_file_test/BUILD and referenced by '@build_bazel_rules_nodejs//:bzl'
ERROR: /private/var/tmp/_bazel_user/ed46dd183bde476d0b6a237289845378/external/build_bazel_rules_nodejs/BUILD.bazel:42:12: no such target '@build_bazel_rules_nodejs//internal/linker:bzl': target 'bzl' not declared in package 'internal/linker' defined by /private/var/tmp/_bazel_user/ed46dd183bde476d0b6a237289845378/external/build_bazel_rules_nodejs/internal/linker/BUILD.bazel and referenced by '@build_bazel_rules_nodejs//:bzl'

馃敩 Minimal Reproduction

Likely bazelbuild/rules_rust#953

@alexeagle
Copy link
Collaborator

yeah I think the only integration test is to actually run stardoc from userland against our release artifact. And it would have to cover all the APIs, I guess just load()ing all of them is enough

@alexeagle alexeagle self-assigned this Oct 21, 2021
@alexeagle
Copy link
Collaborator

also if we used gazelle to generate our bzl_library targets that might make it hard to get it wrong

@UebelAndre
Copy link
Contributor Author

yeah I think the only integration test is to actually run stardoc from userland against our release artifact. And it would have to cover all the APIs, I guess just load()ing all of them is enough

I think as long as something is loaded from top level .bzl files I think it'd generally be fine. I don't think new modules are rapidly added or removed and anything in internal or private should probably not be loaded by users. But I'm definitely lacking in experience here. You'd know better than I would 馃槃

@UebelAndre
Copy link
Contributor Author

I opened #3068 to fix the ability to generate docs.

@thesayyn thesayyn added package:builtin not in any of the npm packages tests labels Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:builtin not in any of the npm packages tests
Projects
None yet
Development

No branches or pull requests

3 participants