fix: Hook should run before deleting resources - #5185
Conversation
Signed-off-by: zirain <zirain2009@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zirain The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/cherry-pick release-1.6 |
|
@zirain: once the present PR merges, I will cherry-pick it on top of 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-sigs/prow repository. |
|
/cc @kl52752 |
|
@zirain Can you explain more what is the problem with current solution? From go spec: https://pkg.go.dev/testing#B.Cleanup When sub test finished then recordTest and after that a Hook will be called. |
|
check the following log: Hook run after the logs from my fork worked as expected. Not sure about this |
Signed-off-by: zirain <zirain2009@gmail.com>
|
/cc |
|
@zirain your test failed, can you verify also the scenario where test is passing? Or we have multiple tests? |
To be clear, this's added for dump the cluster status for debugging when test failed(with FailFast=true, Parallel=false). You can check out our test case here, For specified test, you can use |
What type of PR is this?
/area conformance-test
What this PR does / why we need it:
#5143 changed the execute order,
Hookshould run before deleting resource.Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: