-
Notifications
You must be signed in to change notification settings - Fork 5
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
WIP: Test DHT with large number of nodes #57
base: master
Are you sure you want to change the base?
Commits on May 9, 2023
-
warn and skip test nodes on busy ports
TODO: We might want to still generate the right amount Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a86a5d6 - Browse repository at this point
Copy the full SHA a86a5d6View commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3b71e50 - Browse repository at this point
Copy the full SHA 3b71e50View commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a3092df - Browse repository at this point
Copy the full SHA a3092dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 591b270 - Browse repository at this point
Copy the full SHA 591b270View commit details
Commits on May 10, 2023
-
improve tracing of message exchange
run e.g. as ``` nim c -r -d:debug -d:chronicles_enabled=on -d:chronicles_log_level=TRACE -d:chronicles_sinks=textlines[nocolors,stdout] tests/dht/test_providers.nim >err ``` Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4b49586 - Browse repository at this point
Copy the full SHA 4b49586View commit details -
add 10ms of delay between node initializations
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ab7edc0 - Browse repository at this point
Copy the full SHA ab7edc0View commit details -
change revalidateLoop to use [RevalidateMax/2, RevalidateMax]
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7956898 - Browse repository at this point
Copy the full SHA 7956898View commit details -
Fake DatagramTransport: first compile
Override Chronos DatagramTransport with a fake one Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b1957f4 - Browse repository at this point
Copy the full SHA b1957f4View commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e8b019b - Browse repository at this point
Copy the full SHA e8b019bView commit details -
try to add global registry of endpoints
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2eef69f - Browse repository at this point
Copy the full SHA 2eef69fView commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dcdef89 - Browse repository at this point
Copy the full SHA dcdef89View commit details -
no need to name it different, we can override DatagramTransport Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 20ff87b - Browse repository at this point
Copy the full SHA 20ff87bView commit details -
0.0.0.0 vs. 127.0.0.1 creates various issues As a start, we can index by port only Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6109cba - Browse repository at this point
Copy the full SHA 6109cbaView commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fd317a5 - Browse repository at this point
Copy the full SHA fd317a5View commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 70c2d28 - Browse repository at this point
Copy the full SHA 70c2d28View commit details -
introduce waitResponse wrapper
initialize wait for response before sending request. This is needed in cases where the response arrives before moving to the next instruction, such as a directly connected test. Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for eb08cbf - Browse repository at this point
Copy the full SHA eb08cbfView commit details -
add on/off for network emulator
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 349127f - Browse repository at this point
Copy the full SHA 349127fView commit details -
fixup: move sendRequest forward
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8b24458 - Browse repository at this point
Copy the full SHA 8b24458View commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5e0cdd1 - Browse repository at this point
Copy the full SHA 5e0cdd1View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd1303f - Browse repository at this point
Copy the full SHA cd1303fView commit details -
add recvFrom to fake DatagramTransport
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3e0c283 - Browse repository at this point
Copy the full SHA 3e0c283View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23733c1 - Browse repository at this point
Copy the full SHA 23733c1View commit details -
add 50ms simulated network latency
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ba0d671 - Browse repository at this point
Copy the full SHA ba0d671View commit details
Commits on May 11, 2023
-
test: make nodecount and delays configurable
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 43d71d4 - Browse repository at this point
Copy the full SHA 43d71d4View commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dcb6c24 - Browse repository at this point
Copy the full SHA dcb6c24View commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 349eb01 - Browse repository at this point
Copy the full SHA 349eb01View commit details -
ChronoSim, the simulation/emulation wrapper around nim-chronos. Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f58f8cb - Browse repository at this point
Copy the full SHA f58f8cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb74441 - Browse repository at this point
Copy the full SHA eb74441View commit details -
chronosim: use const to configure
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d8b0421 - Browse repository at this point
Copy the full SHA d8b0421View commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 527db66 - Browse repository at this point
Copy the full SHA 527db66View commit details
Commits on May 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e934dd7 - Browse repository at this point
Copy the full SHA e934dd7View commit details
Commits on May 17, 2023
-
dht: waitMessage: expose timeout as parameter, keeping default
defults to ResponseTimeout as before Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c048362 - Browse repository at this point
Copy the full SHA c048362View commit details
Commits on Jun 2, 2023
-
encoding: introducing type cipher=aes128
Introducing the cipher type to ease changing cipher. No functional change Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8f7d342 - Browse repository at this point
Copy the full SHA 8f7d342View commit details -
encoding: introducing the "nop" cipher
remove encryption for faster large scale tests. Do not use for anything else! Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 50dd3cd - Browse repository at this point
Copy the full SHA 50dd3cdView commit details -
changing async logic for nodes (multi) response
The previous version was based on the assumption that that the future of waitMessage is triggered in the event loop before the next message arrives. This seems to be true with UDP, where a full cycle of the loop handles only one datagram, but not true with other transports, such as the in-memory emulation. This led to the following behavior: - 1st response arrives, reqId removed, waitMessage called - 2nd ... last messages arrive, can't find reqId, so dropped - waitMessage competes, re-adding reqId, but too late The new version solves this by collecting SPRs explicitly Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d496a47 - Browse repository at this point
Copy the full SHA d496a47View commit details -
chronosim: trace instead of info
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 45e2dea - Browse repository at this point
Copy the full SHA 45e2deaView commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 17e55d4 - Browse repository at this point
Copy the full SHA 17e55d4View commit details -
fixing bearssl version in lockfile and in nimble file
It seems lockfile was generated wrong or not updated, broken in 76bff75 setting it to version used in nimbus build system based build Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e4862cd - Browse repository at this point
Copy the full SHA e4862cdView commit details
Commits on Jun 5, 2023
-
pkg/ is specific to how old nimble handles packages. Nimble 0.14 (with lock file support) uses pkg2/ Anyway, pkg or pkg2 are not needed, better remove. Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 830247f - Browse repository at this point
Copy the full SHA 830247fView commit details -
update .nimble and .lock files to work
Make dht compile with new new (0.14+) nimble. Compilation with Nimble <0.14 can't work, as the many of the libraries on the dependency tree are not version tagged. As we can't change that, two paths remain: 1, use nimbus-build-system (i.e. git submodules) 2, use lock files introduced in nimble 0.14+ First was already working, this fixes second Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9665df6 - Browse repository at this point
Copy the full SHA 9665df6View commit details
Commits on Jun 6, 2023
-
just a comment on awaitedNodesMessages
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6aa2707 - Browse repository at this point
Copy the full SHA 6aa2707View commit details -
add DHT storage (addValue/getValue) functionality
this is a minimal implementation, with lots of work still needed. Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c2bb22a - Browse repository at this point
Copy the full SHA c2bb22aView commit details -
addValue/getValue: add minimal test
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 575a341 - Browse repository at this point
Copy the full SHA 575a341View commit details -
WIP, still not sampling but going through all samples Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1ed7813 - Browse repository at this point
Copy the full SHA 1ed7813View commit details -
start sample downloads in parallel
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 15c45be - Browse repository at this point
Copy the full SHA 15c45beView commit details -
add sampling instead of getting all segments
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2a8c7e7 - Browse repository at this point
Copy the full SHA 2a8c7e7View commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 479d640 - Browse repository at this point
Copy the full SHA 479d640View commit details
Commits on Jun 9, 2023
-
better sample generation for small samples
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b277446 - Browse repository at this point
Copy the full SHA b277446View commit details
Commits on Jun 12, 2023
-
generate segments systematically
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0083e1e - Browse repository at this point
Copy the full SHA 0083e1eView commit details -
das: factorize startSampling procedure
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2076bcd - Browse repository at this point
Copy the full SHA 2076bcdView commit details -
DAS: introduce the sample async procedure
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3af8b67 - Browse repository at this point
Copy the full SHA 3af8b67View commit details -
DAS: run sampling in parallel from each node
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6601186 - Browse repository at this point
Copy the full SHA 6601186View commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c768586 - Browse repository at this point
Copy the full SHA c768586View commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fe38377 - Browse repository at this point
Copy the full SHA fe38377View commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a05c0f8 - Browse repository at this point
Copy the full SHA a05c0f8View commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7b5e9d1 - Browse repository at this point
Copy the full SHA 7b5e9d1View commit details -
DASL check samplesize <= blocksize
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 12c4c97 - Browse repository at this point
Copy the full SHA 12c4c97View commit details -
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8286d8f - Browse repository at this point
Copy the full SHA 8286d8fView commit details -
use ChronoSim version of nim-chronos
Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3afc006 - Browse repository at this point
Copy the full SHA 3afc006View commit details
Commits on Jun 13, 2023
-
- moving das.nim to root directory nimble dependencies work strange .... - adding das target in .nimble file - adding missing tostring - copy test-helper to main folder (otherwise compilation errors) Signed-off-by: Csaba Kiraly <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d0c777c - Browse repository at this point
Copy the full SHA d0c777cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 97d9b37 - Browse repository at this point
Copy the full SHA 97d9b37View commit details