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

tests/e2e: clone proto event in rpcchecker #2688

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

willfindlay
Copy link
Contributor

We've occasionally been running into errors in e2e tests about invalid wire format messages and message size mismatches in protobuf. According to golang/protobuf#1609, this is generally related to concurrency issues such as modifying a message during marshalling. Add a Clone() call before sending the event over the channel to mitigate this issue.

@willfindlay willfindlay added the release-note/ci This PR makes changes to the CI. label Jul 17, 2024
@willfindlay willfindlay requested a review from a team as a code owner July 17, 2024 20:25
@willfindlay willfindlay requested a review from olsajiri July 17, 2024 20:25
@willfindlay willfindlay force-pushed the pr/willfindlay/fix-rpc-checker branch 2 times, most recently from 03c15bd to 2641328 Compare July 17, 2024 20:32
pkg/multiplexer/multiplexer.go Show resolved Hide resolved
Copy link
Contributor

@olsajiri olsajiri left a comment

Choose a reason for hiding this comment

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

fixes the issue for me ;-) thanks

We've occasionally been running into errors in e2e tests about invalid
wire format messages and message size mismatches in protobuf. According
to golang/protobuf#1609, this is generally
related to concurrency issues such as modifying a message during
marshalling. Add a Clone() call before sending the event over the
channel to mitigate this issue.

Signed-off-by: willfindlay <[email protected]>
@willfindlay willfindlay force-pushed the pr/willfindlay/fix-rpc-checker branch from 2641328 to 91808e5 Compare July 18, 2024 13:56
@willfindlay
Copy link
Contributor Author

Only added a comment, so no need to wait for this to go through CI again. Merging.

@willfindlay willfindlay merged commit a7968b3 into main Jul 18, 2024
20 checks passed
@willfindlay willfindlay deleted the pr/willfindlay/fix-rpc-checker branch July 18, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants