New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interrupted E2E tests do not run instructions in AfterEach #96177
Comments
@chrishenzie: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
xref: onsi/ginkgo#222 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale This change is in-scope for ginkgo v2 and should be available in several months once it's implemented. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
are we going to try to go to ginkgo v2? |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In 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. |
/sig testing
What happened:
When running E2E tests that use the E2E test framework and
ginkgo.AfterEach()
, when you SIGINT (ctrl+c) the test, the steps inginkgo.AfterEach()
do not run, but the framework'sAfterEach()
does run (which cleans up the test namespace).What you expected to happen:
When you SIGINT a running E2E test, the steps in
ginkgo.AfterEach()
run (unless interrupted a second time).How to reproduce it (as minimally and precisely as possible):
I made the following change to the deployment.go test.
And followed these steps locally. Please read the comments for more details.
Anything else we need to know?:
If you replace the
ginkgo.AfterEach()
withframework.AddAfterEach()
and re-run the steps above, you will see the log message in theAfterEach()
show up.Should we be using
framework.AddAfterEach()
everywhere in place ofginkgo.AfterEach()
for E2E tests that use this framework?Environment:
kubectl version
): v1.18.10cat /etc/os-release
): Debian GNU/Linuxuname -a
): 5.7.17@msau42
The text was updated successfully, but these errors were encountered: