-
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
Running spec parallelly for clean test template #1759
Running spec parallelly for clean test template #1759
Conversation
.travis.yml
Outdated
@@ -34,6 +34,7 @@ jobs: | |||
- make bin | |||
- sudo cp odo /usr/bin | |||
- oc login -u developer | |||
- travis_wait make clean-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.
Keeping it only for testing purpose on travis. Will be removed before merge
scripts/openshiftci-presubmit-e2e.sh
Outdated
@@ -11,6 +11,7 @@ make configure-installer-tests-cluster | |||
make bin | |||
export PATH="$PATH:$(pwd)" | |||
export CUSTOM_HOMEDIR="/tmp/artifacts" | |||
make clean-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.
Keeping it only for testing purpose on prow. Will be removed before merge
/hold |
/hold cancel |
ping @mohammedzee1000 @dharmit PTAL |
How are you installing ginko here? |
https://github.com/openshift/odo/pull/1759/files#diff-bbfcfec7ae4d7cff5d2b469274d9ccaaR13 |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mohammedzee1000 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 |
1 similar comment
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mohammedzee1000 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 |
a bit of documentation around Also maybe a section in the our docs on running tests parallel or serially would be great @amitkrout - maybe a separate PR or in this itself |
Will add the doc change around |
@girishramnani Doc updated. PTAL |
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.
So confused with regards to this PR.
We remove the documentation about how to run e2e tests locally, but you provide documentation to use make clean-test
...
Which doesn't even run all the e2e tests?
docs/development.adoc
Outdated
---- | ||
|
||
* For the component tests use: | ||
* To run the test spec parallelly (default): |
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.
in parallel
.
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
docs/development.adoc
Outdated
---- | ||
$ make test-cmp-e2e | ||
$ make clean-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.
why are we using "clean-test" this is fairly confusing, why not "e2e-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.
Here the intention is to provide the doc reference to @mohammedzee1000 and @dharmit to write other remaining test for parallel run.
Makefile
Outdated
.PHONY: clean-test | ||
clean-test: | ||
ifeq ($(SPEC_EXEC_METHOD),series) | ||
go test -v github.com/openshift/odo/tests/template --ginkgo.focus="Example of a clean test" -ginkgo.slowSpecThreshold=$(SLOW_SPEC_THRESHOLD) -ginkgo.v -timeout $(TIMEOUT) |
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 like that we use "Example of a clean test" it makes no sense. clean-test
is running all e2e tests correct?
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.
No, ```clean-test`` is just a template for reference of how to write clean and efficient integration/e2e 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.
if it is just a template why do we need it in the makefile?
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.
It is just for a reference for @mohammedzee1000 and @dharmit who are also going to pick some of the test. In the very next sub task of #1473.
Anyway i will add a note there so that we don't forget to remove it in the next subtask fix.
docs/development.adoc
Outdated
@@ -160,33 +160,22 @@ $ MINISHIFT_ENABLE_EXPERIMENTAL=y minishift start --extra-clusterup-flags "--ena | |||
|
|||
.Procedure: | |||
|
|||
To deploy an integration test: | |||
Integration tests can be run in the following two ways: |
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.
Yeah, the below information is completely wrong. You remove information on how to run the tests... (make test-e2e
) and make clean-test
doesn't even do anything.
You need to keep the make test-e2e
here so that people can run these integration tests locally.
The documentation you're adding should be about running each test individually.
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 have addressed those comment here #1759 (comment). Also i ahev added extra info in the NOTE
. Probably the NOTE
section will clarify most of your doubts.
/hold |
98ab997
to
72d334f
Compare
Done, Currently most of the test |
Then we can't merge this PR until it is fixed. There are people that are using this, and you are breaking it. |
Now i got the issue why it's taking long time to go in because i believe we are not in same page. My intention was to provide as much as info through doc or Makefile change to @mohammedzee1000 and @dharmit by pushing this into master first as discussed in our last sprint planning meeting. But it did not work that way. Unassigned @mohammedzee1000 and @dharmit from issue #1473. i am going to take the full ownership of it. @cdrage @kadel I have updated the pr. Can you pease have a look again. |
The only issue is that you can't just add make targets that are not working that is all. If you want to provide info and guidelines do it via comments or documentation. |
Yup, i understand. I was just enforcing the the comment #1759 (comment) which obviously not a good idea. I have updated pr Please do a review again |
That comment was intended to convey that we need documentation if you add a new Makefile command. It was since you removed the documentation on |
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.
changes LGTM.
/lgtm
/hold cancel |
/refresh |
What is the purpose of this change? What does it change?
To reduce test time both locally and on CI too.
Was the change discussed in an issue?
fixes - part of #1473
How to test changes?
make clean-test