Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Conversation

sdake
Copy link
Member

@sdake sdake commented Oct 14, 2019

This work runs e2e testing using end to end testing against the
istio/istio repository.

To run - use make e2e.

Depends-On: istio/istio#17864

@sdake sdake requested a review from a team as a code owner October 14, 2019 19:48
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Oct 14, 2019
@istio-testing istio-testing added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 14, 2019
sdake pushed a commit to sdake/test-infra that referenced this pull request Oct 14, 2019
tests/e2e/e2e.sh Outdated

function cleanup_kind_cluster() {
kind export logs --name istio-testing "${ARTIFACTS}/kind"
# kind delete cluster --name=istio-testing
Copy link
Member

Choose a reason for hiding this comment

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

This is a must have! see kubernetes-sigs/kind#759. We should have a consolidated kind library. Maybe in common files? Opened istio/istio#17948 to track this

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree a consolidated setup library would be great. When I come up for air after 1.4, I had planned to work a bit more on cross-repo gating and make things generic enough so that different components can use the same set of scripts...

Copy link
Member Author

Choose a reason for hiding this comment

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

comment removed from line 23.

- name: default
protocol: layer2
addresses:
- 172.17.255.1-172.17.255.250
Copy link
Member

Choose a reason for hiding this comment

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

will this work in all environments? An alternative used in installer is a nodeport

Copy link
Member Author

@sdake sdake Oct 17, 2019

Choose a reason for hiding this comment

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

I am not sure. It works where we need it the most - which is automated testing. This (should) work on all Linux platforms. I have read in the past this may not work well on mac, but I have no reason to think it may not. I'd suggest a little latitude here, so I can prove this out, and if things are not working, I can setup the call to --use-local or whatever it is for e2e. We have a project goal of getting rid of nodeport testing...

tests/e2e/e2e.sh Outdated
}

function setup_docker() {
# HUB=istio-testing TAG=istio-testing make -f Makefile.core.mk docker
Copy link
Member

Choose a reason for hiding this comment

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

don't we need to build?

Copy link
Member Author

Choose a reason for hiding this comment

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

done. Not sure why things worked well for me prior.

tests/e2e/e2e.sh Outdated

if [[ ! -d "${ISTIO_DIR}" ]]
then
git clone https://github.com/istio/istio.git "${ISTIO_DIR}"
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this be done before we write the istio-operator.yaml?

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

Steven Dake added 2 commits October 16, 2019 18:05
This work runs e2e testing using end to end testing against the
istio/istio repository.

To run - use `make e2e`.

Depends-On: istio/istio#17864
@sdake
Copy link
Member Author

sdake commented Oct 17, 2019

@howardjohn PTAL thanks!

Copy link
Member

@howardjohn howardjohn left a comment

Choose a reason for hiding this comment

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

looks good except that one comment

go.mod Outdated
@@ -69,6 +69,7 @@ require (
k8s.io/kube-proxy v0.0.0-00010101000000-000000000000 // indirect
k8s.io/kubectl v0.0.0-20191003004222-1f3c0cd90ca9
sigs.k8s.io/controller-runtime v0.2.2
sigs.k8s.io/kind v0.5.1 // indirect
Copy link
Member

Choose a reason for hiding this comment

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

this should not be here and pulls in dependencies that may not be ok for istio/istio

Copy link
Member Author

Choose a reason for hiding this comment

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

Ya not sure why this is present will fix this after dinner tonight.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ya not sure why this is present will fix this after dinner tonight.

@morvencao morvencao self-requested a review October 17, 2019 03:22
Copy link
Member

@morvencao morvencao left a comment

Choose a reason for hiding this comment

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

@sdake Can we addd license CC-BY-4.0 to https://github.com/istio/operator/blob/master/common/config/license-lint.yml to pass the license linter?

@istio-testing
Copy link

istio-testing commented Oct 17, 2019

@sdake: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
gencheck_operator e0bd815 link /test gencheck_operator

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. I understand the commands that are listed here.

@sdake
Copy link
Member Author

sdake commented Oct 17, 2019

@sdake Can we addd license CC-BY-4.0 to https://github.com/istio/operator/blob/master/common/config/license-lint.yml to pass the license linter?

I reverted the gomod changes so the liniter should be gtg now.

# Create a clone of the Istio repository
if [[ ! -d "${ISTIO_DIR}" ]]
then
git clone https://github.com/sdake/istio.git "${ISTIO_DIR}"
Copy link
Member

Choose a reason for hiding this comment

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

is this correct? pointing to your personal repo?

Copy link
Member

Choose a reason for hiding this comment

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

also, not sure why this cmd is needed? Seems you need to clone the istio-operator repo to get the deploy dir.

Copy link
Member

Choose a reason for hiding this comment

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

please follow up on this

# Create a clone of the Istio repository
if [[ ! -d "${ISTIO_DIR}" ]]
then
git clone https://github.com/sdake/istio.git "${ISTIO_DIR}"
Copy link
Member

Choose a reason for hiding this comment

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

please follow up on this

istio-testing pushed a commit to istio/test-infra that referenced this pull request Oct 17, 2019
* Implement operator e2e

Depends-On: istio/operator#379

* Address reviewer comments
@istio-testing istio-testing merged commit 1057319 into istio:master Oct 17, 2019
sdake pushed a commit to sdake/test-infra that referenced this pull request Dec 1, 2019
* Implement operator e2e

Depends-On: istio/operator#379

* Address reviewer comments
sdake pushed a commit to sdake/test-infra that referenced this pull request Dec 1, 2019
* Implement operator e2e

Depends-On: istio/operator#379

* Address reviewer comments
sdake pushed a commit to sdake/test-infra that referenced this pull request Dec 1, 2019
* Implement operator e2e

Depends-On: istio/operator#379

* Address reviewer comments
sdake pushed a commit to sdake/test-infra that referenced this pull request Dec 5, 2019
* Implement operator e2e

Depends-On: istio/operator#379

* Address reviewer comments
sdake pushed a commit to sdake/test-infra that referenced this pull request Dec 5, 2019
* Implement operator e2e

Depends-On: istio/operator#379

* Address reviewer comments
sdake pushed a commit to sdake/test-infra that referenced this pull request Dec 5, 2019
* Implement operator e2e

Depends-On: istio/operator#379

* Address reviewer comments
sdake pushed a commit to sdake/test-infra that referenced this pull request Dec 17, 2019
* Implement operator e2e

Depends-On: istio/operator#379

* Address reviewer comments
sdake pushed a commit to sdake/test-infra that referenced this pull request Dec 18, 2019
* Implement operator e2e

Depends-On: istio/operator#379

* Address reviewer comments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants