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

Backport of drainer: fix codec race condition in integration test into release/1.3.x #16851

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #16845 to be assessed for backporting due to the inclusion of the label backport/1.3.x.

The below text is copied from the body of the original PR.


While working on #14348 I encountered corruption in the RPC decoding in the drainer integration test.

msgpackrpc codec handles are specific to a connection and cannot be shared between goroutines; this can cause corrupted decoding. Fix the drainer integration test so that we create separate codecs for the goroutines that the test helper spins up to simulate client updates.

This changeset also refactors the drainer integration test to bring it up to current idioms and library usages, make assertions more clear, and reduce duplication. I'm backporting this work for consistency between release branches but there's no changelog because this is a test-only PR.

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/drainer_integration_test_fixes/awfully-inspired-seasnail branch 2 times, most recently from 189502c to 4ae7aa3 Compare April 11, 2023 18:31
@hc-github-team-nomad-core hc-github-team-nomad-core merged commit afa560f into release/1.3.x Apr 11, 2023
@hc-github-team-nomad-core hc-github-team-nomad-core deleted the backport/drainer_integration_test_fixes/awfully-inspired-seasnail branch April 11, 2023 18:31
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.

2 participants