Add job GeneratedName transformer to eventing, serving#1648
Conversation
|
/lgtm |
|
Need to inject the CURRENT_VERSION. Tests fail without this. |
|
/retest |
|
|
Yes I saw that let's see, not sure why no jobs is left there. |
|
Maybe the job's TTL is passed and the job removed when the test runs? |
|
I will probably move the checks at the beginning of the array as TTL is 600s and see if we have a better chance there. |
|
|
/retest |
| } | ||
|
|
||
| func verifyPostInstallServingJobs(ctx context.Context, testCtx *test.Context, c upgrade.Context, cfg VerifyPostJobsConfig) error { | ||
| jobs, err := testCtx.Clients.Kube. |
There was a problem hiding this comment.
This function is completely same as verifyPostInstallJobs, except for initializing the clients. I think you could use the same approach as here for Eventing - get the clients from testCtx. Then this whole function could be reused and code duplication removed.
There was a problem hiding this comment.
Eventing uses client := testlib.Setup(c.T, false) that does a lot more that is needed behind the scenes eg. try create a namespace. So It is not the same setup. I will remove the code duplication, I wanted first this to pass the tests. ;)
In general it seems Serving is fast but Eventing takes quite some time:
PASS test/upgrade.TestServerlessUpgrade/PostUpgradeTests/Verify_jobs_in_knative-serving (0.03s)
PASS test/upgrade.TestServerlessUpgrade/PostUpgradeTests/Verify_jobs_in_knative-eventing (607.77s)
There was a problem hiding this comment.
And I think the testlib.Setup is not necessary because we only need the client to work with Jobs resources. We don't create any namespace here.
There was a problem hiding this comment.
Yeah ok I cleaned it up for Eventing too ;)
There was a problem hiding this comment.
PASS test/upgrade.TestServerlessUpgrade/PostUpgradeTests/Verify_jobs_in_knative-serving (0.03s)
PASS test/upgrade.TestServerlessUpgrade/PostUpgradeTests/Verify_jobs_in_knative-eventing (607.77s)
That's huge 🤔
There was a problem hiding this comment.
I think it is related to tear down logic. I hope unification to reduce time for Eventing too.
There was a problem hiding this comment.
Still too slow:
PASS test/upgrade.TestServerlessUpgrade/PostUpgradeTests/Verify_jobs_in_knative-serving (5.07s)
PASS test/upgrade.TestServerlessUpgrade/PostUpgradeTests/Verify_jobs_in_knative-eventing (620.03s)
I guess polling the jobs takes quite some time there for Eventing. /cc @pierDipi
There was a problem hiding this comment.
Ah, I know why, this will change when we bump eventing-kafka-broker (it is due to the KafkaChannel migration)
|
|
/retest |
|
@mgencur gentle ping. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mgencur, skonto 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 |
/test 4.10-operator-e2e-aws-ocp-410 |
Proposed Changes