Commit Graph

7246 Commits (23792bf87e3ac82357313c05c8a9382cedcd13d0)

Author SHA1 Message Date
jMyles 266eea23ca Yanking some autouses in favor of usefixtures. [skip ci] 2020-08-10 12:53:03 -07:00
jMyles b23e46d515 Crash more quickly, and with better error, if unable to get cert during seednode instantiation. 2020-08-10 12:52:31 -07:00
jMyles e7e710bb36 Stop Alice's publication threadpool in disenchant(). 2020-08-10 12:52:31 -07:00
damon c9d176e972 use 12 ursulas for circle docker demo integration tests 2020-08-10 12:52:31 -07:00
jMyles ff99777960 Fixing blunderous percentage error - thanks @fjarri. 2020-08-10 12:52:31 -07:00
jMyles 9f6c72a641 Reducing density; this line was crazy. 2020-08-10 12:52:31 -07:00
Kieran R. Prasch 041622c40d Allow worker to attempt period commitment as part of it's initialization. 2020-08-10 12:52:31 -07:00
jMyles ac4117485b It makes more sense to force this off into a thread. We're not eager anyway, so there's no reason to chance blocking the main thread. 2020-08-10 12:52:31 -07:00
jMyles 8b3b04f3dd Crash more quickly on learning errors in seednode resolution. 2020-08-10 12:52:31 -07:00
jMyles bab9c03b6f This race condition no longer exists. 2020-08-10 12:52:31 -07:00
jMyles 488357b3c7 This log message was confusing. 2020-08-10 12:52:31 -07:00
jMyles 3351af943f Return of demo fleet Ursulas spinup script. 2020-08-10 12:52:31 -07:00
jMyles 2daa4a28e9 Lookup transacting_power in the typical public way. 2020-08-10 12:52:31 -07:00
jMyles a2b04a00a1 Starting Bob's learning loop here (which is in keeping with reality) is needed now that we don't hardcode Bob's fixture nodes. 2020-08-10 12:52:31 -07:00
jMyles 3d5c9d3560 Ensuring that Enrico doesn't have to deal with known_node class. 2020-08-10 12:52:31 -07:00
jMyles dcbd882a9c Lifecycle logic - shared in federated and blockchain modules. 2020-08-10 12:52:31 -07:00
jMyles 16bc34754d Another test that was passing for the wrong reason. It now works regardless of whether the future Ursula is a hardcoded seednode or a user-specified one. 2020-08-10 12:52:31 -07:00
jMyles 9437009ffd Add a measure of maturation time; if this increases dramatically, that will represent a breakage. 2020-08-10 12:52:31 -07:00
jMyles 5b6c579325 We only want to record one fleet state per iteration; this loop previously recorded two. 2020-08-10 12:52:31 -07:00
jMyles 6e2687254f Moving stop_character upward to capture other controller cases. 2020-08-10 12:52:31 -07:00
jMyles 784814c4bb Don't ship blockchain_bob with known_nodes; he can use his domain hardcoded nodes. Also, don't start his learning loop after the fact. This caused this test to pass even when he was unable to actually find the nodes in join_policy. 2020-08-10 12:52:31 -07:00
jMyles 866e0e2e0a Skipping this test until we get the DB (#2099) worked out. 2020-08-10 12:52:31 -07:00
jMyles 4e68f532b5 Felix doesn't use a network domain. 2020-08-10 12:52:31 -07:00
jMyles 5f3eca5b4b Divide cli lifecycle tests into federated and decentralized in order to keep Ursula cache separated. 2020-08-10 12:52:31 -07:00
jMyles 702aa80ee2 This error handling no longer makes sense; sprouts don't have these exceptions. 2020-08-10 12:52:31 -07:00
jMyles fb0550d388 Only try to find canonical seednode urls if we have a learning domain. 2020-08-10 12:52:31 -07:00
jMyles 6b33e5819c Reimplementing --teacher-uri in simpler form. 2020-08-10 12:52:31 -07:00
jMyles fddc956879 Felix needs to not learn. 2020-08-10 12:52:31 -07:00
jMyles 69840fcdce Minimal disenchantment logic. #2127. 2020-08-10 12:52:31 -07:00
jMyles 29e0503852 ...the config.node module, where it's nice to be able to be able to set a default known node class. 2020-08-10 12:52:31 -07:00
jMyles 0dc3f14648 We no longer need to connect to default domains, and removing it saves us an otherwise circular import with... 2020-08-10 12:52:31 -07:00
jMyles 16a7f90e27 Separating lifecycle tests for fixture hygiene. 2020-08-10 12:52:31 -07:00
Kieran Prasch 9a5ea68db3 Handles the --lonely CLI option for alice and bob command. 2020-08-10 12:52:31 -07:00
jMyles 27b1f8fff9 Fixed imports for acumen. 2020-08-10 12:52:31 -07:00
jMyles 7b31d0635c Appropriate response for a map that is already stored. 2020-08-10 12:52:31 -07:00
jMyles a0db5ffb15 Moving federated tests into their own module to keep the cache cleaner. 2020-08-10 12:52:30 -07:00
jMyles d6d9fb4b62 This test needs to look for the checksum_address specifically, since this will be a stranger node or sprout now. 2020-08-10 12:51:49 -07:00
jMyles ea092fd4d3 Using lonely_ursula_maker in all the right places. 2020-08-10 12:51:49 -07:00
jMyles fde4d9049b Fixturizing lonely_ursula_maker for cleanup purposes. 2020-08-10 12:51:42 -07:00
jMyles d40e68869f This node might be an unknown version; if so, just move on. 2020-08-10 12:51:11 -07:00
jMyles ecac5a9330 Don't try to remember nodes of an unknown version; we don't want to learn from them anyway. 2020-08-10 12:51:11 -07:00
jMyles 0b318c2866 Clarify each fleet state (because one of them is the result of the seednode loading). 2020-08-10 12:51:11 -07:00
jMyles eebf26e334 This test is no longer relevant; the seednode tests cover this logic equally well. 2020-08-10 12:51:11 -07:00
jMyles bace84eb44 Record proper fleet state at seednode time. 2020-08-10 12:51:11 -07:00
jMyles 547c3c650e Loading seednodes is now one-and-done. No more retry attempts. Retry by starting the process over. 2020-08-10 12:51:11 -07:00
jMyles 6faadb775d Only simulate hardcoded domain nodes for TEMPORARY_DOMAIN, not nonstandard test domains. 2020-08-10 12:51:11 -07:00
jMyles cc7e96f671 This entire test (and part of another) is no longer relevant, as Alice and Bob will learn about seednodes form their hardcoded domain list in such a scenario. 2020-08-10 12:51:11 -07:00
jMyles 392d51f711 This is a more acute test with a nonstandard domain, as it assures that the actual seednode logic is used. 2020-08-10 12:51:11 -07:00
jMyles 0a52a8edb7 Longer time allowance for this test; it will still almost certainly pass in the faster times on CI, but it's a pain to have it fail locally. 2020-08-10 12:51:11 -07:00
jMyles 4b5dbd9370 Removing fail-slow logic from seednode resolution. 2020-08-10 12:51:11 -07:00