Skip to content

Migrate Pilot e2e tests to common framework.#4296

Merged
istio-merge-robot merged 1 commit intoistio:masterfrom
nmittler:pilot_test_rewrite
Apr 2, 2018
Merged

Migrate Pilot e2e tests to common framework.#4296
istio-merge-robot merged 1 commit intoistio:masterfrom
nmittler:pilot_test_rewrite

Conversation

@nmittler
Copy link
Copy Markdown
Contributor

No description provided.

@nmittler nmittler requested review from a team, ZackButcher and costinm March 15, 2018 18:39
@istio-merge-robot
Copy link
Copy Markdown

@nmittler PR needs rebase

@istio-merge-robot istio-merge-robot added the needs-rebase Indicates a PR needs to be rebased before being merged label Mar 15, 2018
@nmittler nmittler force-pushed the pilot_test_rewrite branch from d64bfc1 to 5fbee3c Compare March 15, 2018 18:45
@istio-merge-robot istio-merge-robot removed the needs-rebase Indicates a PR needs to be rebased before being merged label Mar 15, 2018
@nmittler nmittler force-pushed the pilot_test_rewrite branch from 5fbee3c to a524ca9 Compare March 15, 2018 19:23
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 15, 2018

Codecov Report

Merging #4296 into master will increase coverage by 1%.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #4296   +/-   ##
======================================
+ Coverage      75%     75%   +1%     
======================================
  Files         297     297           
  Lines       24816   24769   -47     
======================================
- Hits        18524   18513   -11     
+ Misses       5521    5490   -31     
+ Partials      771     766    -5
Impacted Files Coverage Δ
mixer/adapter/stackdriver/stackdriver.go 55% <0%> (-15%) ⬇️
pilot/pkg/config/memory/monitor.go 82% <0%> (-9%) ⬇️
mixer/adapter/rbac/rbac.go 10% <0%> (-1%) ⬇️
mixer/adapter/statsd/statsd.go 96% <0%> (-1%) ⬇️
pilot/pkg/serviceregistry/kube/controller.go 67% <0%> (ø) ⬆️
security/pkg/util/certutil.go 100% <0%> (ø) ⬆️
mixer/adapter/list/stringList.go 100% <0%> (ø) ⬆️
galley/pkg/crd/inject.go 0% <0%> (ø) ⬆️
mixer/adapter/servicecontrol/utils.go 91% <0%> (+2%) ⬆️
broker/pkg/model/config/schema.go 40% <0%> (+3%) ⬆️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7b9fe0d...1ee38a9. Read the comment docs.

@kyessenov
Copy link
Copy Markdown
Contributor

5k removed, 2k added. Did you forget to add something?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's not use port-forwarding if possible. It's very brittle (socat based). Can you create an issue and add a link here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's fine, I'm actually not using it anyway. I originally copied mixer_test.go and thought I might need it.

Copy link
Copy Markdown
Contributor

@costinm costinm left a comment

Choose a reason for hiding this comment

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

Did you forget to add some files ? It looks like the tests are deleted but not added.

@nmittler
Copy link
Copy Markdown
Contributor Author

@costinm all tests are now methods within pilot_test.go

@costinm costinm requested a review from andraxylia March 15, 2018 21:28
@costinm
Copy link
Copy Markdown
Contributor

costinm commented Mar 15, 2018

Ah, github was not even showing it because it was too big...

Can you split it back or is it too hard ? Very large files are not nice, and having them grouped a bit is
easier ( and also people are already used with finding egress tests in the egress file )

I like that they are now go Tests - junit report will be great and same for the dashboard.

@costinm
Copy link
Copy Markdown
Contributor

costinm commented Mar 15, 2018

Also Andra had a very good point - for this kind of move it is critical to send an email to istio-dev,
and have details on how to run the tests and what to expect ( each test will be visible independently, etc).

I assume "go test -t.run=regex" will now work too ?

@costinm
Copy link
Copy Markdown
Contributor

costinm commented Mar 15, 2018

Deferring to Zack on the organization ( one file or many ) - treat it as a suggestion / IMHO.

@costinm
Copy link
Copy Markdown
Contributor

costinm commented Mar 15, 2018

Also: test is failing due to flags - I think preserving the -hub/-tag flag is good and will avoid developers pain ( if they are used with it or have scripts or IDE configs ). Easy to support too.

@kyessenov
Copy link
Copy Markdown
Contributor

kyessenov commented Mar 15, 2018 via email

@istio-merge-robot istio-merge-robot added the needs-rebase Indicates a PR needs to be rebased before being merged label Mar 16, 2018
@istio-merge-robot
Copy link
Copy Markdown

@nmittler PR needs rebase

@nmittler nmittler force-pushed the pilot_test_rewrite branch from 062f2f4 to d914e73 Compare March 16, 2018 17:09
@istio-merge-robot istio-merge-robot removed the needs-rebase Indicates a PR needs to be rebased before being merged label Mar 16, 2018
@andraxylia
Copy link
Copy Markdown
Contributor

This PR is huge and should wait for after the release. We have other critical things to get in and this kind of churn should be done in the beginning of the release.

I see many files being removed, without understanding where the corresponding tests have been moved.

We also had a chat yesterday with where there was implication the pilot e2e tests will become the standard, and not the common tests / bookinfo @costinm @louiscryan .

@nmittler
Copy link
Copy Markdown
Contributor Author

@costinm @kyessenov using a TestMain appears to require that all tests be in the same file as the TestMain. If that's the case, there doesn't appear to be a way to break this apart.

@nmittler nmittler force-pushed the pilot_test_rewrite branch from d914e73 to 07a61df Compare March 16, 2018 17:50
@nmittler
Copy link
Copy Markdown
Contributor Author

@costinm @kyessenov I was able to separate out the tests into the original files after all. PTAL

@nmittler nmittler force-pushed the pilot_test_rewrite branch 2 times, most recently from 70c84d1 to 2140f35 Compare March 16, 2018 18:04
@nmittler nmittler force-pushed the pilot_test_rewrite branch from c1701bc to 1369418 Compare March 27, 2018 15:58
@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Mar 27, 2018
Copy link
Copy Markdown
Contributor

@sebastienvas sebastienvas Mar 27, 2018

Choose a reason for hiding this comment

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

--auth_enable=true

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

--auth_enable=false

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

--auth_enable=false

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

--auth_enable=true

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

istioctl="${GOPATH}/out/linux_amd64/release/istioctl"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@nmittler nmittler force-pushed the pilot_test_rewrite branch from 1369418 to e1942d4 Compare March 27, 2018 16:40
@mandarjog mandarjog force-pushed the pilot_test_rewrite branch from e1942d4 to c712602 Compare March 27, 2018 21:40
@istio-merge-robot
Copy link
Copy Markdown

@nmittler PR needs rebase

@istio-merge-robot istio-merge-robot added the needs-rebase Indicates a PR needs to be rebased before being merged label Mar 27, 2018
@nmittler nmittler force-pushed the pilot_test_rewrite branch from c712602 to 19b25df Compare March 27, 2018 22:52
@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Mar 27, 2018
@nmittler nmittler force-pushed the pilot_test_rewrite branch from 19b25df to e9be40b Compare March 28, 2018 01:16
@istio-merge-robot istio-merge-robot added the needs-rebase Indicates a PR needs to be rebased before being merged label Mar 29, 2018
@istio-merge-robot
Copy link
Copy Markdown

@nmittler PR needs rebase

@nmittler nmittler force-pushed the pilot_test_rewrite branch from e9be40b to 99ab4f4 Compare March 30, 2018 21:44
@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Mar 30, 2018
@sebastienvas
Copy link
Copy Markdown
Contributor

So you know, you actually don't need to rebase, you can just merge. github review do not work well with rebase, so you end up losing all the reviewer work.

@istio-merge-robot
Copy link
Copy Markdown

@nmittler PR needs rebase

@ZackButcher
Copy link
Copy Markdown
Contributor

/lgtm

@istio-testing
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: costinm, kyessenov, ZackButcher

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@istio-merge-robot
Copy link
Copy Markdown

/test all [submit-queue is verifying that this PR is safe to merge]

@istio-merge-robot
Copy link
Copy Markdown

Automatic merge from submit-queue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.