Commit Graph

7238 Commits (6dd188a6d81b129c9489e7c45f40ff0fa44b60ed)

Author SHA1 Message Date
jMyles 1e75e3e225 Note here that this fails sometimes. Perhaps needs to become an Issue. 2020-08-10 12:49:26 -07:00
jMyles 4ffecd85fd Going back to defined ports in the hopes of working out #1546 / #1689. 2020-08-10 12:49:26 -07:00
jMyles 3db10ae5ff We're not connecting to seednodes at this stage anymore. 2020-08-10 12:49:26 -07:00
jMyles 98c63a2b54 Moving seednode loading logic inward. 2020-08-10 12:49:26 -07:00
jMyles e85acfccaa Moving hardcoded seednodes to middleware. 2020-08-10 12:49:26 -07:00
jMyles 858345a58f Getting --lonely through each Character where it's used. 2020-08-10 12:49:26 -07:00
jMyles 486247f3db All sorts of out-comments to get the lonely thing kickin'. 2020-08-10 12:49:26 -07:00
jMyles c6e004b870 Allow other Characters to be --lonely. 2020-08-10 12:49:26 -07:00
jMyles d7f7b24441 Exception tuple needs to be unpacked here; TypeError otherwise. 2020-08-10 12:49:26 -07:00
jMyles 1101dd3bde The first node in the fixture might not always be among the matching nodes. 2020-08-10 12:49:26 -07:00
jMyles 05d93a5cbd Matching node floor is now 7; this will have no impact in production, but makes the tests pass. 2020-08-10 12:49:26 -07:00
jMyles 645533421e If the port is too high, try again. Attempting to deal with #1546. 2020-08-10 12:49:26 -07:00
jMyles 76649704ae Clarifying failure message; this makes it easier to understand why this test occasionally fails. 2020-08-10 12:49:26 -07:00
jMyles 090772379e No need to catch this exception anymore; let it raise. 2020-08-10 12:49:26 -07:00
jMyles ae9715c2a8 It's also now possible for checksum_address to be NO_BLOCKCHAIN_CONNECTION at this point. 2020-08-10 12:49:26 -07:00
jMyles 86b24373ac Setting checksum_address to staker address, and looking up TransactingPower in the usual (albeit private) way. 2020-08-10 12:49:26 -07:00
jMyles b800a3fa9d Adding acumen to TOC so that the apidoc builder finds it. 2020-08-10 12:49:25 -07:00
jMyles b199830947 This will be the basis of a merge commit in the rebase of these tests. One of them reactivates Vladimir; the other fixes the method for testing the presence of Treasure Maps. 2020-08-10 12:49:25 -07:00
jMyles babcd9174e No need to reset checksum_address in Worker - let's try to set it in as few places as possible. #1547. 2020-08-10 12:49:23 -07:00
jMyles 836ee7d95e Toward a more coherent depiction of 1547, and how NO_BLOCKCHAIN_CONNECTION can be understood when init'ing a Character. 2020-08-10 12:48:37 -07:00
jMyles 14165eb4db Instead of the first Ursula, choose the first Ursula who is supposed to have the map. 2020-08-10 12:48:31 -07:00
jMyles 9a055de836 Snaking mutex through a few tests; helpful for debugging. 2020-08-10 12:47:33 -07:00
jMyles 15a0bc95c6 Map comparisons are better done just by public_id than the full bytes, since it's possible to compare maps in various states of secrecy. 2020-08-10 12:47:33 -07:00
jMyles a32eb189ab Fire off a learning task at the beginning of one of the blocking methods. This substantially increases the chance that the method won't need to block for multiple iterations (causes a 4.5s speedup on two tests on my laptop). 2020-08-10 12:47:33 -07:00
jMyles fdcafb4ec7 Using 'no_less_than' kwarg. 2020-08-10 12:47:33 -07:00
jMyles 328a899a5d Alice's threadpool stops when the reactor stops. 2020-08-10 12:47:33 -07:00
jMyles c031536eca Relative import as the start of the question to keep this compatible as a package. 2020-08-10 12:47:33 -07:00
jMyles fdc69cd0ec Changing references to acumen materials. 2020-08-10 12:47:33 -07:00
jMyles 18993022ea Stop Alice's publication threadpool at the end of fixtures; otherwise tests hang. 2020-08-10 12:47:33 -07:00
jMyles 94bf759aa6 Comment out this block for a moment; Character tests pass in this config. 2020-08-10 12:47:33 -07:00
jMyles 5b9e5e8719 Refactor and reorg. 2020-08-10 12:47:32 -07:00
jMyles ad964c90f2 Don't try to find matching nodes until we've blocked long enough to even have that many. 2020-08-10 12:45:22 -07:00
jMyles cfc9485df5 Introducing acumen, a package for logic relating to what Characters and nodes know (and can know) about each other. 2020-08-10 12:45:22 -07:00
jMyles 295518033e Refining both test and threadpooling. Looking pretty good now. 2020-08-10 12:45:22 -07:00
jMyles 230bcdc26d Honing in on the most important concurrent test assertions. This passes, but we can do even better. 2020-08-10 12:45:22 -07:00
jMyles 359980288d Cleaning up here results in faster test run exit. 2020-08-10 12:45:22 -07:00
jMyles f2b8daa1ff Putting the fake latency on either side of the endpoint gives slightly more realistic conditions. 2020-08-10 12:45:22 -07:00
jMyles 717d901a38 Using the threadpool and the custom mutex - substantially faster test run. 2020-08-10 12:45:22 -07:00
jMyles 6d111bedeb A threadpool for alice to use for policy publication network requests. 2020-08-10 12:45:22 -07:00
jMyles 274c12bf38 Another place with wasteful address calculation. 2020-08-10 12:45:22 -07:00
jMyles c1cc0395e5 This zany test actually passes - now to get that 30 second limit down. 2020-08-10 12:45:22 -07:00
jMyles 4ebfa57892 A way for Alice to move on after the TreasureMap is 10% published and let the rest happen in the background. 2020-08-10 12:45:22 -07:00
jMyles 05b589121b It's slow, but it's a start. This test passes in about 9 seconds right now; subsequent commits will tune it. 2020-08-10 12:45:22 -07:00
jMyles b42f6da1d1 Getting a little crazy - first swing at concurrent Alice-=>Ursula connection. 2020-08-10 12:45:22 -07:00
jMyles aabc490970 Adding a 'last chance' escape hatch for blocking node learning, so that, if the timeout is reached, we check one last time to see if we've learned about the necessary number of nodes. 2020-08-10 12:45:22 -07:00
jMyles 60b9ad9c2b Test using the sluggish middleware; this is the one that will require the concurrency from the last commit. 2020-08-10 12:45:21 -07:00
jMyles 1923568166 What happens if we add a little slowness like network latency? (And here's where we'll have to add concurrency). 2020-08-10 12:42:17 -07:00
jMyles 28ac095d15 Further down the optimization adventuref for NodeSprout. 2020-08-10 12:42:17 -07:00
jMyles fc3e105e54 Decentralized Alice controller test needs, you guessed it, DecentralizedTreasureMap. 2020-08-10 12:42:17 -07:00
jMyles ec01301cc1 Updated kwarg name. 2020-08-10 12:42:17 -07:00