Closed noot closed 1 year ago
Hi @noot thanks for reaching out, I'm not familiar with this test, but it seems that this wasn't updated in two years, it's using old packages (testground go-sdk is 0.1, we're at 0.3).
This might be a lot of work, what are you trying to achieve?
It looks like it was already broken in 2020: https://github.com/libp2p/test-plans/issues?q=is%3Aissue+is%3Aopen+dht
If you want to use this test: start from a minimal working version and add back features & update packages. I took some time to simplify the composition file, hopefully this is a starting point you can build on top:
Use testground build composition -f compositions/find-provs-both-local.toml --wait
to build the test (don't use -w
, which writes artifacts to your composition file, this will create noise)
balsam
, it works: https://github.com/libp2p/test-plans/commit/25d2dba01f7dae67a313655c0d38fda276da6cdbcypress
, it breaks: https://github.com/libp2p/test-plans/commit/e3bab7191d0e7d00de54aadf665a9b131e281345This is where you probably want to fix the go build, and update go packages (calling go get THIS-REPO
is probably NOT going to help).
You can debug the build locally, cd in the dht folder and call:
go build -tags balsam
(this is how the first group is built, the one with selector = balsam) and go build -tags cypress
(second group).
@laurentsenta Thanks for the pointers! The balsam
build worked for me, I'll continue looking into that.
I'm planning to use testground to test that Provide
/GetProvIders
functionality still works as expected with a privacy-improved DHT, as well as potentially gather some metrics.
@laurentsenta good news, I managed to update all the deps and fix the build for testground build composition -f compositions/find-provs-both-local.toml --wait
by adding the following under [builders."docker:go"]
in manifest.toml
:
[builders."docker:go"]
go_version = "1.19"
build_base_image = "golang:1.19-buster"
The updated plan is here. https://github.com/ChainSafe/test-plans/tree/noot/dht/dht It works with both balsam
and cypress
.
@noot thanks for the work! Would you mind creating a pull request? //CC @laurentsenta
@mxinden done! #66 :)
Moving dht tests out of the repo see https://github.com/libp2p/test-plans/pull/129
Platform: ubuntu 22.04
Installed testground as per the testground readme.
Then, inside
test-plans/dht
, I'm runningtestground build composition -f compositions/find-provs-both-local.toml -w
(as per here) but getting an error in the daemon:Running
go get github.com/libp2p/test-plans/dht/test
doesn't change the errors unfortunately. I also tried withcompositions/find-provs.toml
but have the same issue.Since I need to update the deps for some DHT testing, I went ahead and did that (see here) but now I get a different error on build:
Some quick googling tells me this is due to some modules using go version <1.17, but not sure exactly how this can be fixed. Will continue trying to fix this, any pointers in the meantime would be much appreciated!