Commit Graph

1951 Commits

Author SHA1 Message Date
Franck Royer e167f4fba4
Decode payload to utf8 string 2021-03-29 15:08:31 +11:00
Franck Royer 46c41dc50f
Test connection triggered from js and add API 2021-03-29 15:08:31 +11:00
bors[bot] fdff7c43b8
Merge #16
16: Update nim-waku, `0x` now optional in RPC requests r=D4nte a=D4nte

Confirms resolution of https://github.com/status-im/nim-waku/issues/415

Co-authored-by: Franck Royer <franck@royer.one>
2021-03-29 03:26:25 +00:00
Franck Royer c4d3c7fb47
Update nim-waku, `0x` now optional in RPC requests 2021-03-29 14:25:03 +11:00
bors[bot] 46869e998d
Merge #6
6: Add more tests r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@royer.one>
2021-03-26 04:36:51 +00:00
Franck Royer 9a5acdc4ea
Build nim-waku if the binary cannot be executed 2021-03-26 14:35:18 +11:00
Franck Royer 162228150a
Add step to check wakunode2 binary 2021-03-26 14:12:16 +11:00
Franck Royer a57f361b1e
Print log file name on failure 2021-03-26 13:09:44 +11:00
Franck Royer 1d248351c1
Wait a bit before subscribing 2021-03-26 13:09:44 +11:00
Franck Royer e99d1c012c
Add logs to track nim-waku process 2021-03-26 13:09:44 +11:00
Franck Royer 30b0d5785a
Upload CI logs on failure 2021-03-26 13:09:44 +11:00
Franck Royer e7ad81afee
Re-add Publish test 2021-03-26 09:37:01 +11:00
Franck Royer 4f58bde054
Add js to js subscribe test 2021-03-26 09:37:01 +11:00
Franck Royer 4473ad4cc7
Add tests where js initialize the connection to nim 2021-03-25 20:47:48 +11:00
bors[bot] bfc1c45209
Merge #11
11: Setup bors r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@royer.one>
2021-03-25 09:36:22 +00:00
Franck Royer cae1bb53da
Increase nim-waku cache version due to CI issues 2021-03-25 20:10:27 +11:00
Franck Royer c491b65edc
Handle nim-waku process exit & error 2021-03-25 20:09:33 +11:00
Franck Royer ee0c63eba3
Improve helper function for log name 2021-03-25 15:49:07 +11:00
Franck Royer ea97bfa557
Setup bors 2021-03-24 15:59:27 +11:00
Franck Royer a4afa76266
Merge pull request #8 from status-im/js-publishes-to-nim 2021-03-24 12:32:13 +11:00
Franck Royer e89b4ca437
Override Gossipsub.join` function to consider waku peers
Instead of gossipsub peers, this allows js to publish messages to nim.
2021-03-24 12:22:00 +11:00
Franck Royer 71f3e9aa1f
Name logs with test name only 2021-03-24 12:22:00 +11:00
Franck Royer 127357b0a6
Merge pull request #4 from status-im/noise-entropy
Reduce entropy usage in tests
2021-03-22 22:30:04 +11:00
Franck Royer 2486071708
Reduce entropy usage in tests
When playing around with tests frameworks, it was noticed that noise
was using entropy that lead to handles remaining open at the end of the
test run.
2021-03-22 22:25:13 +11:00
Franck Royer 2e845bc810
Merge pull request #3 from status-im/remove-protocol-patch 2021-03-22 22:24:00 +11:00
Franck Royer 01bc19e52c
Revert unnecessary ts config changes 2021-03-22 22:06:10 +11:00
Franck Royer 08a7f004c3
Missing protocols in identify message are now present
status-im/nim-waku/issues/419 has been fixed.
2021-03-22 22:05:18 +11:00
Franck Royer 5733fda0ab
Merge pull request #1 from status-im/reorg-tests 2021-03-22 22:04:55 +11:00
Franck Royer 82e7af44aa
Add TODO 2021-03-22 21:38:12 +11:00
Franck Royer 27c3668121
Use `--exit` to force termination of node after tests 2021-03-22 21:36:44 +11:00
Franck Royer d1e8ba2c6e
Finish conversion to mocha 2021-03-22 16:02:10 +11:00
Franck Royer 704f2770d1
Use ts-proto
This allows the generation of ts files which makes it easier
to handle with test frameworks than just d.ts files
2021-03-22 15:49:58 +11:00
Franck Royer a89f2700a2
Partial conversion to ts-node/mocha 2021-03-22 15:05:03 +11:00
Franck Royer 090b064c84
Kill nim-waku & js-libp2p nodes after tests 2021-03-22 14:24:01 +11:00
Franck Royer 13e941513d
Reorg tests, add describe sections 2021-03-19 15:55:38 +11:00
Franck Royer 7d595b0c8f
Move waku relay tests in dedicated file 2021-03-19 15:55:38 +11:00
Franck Royer e04988d98d
Run builds in sequence to ensure proto definition are done first 2021-03-19 15:26:11 +11:00
Franck Royer 1cf60d2615
Buid nim-waku node as separate ci step
So it's easily visible why a run takes longer and an update of the
submodule does not oddly increase the
test step duration.
2021-03-19 15:16:50 +11:00
Franck Royer 26c1511ee8
Cache npm cache in GitHub CI 2021-03-19 15:07:47 +11:00
Franck Royer 1f6a794db4
Update packages 2021-03-19 14:53:56 +11:00
Franck Royer 39332808d5
Improve API by using composition 2021-03-19 14:40:16 +11:00
Franck Royer c03f69a807
Always checkout submodules and actually get nim-waku head 2021-03-19 11:36:33 +11:00
Franck Royer 7ef0830620
Re-add nim-waku submodule 2021-03-19 11:23:34 +11:00
Franck Royer e7669c556d
Remove corrupted submodule 2021-03-19 11:12:56 +11:00
Franck Royer 6f8c5477ab
Update submodule 2021-03-19 10:45:44 +11:00
Franck Royer 345a2ba7b3
Skip failing test
Investigation is harder that first thought.
Skipping this so we can track a green CI and not introduced more bugs
by mistake.
2021-03-19 10:41:40 +11:00
Franck Royer b5c75f96ee
Use ref HEAD to identify cache
The .gitsubmodules does not change when a submodule is updated.
The cache should be updated whenever nim-waku is updated.
2021-03-19 10:41:40 +11:00
Franck Royer 1797bde72d
ContentTopic is now uint32 as per spec 2021-03-18 20:00:41 +11:00
Franck Royer 5c29394937
Migrate to jest for better debugging experience
ava is not yet integrated in popular IDEs.
2021-03-17 15:34:58 +11:00
Franck Royer 33a6176181
pubsub config is specific to waku relay 2021-03-17 14:30:35 +11:00