-
Notifications
You must be signed in to change notification settings - Fork 244
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
Unit test on windows #2562
Unit test on windows #2562
Conversation
@prietyc123, @amitkrout: |
8d59973
to
b8eb7f1
Compare
Codecov Report
@@ Coverage Diff @@
## master #2562 +/- ##
=========================================
Coverage ? 43.64%
=========================================
Files ? 82
Lines ? 7511
Branches ? 0
=========================================
Hits ? 3278
Misses ? 3912
Partials ? 321
Continue to review full report at Codecov.
|
@prietyc123 , it seems that the make command is not installed on the Travis CI machine on which the unit tests are executed. You may need to change the job config to get it installed. |
32c7bee
to
4193876
Compare
/retest |
1 similar comment
/retest |
Few unit tests build is failed. So it is blocked till #2586 issue is fixed. |
e0cf020
to
c8d0d73
Compare
Netflix/go-expect#10 according to the issue, the go-expect library is not supported on windows. We are using the library here https://github.com/openshift/odo/blob/bba04d2aeb8a4f02867b320d93554c70e7726072/glide.yaml#L46 in ODO. This is the reason build is failing on windows
Also tektoncd/cli#191 might help you find a solution. |
3a9c518
to
f49c2e2
Compare
Issue created - #2586 to track UTs failure travis CI on Win10 platform cc_ @prietyc123 |
f49c2e2
to
e69d430
Compare
c066906
to
b2331e8
Compare
pkg/component/watch_test.go
Outdated
@@ -1,3 +1,6 @@ | |||
// +build !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.
Skip build for windows and macOS. Watch test will be revised in #2570 for windows and macOS.
pkg/component/watch_test.go
Outdated
@@ -1,3 +1,6 @@ | |||
// +build !windows | |||
// +build !osx |
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.
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.
@prietyc123 Can we make this in a single line ? For example
// +build !windows !osx
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.
@prietyc123 Can we make this in a single line ? For example
// +build !windows !osx
Done with // +build !windows,!osx
/retest |
/test v4.3-integration-e2e-benchmark |
@@ -1,3 +1,5 @@ | |||
// +build !windows,!osx |
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.
Skipping watch test build on windows and macOS. It will be revised in #2570
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.
Skipping watch test build on windows and macOS. It will be revised in #2570
It would be good to add this as a comment to all skipped files.
/lgtm |
script: | ||
- export PATH="$PATH:$GOPATH/bin" | ||
- make bin | ||
- rm -r /tmp/* |
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.
There is no /tmp
on windows. How is this working? Is there some kind of conversion to windows paths?
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.
@kadel In travis minimal gnu for windows is set as a default terminal for running scripts. minimal gnu provides the similar Linux file system on windows platform. As per the gnu environment the temp file will be generated in /tmp
directory. For example
So its good practice to remove the temp files before running the actual test.
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.
Tests LGTM!
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cdrage 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 |
What type of PR is this?
/kind feature
What does does this PR do / why we need it:
Run all the unit test on windows platform
Which issue(s) this PR fixes:
Fixes #2539
How to test changes / Special notes to the reviewer:
Unit test should run on windows through travis CI