-
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
Test script customisation and removing duplicates from push test #3645
Test script customisation and removing duplicates from push test #3645
Conversation
d557853
to
5db42e0
Compare
0dcaef0
to
bb143ec
Compare
@@ -126,7 +126,7 @@ var _ = Describe("odo devfile push command tests", func() { | |||
[]string{"stat", "/test/server.js"}, | |||
func(cmdOp string, err error) bool { | |||
statErr = err |
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.
You can remove statErr = err
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.
We are also verifying that err should not have occured here - https://github.com/openshift/odo/pull/3645/files#diff-c127bd883f89dd3a7abff6183ad9921dR157 . So keeping this in the test
@@ -126,7 +126,7 @@ var _ = Describe("odo devfile push command tests", func() { | |||
[]string{"stat", "/test/server.js"}, | |||
func(cmdOp string, err error) bool { | |||
statErr = err | |||
return true | |||
return err == nil |
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.
+1 for better approach
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.
This how we can avoid test script flakes.
/retest |
Codecov Report
@@ Coverage Diff @@
## master #3645 +/- ##
=======================================
Coverage 44.15% 44.15%
=======================================
Files 139 139
Lines 13345 13345
=======================================
Hits 5892 5892
Misses 6874 6874
Partials 579 579 Continue to review full report at Codecov.
|
a49d7a7
to
ac7d830
Compare
49ebe0a
to
3ec6c98
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: amitkrout 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 |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
platform issue /retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
5 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
3ec6c98
to
f02c557
Compare
/lgtm |
I have created a debug pr #3792. We will get some more information on the failure. |
so adding a hold on this then |
This pr is nowhere related to the issue https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_odo/3645/pull-ci-openshift-odo-master-v4.5-integration-e2e/1296139227431440384#1:build-log.txt%3A671 It's something that is coming after 18th Aug and the main point is its not only happening on this pr only. More deatils - #3792 (comment) /unhold |
What type of PR is this?
/kind cleanup
What does does this PR do / why we need it:
Removing duplicates and code customisation in the script.
Which issue(s) this PR fixes:
Fixes - Part of #3385
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer:
make test-cmd-devfile-push
should pass.