Add upgrade tests into the e2e-tests-latest-eventing#93
Add upgrade tests into the e2e-tests-latest-eventing#93knative-prow-robot merged 3 commits intoknative:masterfrom
Conversation
knative-prow-robot
left a comment
There was a problem hiding this comment.
@houshengbo: 0 warnings.
Details
In response to this:
This PR adds the tests to verify the correct number and names of knative eventing
deployments.The test tag postupgrade is added, marking the tests to run after upgrade to the
latest HEAD of operator, with the latest generated manifest of knative eventing.Issue to be fixed
Fixes #
Proposed Changes
Release Note
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.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: houshengbo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
f412603 to
a3e0592
Compare
|
/test pull-knative-eventing-operator-integration-tests-on-latest-eventing |
a3e0592 to
4863a18
Compare
|
/test pull-knative-eventing-operator-integration-tests-on-latest-eventing |
|
cc @cardil you might want to have a look perhaps? |
|
Doesn't this upgrade test should mirror the knative/eventing#2388 ? Now, it only runs some simple test after upgrade. In knative/eventing#2388 I'm doing upgrade & downgrade, while validating that running knative services (probe), will still run, and we will not lose any events during upgrade & downgrade. |
|
@cardil That's the goal as well, so far we add some tests to verify the deployments of the knatvie eventing in a macro scope from the operator's perspective. We will ultamately own the tests in eventing with the tag preupgrade, and postupgrade. |
| # Run the integration tests | ||
| go_test_e2e -timeout=20m ./test/e2e || failed=1 | ||
| # Run the postupgrade tests | ||
| go_test_e2e -tags=postupgrade -timeout=${TIMEOUT} ./test/upgrade || failed=1 |
There was a problem hiding this comment.
+1 on this. Also good that we're changing the name of this file with #96
|
@houshengbo while working on this, I found some errors in the .sh file and fixed them. Actually, those improvements are applicable to other scripts in this and other Knative repos, but let me send PRs for them separately. Please leave that to me. |
| // Knative Eventing has 4 deployments. | ||
| expectedNumDeployments := 4 | ||
| deploys := []string{"eventing-controller", "eventing-webhook", "imc-controller", "imc-dispatcher"} |
There was a problem hiding this comment.
After knative/eventing#2519 this is changed
// Knative Eventing has 5 deployments.
expectedNumDeployments := 5
deploys := []string{"eventing-controller", "broker-controller", "eventing-webhook", "imc-controller", "imc-dispatcher"}
aliok
left a comment
There was a problem hiding this comment.
Needs some adaption. Added a few comments.
|
Added some comments. IMO, let's merge #95 first. Then adapt this PR (see my reasons below) My reasons: I have some doubts about the purpose of this exercise.
As we're going test the upgrade of the operator, we need the resources created by a previous version of the operator. Simply pointing the operator to old manifest won't work because in #95 we're deleting obsolote resources by name. So, IMO, the process should be:
IMO, let's merge #95 first. Then adapt this PR. About @cardil 's comments: let's do them later in sync with @cardil |
|
I have renamed the script from Prow job has been created to run the upgrade tests as well in test-infra. |
4d8bc1e to
2073e44
Compare
| @@ -1,5 +1,5 @@ | |||
| /* | |||
| Copyright 2019 The Knative Authors | |||
| Copyright 2020 The Knative Authors | |||
There was a problem hiding this comment.
in the future, this doesnt need to changed
the copyright year is based on when the file is first added.
test/e2e-upgrade-tests.sh
Outdated
| header "Installing Knative Eventing operator latest public release" | ||
| local full_url="https://github.com/knative/eventing-operator/releases/download/${LATEST_EVENTING_RELEASE_VERSION}/eventing-operator.yaml" | ||
|
|
||
| local RELEASE_YAML="$(mktemp)" |
| "errors" | ||
| "path/filepath" | ||
| "runtime" | ||
| "knative.dev/eventing-operator/test/client" |
There was a problem hiding this comment.
group with other knative.dev/eventing-operator imports
This PR adds the tests to verify the correct number and names of knative eventing deployments. The test tag postupgrade is added, marking the tests to run after upgrade to the latest HEAD of operator, with the latest generated manifest of knative eventing.
2073e44 to
388f348
Compare
388f348 to
43d7852
Compare
|
/lgtm |
|
I finally had time to review this PR after the changes. Great work @houshengbo , thank you! |
* Add upgrade tests into the e2e-tests-latest-eventing This PR adds the tests to verify the correct number and names of knative eventing deployments. The test tag postupgrade is added, marking the tests to run after upgrade to the latest HEAD of operator, with the latest generated manifest of knative eventing. * Add the installation of the previous release and upgrade to the latest * Fixes this PR based on the latest comments
* Build config consistently as per in serving (#105) * Add upgrade tests into the e2e-tests-latest-eventing (#93) * Add upgrade tests into the e2e-tests-latest-eventing This PR adds the tests to verify the correct number and names of knative eventing deployments. The test tag postupgrade is added, marking the tests to run after upgrade to the latest HEAD of operator, with the latest generated manifest of knative eventing. * Add the installation of the previous release and upgrade to the latest * Fixes this PR based on the latest comments * Add additionalPrinterColumns (#98) * Update the library from jcrossley3/manifestival to manifestival Co-authored-by: Ali Ok <[email protected]>
Issue to be fixed
Fixes #94
Proposed Changes
This PR adds the tests to verify the correct number and names of knative eventing
deployments.
The test tag postupgrade is added, marking the tests to run after upgrade to the
latest HEAD of operator, with the latest generated manifest of knative eventing.
Release Note