Skip to content

E2e - #28

Merged
openshift-merge-robot merged 2 commits into
openshift:masterfrom
enxebre:e2e
Feb 22, 2019
Merged

E2e#28
openshift-merge-robot merged 2 commits into
openshift:masterfrom
enxebre:e2e

Conversation

@enxebre

@enxebre enxebre commented Feb 20, 2019 •

Copy link
Copy Markdown
Member

Unify machine api e2e suites
See Readme 3988124

@openshift-ci-robot openshift-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Feb 20, 2019
@enxebre

enxebre commented Feb 20, 2019

Copy link
Copy Markdown
Member Author

cc @ingvagabund @bison


## Implementation

Currently pure golang is used for running suite expectations but this can be moved to a framework eg. ginkgo as requirement rises

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

s/eg./e.g./

@ingvagabund ingvagabund Feb 20, 2019 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What's the benefit of the current implementation over ginkgo framework? We are already at a point where it's time to use ginkgo [1]:

  • to generate junit files
  • to specify subset of tests to be run
  • better readability of the code (everything else is part of framework initialization)
  • community is already familiar with the technology
  • support for various assertions we don't need to implement
  • order of tests can by randomized before running
  • tests can be run in parallel (which may discover potential flakes/bugs) compare to running them in series as we have now

[1] https://github.com/onsi/ginkgo

@ingvagabund

ingvagabund commented Feb 20, 2019 •

Copy link
Copy Markdown
Member

pkg/e2e/openshift is to restrictive, pkg/e2e would serve the same purpose. The goal is to be able to run the tests over any Kubernetes distribution (not just OpenShift) where machine API stack is deployed.

I would expect the following layout:

- pkg/e2e/machine-api-operator
- pkg/e2e/cluster-autoscaler-operator
- pkg/e2e/actuator
- pkg/e2e/machine-healthcheck-controllers or pkg/e2e/machinepool
- pkg/e2e/common for remaining tests (e.g. nodelink controller) until there is enough tests to create separate category/component

Top level dir under pkg/e2e will then import all underlying components tests with a single entry point as it is done today for ginkgo based tests main kubernetes repo utilizes.

@enxebre

enxebre commented Feb 20, 2019 •

Copy link
Copy Markdown
Member Author

@ingvagabund to clarify, the goal is to take any duplicated e2e testing we have today and centralised it here. So we can verify that any product user expectation is not broken by one or more components that belong to the machine API domain

This must be invariant. These tests must run across all repos with no option to be disabled in order to validate the holistic expected behaviour of the system which might be broken by any subcomponent. If your component interfere some how with machine API domain and it's not running this, that's bad

The implementation is intentionally simple. Once we merge this and all repos are consuming from here a second iteration for implementation details, e.g layout, ginkgo... can take place

@ingvagabund

Copy link
Copy Markdown
Member

This must be invariant. These tests must run across all repos with no option to be disabled in order to validate the holistic expected behaviour of the system which might be broken by any subcomponent. If your component interfere some how with machine API domain and it's not running this, that's bad

Not in disagreement here. That's why I am for Conformance tests that will be run over every PR of every repo (including this) we have. However, you can't run tests written for libvirt over aws. Thus, the need for saying which tests are not to be run and which are.

The implementation is intentionally simple. Once we merge this and all repos are consuming from here a second iteration for implementation details, e.g layout, ginkgo... can take place

When is the second iteration going to take place? The later we do it, the harder it will be to integrate the tests into ginkgo since the number of tests will grow over time. I am still in favor of deciding if we are going to use ginkgo now or not before we merge the PR. And if we decide to go with ginkgo, start with ginkgo from scratch.

@enxebre

enxebre commented Feb 20, 2019 •

Copy link
Copy Markdown
Member Author

When is the second iteration going to take place? The later we do it, the harder it will be to integrate the tests into ginkgo since the number of tests will grow over time. I am still in favor of deciding if we are going to use ginkgo now or not before we merge the PR. And if we decide to go with ginkgo, start with ginkgo from scratch.

The implementation of the tests is totally unrelated to this PR. Again the problem this is solving is "to take any duplicated e2e testing we have today and centralised it here. So we can verify that any product user expectation is not broken by one or more components that belong to the machine API domain"

Once we equalise here the coverage we have today duplicated across repos and this is consumed everywhere, it works, it's stable and we are confident, then any implementation change should take place

@ingvagabund

ingvagabund commented Feb 20, 2019 •

Copy link
Copy Markdown
Member

The implementation of the tests is totally unrelated to this PR. Again the problem this is solving is "to take any duplicated e2e testing we have today and centralised it here.

The purpose of the PR can be changed any time.

So we can verify that any product user expectation is not broken by one or more components that belong to the machine API domain"

We can reach the same goal even with the ginkgo framework.

Once we equalise here the coverage we have today duplicated across repos and this is consumed everywhere, it works, it's stable and we are confident, then any implementation change should take place

Every time we change the underlying framework (pure golang, ginkgo, I-do-not-care-what-the-name-of-the-framework-is framework), we will need to stabilize and get confident again. Let's do it now when we can start from scratch and iteratively add more tests.

And in the opposite way. First, let's run the "new" tests (a.k.a all tests grabbed from all the repos) just here (using both kubernetes+kubemark and openshift). Once all the tests are green and running, we can start vendoring the new framework into other repos.

@bison

bison commented Feb 20, 2019

Copy link
Copy Markdown
Contributor

Looks like the go vet run is picking up stuff from vendor.

@bison bison left a comment

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.

/lgtm

Seems like a good start to me.

@openshift-ci-robot

Copy link
Copy Markdown

@bison: changing LGTM is restricted to assignees, and only openshift/cluster-api-actuator-pkg repo collaborators may be assigned issues.

Details

In response to this:

/lgtm

Seems like a good start to me.

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.

@ingvagabund

Copy link
Copy Markdown
Member

/approve

@openshift-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ingvagabund

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 21, 2019
@paulfantom

Copy link
Copy Markdown
Contributor

/test e2e-aws-operator

@openshift-ci-robot

openshift-ci-robot commented Feb 21, 2019 •

Copy link
Copy Markdown

@enxebre: The following test failed for commit bba66d7, say /retest to rerun them:

Test name Details Rerun command
ci/prow/e2e-aws-operator link /test e2e-aws-operator

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

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.

@ingvagabund

Copy link
Copy Markdown
Member

/lgtm

for @bison

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 22, 2019
@ingvagabund

Copy link
Copy Markdown
Member

/retest

@openshift-merge-robot
openshift-merge-robot merged commit 2620fd6 into openshift:master Feb 22, 2019
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. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants