Repository navigation
Add Windows Support - #117
Conversation
No. CreateProcessW fails with 206 ( |
achew22
left a comment
There was a problem hiding this comment.
Looks really good! A couple of minor nits and then let's merge it
| } | ||
| } | ||
| repositoryCache.freeze(); | ||
| // repositoryCache.freeze(); |
There was a problem hiding this comment.
I'm waiting @ittaiz 's comment on this. If repositoryCache.freeze() is only for testing testRepositoryCacheIsFrozen, I think we can just remove it. Because I changed the url in testRepositoryCacheIsFrozen to a unknown host, which would produce the expected error on all platform.
| ], | ||
| # We had to disable this test on Windows because it will fail due to running Bazel | ||
| # from a path longer than 256 charactors. | ||
| tags = ["no_windows"], |
There was a problem hiding this comment.
Can you file an issue for this?
There was a problem hiding this comment.
Better than that, I figured out a workaround ;)
| ], | ||
| # Ensure that there could be no network fetch in sandboxing. This tag is a Bazel | ||
| # built-in, it is important to keep it. | ||
| tags = ["block-network"], |
There was a problem hiding this comment.
Why did you need to remove this tag? Does this make it not hermetic?
There was a problem hiding this comment.
Because with newer version of Bazel, WorkspaceDriverIntegrationTest will fail with "unknown host" when it tries to access "mirror.bazel.build", I'm not sure how to deal with this without removing this "block-network" tag. @ittaiz Can you give some instructions?
|
To me this is good to merge. I'm going to give @ittaiz 24 hours (March 15th at 1pm PDT, 4pm EDT) then I'll submit this. After that I'll update the iBazel binary to the latest version and push out a GREAT work! |
|
Turns out I have a bunch of stuff going on that would prevent me from doing this until tomorrow afternoon unless I do it now and we are pretty close to the deadline I prescribed. If there is an issue with this then I think we should do a follow up pr. Thanks so much for sending this in! Merging |
|
Finally taking a look. I think we will have a few issues. I'll mention them here even though it's merged |
|
Update- we have one main issue with the repositoryCache.freeze and the test. |
|
another update- this PR introduced a significant issue in the form of downloading remote_jdk. This issue happened because this PR did a couple of things since a PR that only updated the versions surfaced this issue PR, log. I'm working on a solution but it's not baked in yet. |
|
@ittaiz Thanks for looking into the issues, sorry I didn't consider it in advance, please tell me if I can help with anything! |
|
Sure.
I think the main takeaway is to be super careful when changing existing
tests.
I'm waiting for a bit of input from Irina/Cushon about my take (
https://groups.google.com/forum/#!topic/bazel-sig-jvm/JrJldaI40PM) and
hopefully I will be able to continue
…On Mon, Mar 18, 2019 at 11:14 AM Yun Peng ***@***.***> wrote:
@ittaiz <https://github.com/ittaiz> Thanks for looking into the issues,
sorry I didn't consider it in advance, please tell me if I can help with
anything!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#117 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF1FeBRtXmkFPztmdm0EGfg99Lk8Xks5vX1kOgaJpZM4brWBO>
.
|
Inspired by #96, I also gave it a try.
I enabled all tests but
BazelBaseTestCaseTestbecause it tries to run Bazel from a directory path longer than 260 characters, which caused the following error:@laszlocsomor Does the native test wrapper supports running Bazel from a long path? Maybe it could help fix this issue.
Another test case
testRepositoryCacheIsFrozeninWorkspaceDriverIntegrationTest.javadepends on theWorkspaceDriver.freeze(). Thefreeze()function doesn't work on Windows, and there is basically no way to prevent other process writing to a directory. So I cannot find any other way to freeze the cache. I worked around this by changing the url to a non-existing host which caused a "Unknown host" error to be caught. @ittaiz @hchauvin Is this ok with you?