Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

test: local-cluster: Fix test_local_cluster_signature_subscribe#29094

Closed
illia-bobyr wants to merge 2 commits intosolana-labs:masterfrom
illia-bobyr:local-cluster-tests-cluster-signature-subscribe
Closed

test: local-cluster: Fix test_local_cluster_signature_subscribe#29094
illia-bobyr wants to merge 2 commits intosolana-labs:masterfrom
illia-bobyr:local-cluster-tests-cluster-signature-subscribe

Conversation

@illia-bobyr
Copy link
Copy Markdown
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
@illia-bobyr illia-bobyr removed the community Community contribution label Jan 3, 2023
@illia-bobyr illia-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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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