Skip to content

Conversation

@Zerpet
Copy link
Member

@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
Member 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.

4 participants