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

rules_nodejs red on Bazel CI #165

Closed
lfpino opened this issue Mar 27, 2018 · 6 comments
Closed

rules_nodejs red on Bazel CI #165

lfpino opened this issue Mar 27, 2018 · 6 comments
Labels

Comments

@lfpino
Copy link

lfpino commented Mar 27, 2018

Hi there,

I'm seeing some failures in Bazel CI regarding rules_nodejs on Windows: https://buildkite.com/bazel/bazel-with-downstream-projects-bazel/builds/178#9232903f-1ba0-4670-8bea-083172a0991e

The relevant part of the error message seems to be the following:

D:\temp\tmpo92aq8_a\bazel-bin/src/bazel build --show_progress_rate_limit=5 --curses=yes --color=yes --keep_going --jobs=32 --build_event_json_file=D:\temp\tmpo92aq8_a\build_bep.json --experimental_build_event_json_file_path_conversion=false --announce_rc //... -//:docs
(...)
ERROR: Skipping '//... -//:docs': The package part of '//... -//:docs' should not end in a slash
WARNING: Target pattern parsing failed.
ERROR: command succeeded, but there were errors parsing the target pattern

Can you please take a look?

Thanks!

@lfpino
Copy link
Author

lfpino commented Mar 28, 2018

Friendly ping @alexeagle

@alexeagle
Copy link
Collaborator

Hi @lfpino can you help me understand why the "presubmit" buildkite job passes? I see a green status on this repo, pointing to https://buildkite.com/bazel/nodejs-rules-nodejs-postsubmit

If I don't have enforcement in presubmit, I can't avoid breaking this again in the future.

@alexeagle alexeagle added the bug label Mar 29, 2018
@lfpino
Copy link
Author

lfpino commented Apr 3, 2018

Hi Alex, I don't really know but I think @buchgr will be able to answer.

@alexeagle
Copy link
Collaborator

I tried to fix this
a224f2d

Now I get

bazel build --show_progress_rate_limit=5 --curses=yes --color=yes --keep_going --jobs=32 --build_event_json_file=D:\temp\tmpuxviq13h\build_bep.json --experimental_build_event_json_file_path_conversion=false --announce_rc //... -//:docs
--
  | ERROR: Invalid options syntax: -//:docs

Can you help me understand how to configure the bazel CI with an exclusion pattern @buchgr ?

@jin
Copy link

jin commented Apr 9, 2018

@alexeagle I think all you need is a -- escape before specifying the targets, like this: https://github.com/bazelbuild/bazel/blob/master/.bazelci/presubmit.yml#L13

@alexeagle
Copy link
Collaborator

Of course, that should have been obvious - I guess I was distracted by the yaml syntax. Thanks, fixed in cd85cfa

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

No branches or pull requests

3 participants