Remove k8s resource in e2e test#6530
Conversation
|
Hi @MIBc. Thanks for your PR. I'm waiting for a knative 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. |
|
/assign @tcnghia |
markusthoemmes
left a comment
There was a problem hiding this comment.
LGTM modulo the one comment for the grpc connections.
| if conn != nil { | ||
| conn.Close() | ||
| } | ||
| }() |
There was a problem hiding this comment.
Does this change actually do anything? I looked through grpc's Dial function and it seems to always return nil in case of an error anyway. It also has it's own defer to tear down connections in case of an error.
There was a problem hiding this comment.
You are right. I have recovered it.
|
/ok-to-test |
|
@MIBc Do you mind rebasing this? |
|
/assign |
OK. |
| Image: "helloworld", | ||
| } | ||
| test.CleanupOnInterrupt(func() { test.TearDown(clients, names) }) | ||
| defer test.TearDown(clients, names) |
There was a problem hiding this comment.
This looks like some rebase weirdness. The respective calls are already in place.
1. Remove k8s resource in autoscale test if `steup` function meet error. 2. Set `defer` function before t.Fatalf called. Otherwise the `defer` function may not be called.
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: markusthoemmes, MIBc 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 |
|
The following jobs failed:
Automatically retrying due to test flakiness... |
|
/retest |
2 similar comments
|
/retest |
|
/retest |
Proposed Changes
steupfunction meet error.deferfunction beforet.Fatalfcalled. Otherwise thedeferfunction may not be called.