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

[Bug]: Coverage is broken for js_test when --experimental_split_coverage_postprocessing is defined #100

Open
ceyxiang opened this issue Feb 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ceyxiang
Copy link

What happened?

Hi! I made a copy of the tests in https://github.com/aspect-build/rules_js/tree/main/examples/coverage and tried to run coverage on the tests. Coverage would fail with this error message

==================== Test output for //:coverage:
FATAL: the entry_point '/home/christopher.eng/.cache/bazel/_bazel_christopher.eng/3c1075992044037b8e52b66729be4c8b/sandbox/linux-sandbox/3/execroot/temp_name/bazel-out/k8-fastbuild/bin/coverage_test/coverage.sh.runfiles/temp_name/../aspect_rules_js/js/private/coverage/coverage.js' not found in runfiles================================================================================

Coverage would run fine when I disabled --experimental_split_coverage_postprocessing in my .bazelrc

Version

Development (host) and target OS/architectures: Ubuntu 20.04 x86_64

Output of bazel --version:bazel 6.0.0

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:

  • aspect_rules_js: 1.15.1
  • aspect_bazel_lib: 1.23.3
  • aspect_rules_jest: 0.15.0

Language(s) and/or frameworks involved: Javascript

How to reproduce

I made a local copy of https://github.com/aspect-build/rules_js/tree/main/examples/coverage and ran


bazel coverage //example:coverage

and the error would occur



### Any other information?

[Slack thread where I initially raised the issue](https://bazelbuild.slack.com/archives/CEZUUKQ6P/p1675932171242519)

### Fund our work

- [ ] Sponsor our open source work by donating a [bug bounty](https://opencollective.com/aspect-build/)
@ceyxiang ceyxiang added the bug Something isn't working label Feb 10, 2023
@github-actions github-actions bot added the untriaged Requires traige label Feb 10, 2023
@gregmagolan gregmagolan removed the untriaged Requires traige label Feb 12, 2023
@gregmagolan gregmagolan moved this to 🔖 Ready in Open Source Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: On Deck
Development

No branches or pull requests

2 participants