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

test: local-cluster: Fix test_local_cluster_signature_subscribe #29094

Closed
wants to merge 2 commits into from
Closed

test: local-cluster: Fix test_local_cluster_signature_subscribe #29094

wants to merge 2 commits into from

Conversation

ilya-bobyr
Copy link
Contributor

Problem

tests/local_cluster.rs::test_local_cluster_signature_subscribe has been broken by Enable QUIC client by default. Add arg to disable QUIC client. Take 2.

Seems like it contains a race condition, as it is expecting to see RpcSignatureResult::ReceivedSignature while connected to a voting validator.

Summary of Changes

Added an RPC listener into the cluster created by the test, and switched the RPC subscription to interact with the listner.

@mergify mergify bot added the community Community contribution label Dec 6, 2022
@mergify mergify bot requested a review from a team December 6, 2022 06:22
@CriesofCarrots CriesofCarrots added CI Pull Request is ready to enter CI and removed community Community contribution labels Dec 6, 2022
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Dec 6, 2022
@mergify mergify bot added the community Community contribution label Dec 6, 2022
@ilya-bobyr ilya-bobyr removed the community Community contribution label Jan 3, 2023
@ilya-bobyr ilya-bobyr removed the request for review from a team January 3, 2023 06:55
@github-actions github-actions bot added stale [bot only] Added to stale content; results in auto-close after a week. and removed stale [bot only] Added to stale content; results in auto-close after a week. labels Jan 27, 2023
When `add_validator_listener` is invoked, it explicitly sets
`is_listener` in the `do_add_validator` call, which in turn means that
the `stake` value is ignored.  And when a validator has no state, it's
voting key does not matter.

So, it seems safer to remove both `state` and `voting_keypair`
arguments from the `add_validator_listener()`.
Avoid a race condition, and make sure we check for the
`RpcSignatureResult::ReceivedSignature`.
@github-actions github-actions bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Mar 3, 2023
@github-actions github-actions bot closed this Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale [bot only] Added to stale content; results in auto-close after a week.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants