Closed AlejandroCabeza closed 3 months ago
I've observed similar error on my local.
How verbose are the logs? trace perhaps? This doesn't seem to fail in CI.
This doesn't happen in the CI because on the CI we don't run the tests using test_all
(that's a file I created, and I wasn't sure it should be ran).
I'm still investigating, I'll provide logs and context asap.
onDisconnect() at group_manager.nim:500
that seems an onchain rln thing, that requires an ethereum node running. Unsure how the tests are being run, but I doubt you have that node?
onDisconnect() at group_manager.nim:500
that seems an onchain rln thing, that requires an ethereum node running. Unsure how the tests are being run, but I doubt you have that node?
I've done nothing other than run the binaries, but as I mentioned earlier, when running test_all
it fails, and when running test_all "name of the test"
succeeds.
As far as I'm seeing, the difference is notable early on. The peer dialing doesn't seem to work in the first scenario, but it does on the second. I wonder if it could be a bleeding effect from an improper cleanup.
@AlejandroCabeza can you please confirm if this is still happening? We saw something similar get fixed with https://github.com/waku-org/nwaku/pull/2690 but not sure it will affect this case
I don't see that test failing anymore. However, there's one failing test:
In ./tests/waku_rln_relay/test_waku_rln_relay.nim
, test getMetadata: empty rln metadata
Apparently get_metadata()
returns false
in the following line if metadata is not set.
https://github.com/waku-org/nwaku/blob/c5d19c449169b674d9aacc2cc2d6fd4b84d4ce23/waku/waku_rln_relay/rln/wrappers.nim#L547
@rymnc can you please check if it also happens to you? If so, should we change the test to expect an error?
I don't see that test failing anymore. However, there's one failing test: In
./tests/waku_rln_relay/test_waku_rln_relay.nim
, testgetMetadata: empty rln metadata
Apparently
get_metadata()
returnsfalse
in the following line if metadata is not set. https://github.com/waku-org/nwaku/blob/c5d19c449169b674d9aacc2cc2d6fd4b84d4ce23/waku/waku_rln_relay/rln/wrappers.nim#L547@rymnc can you please check if it also happens to you? If so, should we change the test to expect an error?
what version of librln do you have? it should not error. please note that it was patched and librln 0.3.7 is the latest for rln-v1.
what version of librln do you have? it should not error. please note that it was patched and librln 0.3.7 is the latest for rln-v1.
Oh it was that, I was using librln_v0.3.4.a
but changed to librln_v0.3.7.a
and the test passed :))
Apologies and thanks so much!
Running librln_v0.5.1.a
all tests pass with the following command
nim c -r -d:chronicles_log_level=DEBUG -d:release -d:postgres -d:rln --passL:librln_v0.5.1.a --passL:-lm -d:nimDebugDlOpen tests/test_all
Closing the issue. Please reopen in case someone still gets failures
Draft: Trying to investigate what triggers this issue.
Problem
When running all the tests with the
tests/test_all
file, the'WakuNode2 - Validators::Spam protected topic accepts signed messages'
test fails. This doesn't happen when running the tests specifying the test name (nim c --passL:librln_v0.3.4.a --passL:-lm -r tests/test_all 'WakuNode2 - Validators::Spam protected topic accepts signed messages'
) or when just running the binary of the file where the test is defined.Impact
Low?
To reproduce
nim c --passL:librln_v0.3.4.a --passL:-lm -r tests/test_all
Screenshots/logs
nwaku version/commit hash