Repository navigation
test(ltc): stratum session tests wait for the job notify, not a fixed read budget - #2357
Merged
Merged
Conversation
… read budget After mining.subscribe or mining.authorize the session tests read the socket for a fixed number of 50 ms receive timeouts; under ASan on a loaded runner the job notify can arrive later (MergedAuxStratumSession. AJobBuiltBeforeTheLoginKeepsItsSplitThroughTheAuthorize, last_job empty after subscribe). LineClient::wait_new_job reads until a mining.notify sets a job id other than the previous one (up to 10 s); the four subscribe sites and the authorize site in that test use it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test only: src/impl/ltc/test/merged_aux_hardening_test.cpp.
MergedAuxStratumSession.AJobBuiltBeforeTheLoginKeepsItsSplitThroughTheAuthorizesaw an empty job id after subscribe (two consecutive linux-asan runs of dash: opt-out for the v24 provider special txs (types 10-12) and v3 ProTx payloads in embedded templates #2352, 1 of 6932).LineClient::wait_new_job(prev)reads until a mining.notify sets a job id other thanprev, up to 10 s. It is used at the four subscribe sites that assert a job and at that test's authorize site.vm905, ASan+UBSan share_test:
MergedAuxStratumSession.*x20 serial and 8 parallel copies x10 under load, all PASSED.