-
Notifications
You must be signed in to change notification settings - Fork 520
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
fix(examples): fix jest example on windows #2178
Conversation
Failing on CI
do you know how to fix? |
examples/jest/.bazelrc
Outdated
@@ -1 +1,6 @@ | |||
import %workspace%/../../common.bazelrc | |||
|
|||
# Do not build runfile forests by default. If an execution strategy relies on runfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, thanks for the links! It seems like this isn't particular to the jest example, right? Maybe we should have this in the /common.bazelrc so it gets picked up by all our tests, as well as new workspaces created with @bazel/create
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea! that is a good Idea this will also help normal run files (nodejs_binary) to work on windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done. Moved it into the common bazelrc
# Need to set the pwd to avoid jest needing a runfiles helper | ||
# Windows users with permissions can use --enable_runfiles | ||
# to make this test work | ||
"no-bazelci-windows", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice thanks for removing one of these
I'm currently on it – seems that the runfilesHelper has a bug on windows as well (need to debug the wall of rc flags that are used on the ci :D). |
0589311
to
a090e56
Compare
@alexeagle The updated regex in the The problem is that the msys2 package sometimes writes paths with a lower letter: |
@alexeagle can you help me with the failing ci – suddenly the whole ci seems to fail. No clue why. Locally it is working well: |
sorry I haven't had time to repro, maybe someone in Slack #javascript can help? |
I was finding the run and test commands on a nodejs binary on Windows gave an error message similar to the one mentioned in the following post when --enable_runfiles is passed in on the command line: bazel-contrib#2178 (comment) Running with --noenable_runfiles, the tests worked correctly, but other packages in my repo require runfiles. This patch changes the resolution to use the MANIFEST file inside the runfiles folder when runfiles are enabled, which seems to fix the issue.
I was finding the run and test commands on a nodejs binary on Windows gave an error message similar to the one mentioned in the following post when --enable_runfiles is passed in on the command line: bazel-contrib#2178 (comment) Running with --noenable_runfiles, the tests worked correctly, but other packages in my repo require runfiles. This patch changes the resolution to use the MANIFEST file inside the runfiles folder when runfiles are enabled, which seems to fix the issue.
I was finding the run and test commands on a nodejs binary on Windows gave an error message similar to the one mentioned in the following post when --enable_runfiles is passed in on the command line: bazel-contrib#2178 (comment) Running with --noenable_runfiles, the tests worked correctly, but other packages in my repo require runfiles. This patch changes the resolution to use the MANIFEST file inside the runfiles folder when runfiles are enabled, which seems to fix the issue for me.
a090e56
to
2463136
Compare
cf80b0b
to
1e785bc
Compare
hey @lukasholzer I tried to green this up, but still failing on windows:
could you TAL? |
1e785bc
to
979137d
Compare
@alexeagle I get now a different error locally when running: |
23cc9bd
to
73aa64e
Compare
73aa64e
to
c70ed1d
Compare
c70ed1d
to
daa884d
Compare
daa884d
to
b3c012a
Compare
b3c012a
to
20c259a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Fixes #1454
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information