Skip to content
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

Update envtest to use latest available 1.22 #1014

Merged
merged 1 commit into from
Apr 25, 2022
Merged

Update envtest to use latest available 1.22 #1014

merged 1 commit into from
Apr 25, 2022

Conversation

Zerpet
Copy link
Collaborator

@Zerpet Zerpet commented Apr 7, 2022

Summary Of Changes

Due to changes in graceful signal handling in testenv, our tests timeout
to teardown testenv and cause an afterSuite failure. The workaround is
to cancel the context in the manager to avoid waiting for pending
requests in the API server.

Note to reviewers: remember to look at the commits in this PR and consider if they can be squashed

Additional Context

Check the discussion in kubernetes-sigs/controller-runtime#1571 about the problem.

Local Testing

Changes to integration tests. Unit and system tests are unaffected.

Due to changes in graceful signal handling in testenv, our tests timeout
to teardown testenv and cause an afterSuite failure. The workaround is
to cancel the context in the manager to avoid waiting for pending
requests in the API server.

Signed-off-by: Aitor Perez Cedres <[email protected]>
Copy link
Contributor

@ChunyiLyu ChunyiLyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Would you mind doing the same for top operator?

@Zerpet
Copy link
Collaborator Author

Zerpet commented Apr 25, 2022

Nice! Would you mind doing the same for top operator?

Sure thing

@Zerpet Zerpet merged commit 977f8be into main Apr 25, 2022
@Zerpet Zerpet deleted the bump-envtest branch April 25, 2022 14:59
Zerpet added a commit to rabbitmq/messaging-topology-operator that referenced this pull request Apr 25, 2022
EnvTest changed the signal handling in 1.21, which caused an after suite
failure. Check rabbitmq/cluster-operator#1014 for more context on the
root cause and investigation.

Signed-off-by: Aitor Perez Cedres <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants