Repository navigation
Cleanup tests - #4300
Cleanup tests#4300
Conversation
|
Hi @inteon. Thanks for your PR. I'm waiting for a jetstack or cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/ok-to-test |
4c4b272 to
d4d304e
Compare
| if err != nil { | ||
| pretty.Logln("cert:", testCertificate) | ||
| testCertificate, _ = f.Helper().WaitForCertificateReadyAndDoneIssuing(testCertificate, time.Minute*5) | ||
| pretty.Logln("re-fetched:", testCertificate) |
There was a problem hiding this comment.
@jakexks @wallrj these print statements should give some more insights into what causes the "Expected certificate expiry date to be 2026-08-05 17:22:43 +0100 BST, but got 2026-08-05 16:23:13 +0000 UTC" error.
I'm however not able to replicated the issue on my machine. Could someone try this and share the results?
wallrj
left a comment
There was a problem hiding this comment.
Thanks @inteon
I ran the integration tests and the Gateway E2E tests locally and they passed, multiple times.
Just to be clear, the core problem was that we weren't waiting for integration test API servers to shutdown and release their listening sockets? So subsequent tests would attempt to connect to still shutting down servers. Is that right?
I also asked about some seemingly unrelated changes below. Please just say a few words about the reason for each of those changes.
Then unhold and merge if you're happy with all this.
/lgtm
/hold
| log.Logf("Observed certificate conditions:\n") | ||
| for _, cond := range certificate.Status.Conditions { | ||
| log.Logf("- Last Status: '%s' Reason: '%s', Message: '%s'\n", cond.Status, cond.Reason, cond.Message) | ||
| log.Logf("- Last '%s' Status: '%s' Reason: '%s', Message: '%s'\n", cond.Type, cond.Status, cond.Reason, cond.Message) |
There was a problem hiding this comment.
That'll make it easier to discern the condition logs. Thanks.
| --acme-dns-server="$DNS_SERVER" \ | ||
| --acme-ingress-ip="$INGRESS_IP" \ | ||
| "${SKIP}" \ | ||
| ${SKIP} \ |
There was a problem hiding this comment.
The quotes didn't cause a problem for me. What problem did you encounter?
There was a problem hiding this comment.
./devel/run-e2e.sh --ginkgo.focus "basicConstraint" does not work on my computer, it just ignores the --ginkgo.focus flag
0ba3102 to
7cd156d
Compare
7cd156d to
e045388
Compare
|
/retest |
Signed-off-by: Inteon <[email protected]>
e045388 to
ef31a2e
Compare
@inteon That was the last E2E test failure. Do you think it might be because we don't allow long enough for the startupapicheck Job? Perhaps we should add the |
|
/retest |
Signed-off-by: Inteon <[email protected]>
005d857 to
347cd6c
Compare
Signed-off-by: Inteon <[email protected]>
Signed-off-by: Inteon <[email protected]>
Signed-off-by: Inteon <[email protected]>
jakexks
left a comment
There was a problem hiding this comment.
🥳
/lgtm
/cherrypick release-1.5
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: inteon, jakexks, wallrj 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 |
|
/cherry-pick release-1.5 |
|
@wallrj: #4300 failed to apply on top of branch "release-1.5": DetailsIn response to this:
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. |
|
/cherry-pick release-1.5 |
|
@wallrj: #4300 failed to apply on top of branch "release-1.5": DetailsIn response to this:
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. |
|
/cherry-pick release-1.5 |
|
@wallrj: new pull request created: #4324 DetailsIn response to this:
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. |
What this PR does / why we need it:
Cleanup integration tests, use the correct context and gracefully shutdown.
Return error if shutdown was not successful.
Fixes flakes similar to:
https://prow.build-infra.jetstack.net/view/gs/jetstack-logs/pr-logs/pull/jetstack_cert-manager/4298/pull-cert-manager-bazel/1422663871339958274
This PR also fixes:
run-e2e.shflag was not passed correctlytiller.gofileDomainSuffixto a correct default valuefeatureGatefixes #4284
fixes #4066
Release note:
/kind cleanup