Skip to content

Improves(e2e): improves integration tests and to better run locally#274

Merged
knative-prow-robot merged 3 commits intoknative:masterfrom
maximilien:improve-it
Jul 23, 2019
Merged

Improves(e2e): improves integration tests and to better run locally#274
knative-prow-robot merged 3 commits intoknative:masterfrom
maximilien:improve-it

Conversation

@maximilien
Copy link
Copy Markdown
Contributor

@maximilien maximilien commented Jul 18, 2019

Improves integration tests and to better run locally

Fixes #273

Proposed Changes

  • refactors basic workflow (move some code to common)
  • use different namespace for each test to isolate
  • include wait logic in CreateNamespace to allow multiple runs
  • include wait logic in DeleteNamespace to allow multiple runs

Release Note

Important since we need more integration tests overall for kn and some of
these changes should allow `./test/e2e-tests-local.sh` to run on
local clusters (minikube or something other than test-infra) and
correctly behave during multiple runs.

1. refactors basic workflow (move code to common)
2. use different namespace accross test runs to isolate
3. include wait logic in CreateNamespace to allow multiple runs
4. include wait logic in DeleteNamespace to allow multiple runs

This is important since we need more integration tests and some of
these changes should allow `./test/e2e-tests-local.sh` to run on
local clusters (minikube or something other than test-infra) and
correctly behave during mutiple runs.
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jul 18, 2019
@knative-prow-robot knative-prow-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 18, 2019
Copy link
Copy Markdown
Contributor

@rhuss rhuss left a comment

Choose a reason for hiding this comment

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

  • You (accidentally ?) reverted one of the last commits. Please revert the revert ;-)
  • The login for creating the namespace with retries is broken imo. Please check.
  • To avoid boolean flags I suggest a different approach (see comments)

Comment thread test/e2e/basic_workflow_test.go Outdated
Comment thread test/e2e/basic_workflow_test.go Outdated
Comment thread test/e2e/common.go Outdated
Comment thread test/e2e/common.go Outdated
Comment thread test/e2e/common.go Outdated
Comment thread test/e2e/common.go Outdated
@maximilien
Copy link
Copy Markdown
Contributor Author

maximilien commented Jul 19, 2019

OK see update @rhuss. I need this merged before #249 get completed and pushed. Thx.

@maximilien
Copy link
Copy Markdown
Contributor Author

/test pull-knative-client-integration-tests-latest-release

Copy link
Copy Markdown
Contributor

@rhuss rhuss left a comment

Choose a reason for hiding this comment

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

Thanks !

/approve
/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 22, 2019
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: maximilien, rhuss

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

@rhuss
Copy link
Copy Markdown
Contributor

rhuss commented Jul 22, 2019

Fails because of async update, fixed with #271 . The test should be fixed as soon as this PR is merged.

Nevertheless, trying
/retest

@maximilien
Copy link
Copy Markdown
Contributor Author

OK thx @rhuss I see #271 is merged. I will rebase and push this again. Hopefully along with update for #249

@maximilien
Copy link
Copy Markdown
Contributor Author

OK updated @rhuss. Let's see if all tests go green

@rhuss
Copy link
Copy Markdown
Contributor

rhuss commented Jul 23, 2019

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 23, 2019
@knative-prow-robot knative-prow-robot merged commit 9513ded into knative:master Jul 23, 2019
@maximilien maximilien deleted the improve-it branch December 20, 2019 02:17
dsimansk added a commit to dsimansk/client that referenced this pull request Oct 3, 2023
…native#274)

* Fix plugin inlining that uses client-pkg dependency

* Move list merge into plugin manager

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. 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.

Flaky e2e local tests

4 participants