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
Add readme for running unit tests on windows node #92
Conversation
Welcome @liyanhui1228! |
/assign @yujuhong |
/cc @pjh |
@yujuhong: GitHub didn't allow me to request PR reviews from the following users: pjh. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
README.md
Outdated
|
||
#### Install golang on Windows machine | ||
|
||
Download the go msi for windows from [here](https://golang.org/dl/) and scp it |
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.
Suggestion for some details:
Pick the Go version that is compatible with the Kubernetes version you intend to build. Download the MSI file to the Windows machine for development.
Invoke-Webrequest https://dl.google.com/go/go-<version>.windows-amd64.msi -Outfile go<version>.windows-amd64.msi
Start the MSI installer, e.g., Start-Process .\go<version.windows-amd64.msi
and finish the installation.
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.
README.md
Outdated
@@ -129,11 +129,67 @@ kubetest --test=true \ | |||
--test_args=--node-os-distro=windows --ginkgo.focus=\\[Conformance\\]|\\[NodeConformance\\]|\\[sig-windows\\]|\\[sig-apps\\].CronJob --ginkgo.skip=\\[LinuxOnly\\]|\\[k8s.io\\].Pods.*should.cap.back-off.at.MaxContainerBackOff.\\[Slow\\]\\[NodeConformance\\]|\\[k8s.io\\].Pods.*should.have.their.auto-restart.back-off.timer.reset.on.image.update.\\[Slow\\]\\[NodeConformance\\] | |||
``` | |||
|
|||
## Running unit test | |||
|
|||
Note: This assumes the Windows node is running on GCE, but should be applicable |
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.
@PatrickLang some of content (e.g., setting up git
, etc) fits better in a development guide (e.g., https://github.com/kubernetes/community/blob/master/contributors/devel/development.md).
I don't think there's one for Windows, so it seems okay to add it here. Let us know if you think otherwise.
README.md
Outdated
|
||
to install git. | ||
|
||
#### Scp the files and corresponding test files to the Windows machine |
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.
I think we can leave this section out since it's really GCE-specific and also depends on individual's workflow. The rest of the change seems generic.
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.
OK! Removed.
gcloud compute scp --recurse [FILE_PATHS_LOCAL] [WINDOWS_NODE_NAME]:/C:/[PATH_ON_WINDOWS] | ||
``` | ||
|
||
#### Run the tests |
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.
Set up the Kubernetes repository on the node by following the instructions in Github workflow
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.
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 for adding this!
README.md
Outdated
## Running unit test | ||
|
||
Note: This assumes the Windows node is running on GCE, but should be applicable | ||
to other platforms with slight changes. |
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.
I don't see anything GCP-specific below (maybe it was here previously but was then removed). Just remove this note?
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.
Yep, removed.
PTAL, thanks! |
README.md
Outdated
Add go path to the `PATH` environment variable: | ||
|
||
``` | ||
$env:PATH=$env:PATH+";C"\go\bin" |
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.
Typo here? should be c:\go\bin
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 for finding this out! Fixed.
/lgtm |
Friendly ping! Can someone approve this PR? |
@adelina-t @PatrickLang could one of you approve this? Thanks! |
choco install git.install | ||
``` | ||
|
||
to install git. |
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.
also need to add git path into env?
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.
Good catch! Added.
I'm sorry I missed this earlier. Thanks so much for getting this documented! |
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liyanhui1228, michmike, PatrickLang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
No description provided.