Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Turn on testing for windows - #94

Closed
achew22 wants to merge 6 commits into
masterfrom
windows-testing
Closed

achew22 wants to merge 6 commits into
masterfrom
windows-testing

Conversation

@achew22

@achew22 achew22 commented Oct 25, 2018

Copy link
Copy Markdown
Member

No description provided.

@ittaiz ittaiz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
Did the entire build pass for you locally? I have a vague recollection that at least in java we assume POSIX only and use that.
Also the extraction part is very problematic

Comment thread tools/repositories.bzl Outdated
load(":common.bzl", "BAZEL_HASH_DICT", "BAZEL_VERSIONS")

_BAZEL_BINARY_PACKAGE = "http://releases.bazel.build/{version}/release/bazel-{version}-installer-{platform}.sh"
_BAZEL_BINARY_PACKAGE = "http://releases.bazel.build/{version}/release/bazel-{version}-without-jdk-installer-{platform}.{extension}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn’t the without JDK one deprecated?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread .bazelci/presubmit.yml
- "..."
windows:
build_flags:
- "--build_tag_filters=-nowindows"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does nowindows mean?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will filter out all tests tagged with nowindows, so that they won't run on Windows.

Comment thread tools/bazel_hash_dict.bzl
"darwin-x86_64": "6a75339b042ed0bc8ad67f017395e9032f253b241190e3050ba55e4255fde2d8",
"linux-x86_64": "feedbe02c81142ed95ef8d380472f0a0d88e1b9a4b1fb6e21728701032b68e02",
},
"0.18.0": {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we merge it in then we should probably also change the script which generates this file (see comment in top or file)

Comment thread tools/repositories.bzl

def bazel_binaries(versions = BAZEL_VERSIONS):

def bazel_binaries(versions=BAZEL_VERSIONS):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you remove the spaces here and below on purpose?

Comment thread tools/repositories.bzl


def _extract_bazel(rctx):
result = rctx.execute([

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extracting Bazel breaks remote execution. Any functional motivation to do this or just performance?

@achew22

achew22 commented Oct 26, 2018

Copy link
Copy Markdown
Member Author

I was working with another Googler trying to figure out if we could get this test working in Windows. If you don't mind leaving this open for a bit we discovered a bug in Bazel itself, and 1 enhancement that was necessary in this repo, 2 bugs in iBazel and maybe 1 in the windows CI before getting stuck and not being able to continue. We are waiting for another person to come back from vacation then we will get back on it.

@ittaiz

ittaiz commented Oct 26, 2018 via email

Copy link
Copy Markdown
Member

@meteorcloudy

Copy link
Copy Markdown
Member

The CI issue has been resolved. We can test this change properly now.

@jchv

jchv commented Nov 10, 2018

Copy link
Copy Markdown

I did a bit of work on getting Windows working a while ago, but never ended up pushing it anywhere. I made some changes to the Python script so it generated both the URL and the hash, because the Windows URL is annoyingly different from the rest and I didn't want to duplicate the URLs even more (both the Starlark side and the Python side generate URLs as of now.) Also, the old version of rules_go needs to be updated to work on Windows (#95.)

Should I proceed on a separate PR with some of those changes?

@achew22

achew22 commented Nov 10, 2018

Copy link
Copy Markdown
Member Author

@jchv Yeah, that would be really great! You're a champ

@achew22 achew22 mentioned this pull request Nov 11, 2018
@ittaiz

ittaiz commented Apr 28, 2019

Copy link
Copy Markdown
Member

Is this still alive? and how does this relate to #96 ?

@meteorcloudy

Copy link
Copy Markdown
Member

Closing due to #117

@ittaiz
ittaiz deleted the windows-testing branch May 1, 2019 04:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants