1470 Commits

Author SHA1 Message Date
shashankshampi
49ce782eed added alex changes 2024-10-26 11:46:17 +05:30
shashankshampi
1bfdded523 added documentation as per request 2024-10-25 11:14:17 +05:30
shashankshampi
df674d586a another set of review comment fix 2024-10-24 19:16:13 +05:30
shashankshampi
aa34c7f553 fix in last test 2024-10-24 16:54:19 +05:30
shashankshampi
a3c29ae7a1 rebase 2024-10-24 13:53:25 +05:30
shashankshampi
be818b90b0 Remove tests/pubsub/testgossipmembership from the PR 2024-10-24 13:45:30 +05:30
shashankshampi
a7e80de4d8 rebase 2024-10-24 13:42:51 +05:30
shashankshampi
d80abe09ae review comment fix 2024-10-22 10:58:42 +05:30
shashankshampi
44dd7d1c3c added updated logic to use common handler and create peers nodes as real instead of simulations 2024-10-21 16:35:17 +05:30
shashankshampi
e68685ccd7 added part 2 PR in same 2024-10-16 15:25:27 +05:30
shashankshampi
cc8e97636f removed PubSub in sunscribe 2024-10-10 19:19:18 +05:30
shashankshampi
567a456200 Merge branch 'block6Test' into block6Test2 2024-10-10 19:18:23 +05:30
shashankshampi
ff6b274f5b review comment fix 2024-10-10 19:16:04 +05:30
Álex
a3b8729cbe
fix(ci): Daily workflows report (#1200)
Fix daily workflows' green tick when jobs failed.

Based of off: https://stackoverflow.com/a/58859404

Closes:  https://github.com/vacp2p/nim-libp2p/issues/1197

---------

Co-authored-by: Diego <diego@status.im>
2024-10-10 12:10:49 +00:00
Álex
6c970911f2
fix(CI): free disk space on interop transport job (#1206)
Readd the free disk space job, as space issues still happen when
building images.

---------

Co-authored-by: Diego <diego@status.im>
2024-10-10 09:42:25 +00:00
shashankshampi
cb7ccaee31 updated as per review comment 2024-10-10 11:30:03 +05:30
shashankshampi
a12b56c512 Merge branch 'block6Test' into block6Test2 2024-10-10 11:03:20 +05:30
shashankshampi
d594c049b8 addressed wornderful review comments 2024-10-10 11:00:42 +05:30
shashankshampi
2d38e8abfc fix in test logic for multiple peers join and leave topic simultaneously 2024-10-08 16:17:42 +05:30
shashankshampi
806592ddbb PR update 2024-10-07 09:07:54 +05:30
shashankshampi
89473da8bc TC fix 2024-10-06 01:45:13 +05:30
shashankshampi
e10e4d058b rebase with block6Test 2024-10-06 01:30:31 +05:30
shashankshampi
f42a763708 added assertion for handle SUBSCRIBE to the topic 2024-10-03 16:39:04 +05:30
shashankshampi
19d3ead6b8 removed unwanted check 2024-10-03 16:04:22 +05:30
shashankshampi
46b712531d removed internal subscribe and unsubscribe test 2024-10-03 15:03:09 +05:30
shashankshampi
f0c8c5b6e6 review comments to remove unwanted comments 2024-10-03 15:00:17 +05:30
shashankshampi
25df50d691 updtaed as per review comment 2024-10-03 13:07:24 +05:30
shashankshampi
27c2850bc7 Merge branch 'master' into block6Test2 2024-10-02 16:33:48 +05:30
shashankshampi
9c0966e21e Merge branch 'master' into block6Test 2024-10-02 16:25:18 +05:30
shashankshampi
eb2f6bf346 test(gossipsub): Test cases covering subscribe and unsubscribe Events
added test wrt subscribe and unsubscribe

added tests/pubsub/testgossipinternal2 file

linters

feat: rendezvous refactor (#1183)

Hello!

This PR aim to refactor rendezvous code so that it is easier to impl.
Waku rdv strategy. The hardcoded min and max TTL were out of range with
what we needed and specifying which peers to interact with is also
needed since Waku deals with peers on multiple separate shards.

I tried to keep the changes to a minimum, specifically I did not change
the name of any public procs which result in less than descriptive names
in some cases. I also wanted to return results instead of raising
exceptions but didn't. Would it be acceptable to do so?

Please advise on best practices, thank you.

---------

Co-authored-by: Ludovic Chenut <ludovic@status.im>

refactor and suite name refactor

chore(ci): Enable S3 caching for interop (#1193)

- Adds our S3 bucket for caching docker images as Protocol Labs shut
down their shared one.
- Remove the free disk space workaround that prevented the jobs from
failing for using too much space for the images.

---------

Co-authored-by: diegomrsantos <diego@status.im>

PR review comment changes
2024-10-01 17:28:39 +05:30
shashankshampi
fda0d2b6e3 test(gossipsub): import optimization 2024-10-01 17:22:47 +05:30
shashankshampi
2923a2d280 test(gossipsub): added test for membership for join and leave topic 2024-10-01 17:18:08 +05:30
shashankshampi
1c2e221d75 refactor and suite name refactor 2024-09-27 10:16:49 +05:30
Álex
5d48776b02
chore(ci): Enable S3 caching for interop (#1193)
- Adds our S3 bucket for caching docker images as Protocol Labs shut
down their shared one.
- Remove the free disk space workaround that prevented the jobs from
failing for using too much space for the images.

---------

Co-authored-by: diegomrsantos <diego@status.im>
2024-09-26 09:56:09 +00:00
shashankshampi
eced002339 Merge branch 'master' into block6Test 2024-09-26 13:33:57 +05:30
shashankshampi
5790b6f428 linters 2024-09-26 13:26:17 +05:30
shashankshampi
dc7f8d4317 added tests/pubsub/testgossipinternal2 file 2024-09-26 11:33:25 +05:30
shashankshampi
871efab571 added test wrt subscribe and unsubscribe 2024-09-26 11:28:07 +05:30
Simon-Pierre Vivier
d389d96789
feat: rendezvous refactor (#1183)
Hello!

This PR aim to refactor rendezvous code so that it is easier to impl.
Waku rdv strategy. The hardcoded min and max TTL were out of range with
what we needed and specifying which peers to interact with is also
needed since Waku deals with peers on multiple separate shards.

I tried to keep the changes to a minimum, specifically I did not change
the name of any public procs which result in less than descriptive names
in some cases. I also wanted to return results instead of raising
exceptions but didn't. Would it be acceptable to do so?

Please advise on best practices, thank you.

---------

Co-authored-by: Ludovic Chenut <ludovic@status.im>
2024-09-25 09:11:57 +00:00
kaiserd
09fe199b6b
chore(version): update libp2p.nimble to 1.6.0 (#1196)
Updating libp2p.nimble to 1.6.0.
This commit is planned to be tagged with 1.6.0.

The only new feature in this version is the highly experimental Quick
transport. Still, it is a feature and justifies a minor version upgrade.
It also contains a few fixes and improvements (see commit history).

Co-authored-by: ksr <kaiserd@users.noreply.github.com>
v1.6.0
2024-09-19 20:06:45 +00:00
diegomrsantos
68306cf1f1
chore: fix devel compilation issues (#1195)
- fixes https://github.com/vacp2p/nim-libp2p/issues/1194.
- fixes ambiguous `KeyError`
- removes an unnecessary type param for `newSeqWith`
- fixes tests for `safeConvert`

The main fixes relate to Nim 2.2 being more strict and not accepting
calls with a wrong number of type parameters.
2024-09-19 11:35:50 +00:00
Tanguy
b37133ca43
feat(transport): add experimental QUIC Transport (not production ready) (#725)
Our quic effort is blocked by bearssl not supporting TLS1.3, but since
Mark did most of the work to implement Quic here:
https://github.com/status-im/nim-libp2p/pull/563 and on nim-quic, this
PR is going to bring encryption-less Quic into nim-libp2p
This allows us to test it, and make sure it doesn't bitrot.

Heavily WiP:
- [X] Extract code from #563
- [X] Create custom muxer & upgrader
- [X] Basic E2E switch test working
- [x] Update nim-quic to get address informations in libp2p (for
`observed address` and port 0 resolving)
- [ ] More tests
- [ ] Cleanup

Since encryption is not yet supported, we're not compatible with any
other libp2ps, and have to rely on home made protocols to retrieve the
peer's id

---------

Co-authored-by: markspanbroek <mark@spanbroek.net>
Co-authored-by: Diego <diego@status.im>
2024-09-12 09:32:14 +00:00
diegomrsantos
3e3df07269
chore: add support to merge queues (#1192)
This change is necessary before enabling merge queues. The `merge_group`
event is needed to trigger the GitHub Actions workflow when a pull
request is added to a merge queue.

The merge queue provides the same benefits as the Require branches to be
up to date before merging branch protection but does not require a pull
request author to update their pull request branch and wait for status
checks to finish before trying to merge. More info on
https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue.
2024-09-10 16:10:24 +00:00
Etan Kissling
1771534030
fix(multiaddress): Raise MaError instead of LPError on & (#1145)
`LPError` is the top level error type of libp2p, it makes more sense to
raise a multi address specific subtype to avoid requiring callers to
catch errors too broadly. As `MaError` inherits from `LPError`, existing
error handlers will still work fine.

---------

Co-authored-by: diegomrsantos <diego@status.im>
2024-09-10 13:24:58 +00:00
diegomrsantos
21a444197c
chore: move mm:refc config and remove skipParentCfg (#1190)
- Moving the `mm:refc` configuration to the main `config.nims` file
makes it be used in tests and tasks that build examples.
- It's not clear why `skipParentCfg`was being used and it doesn't seem
to be necessary.
2024-09-10 13:51:54 +02:00
Ivan FB
966996542e
chore(connmanager): also show peerID and dir when too many conns (#1185)
Bring a bit more detail when the "Too many connections for peer" message
is being logged. Particularly, we are adding the offending `peerId` and
the stream direction

Co-authored-by: diegomrsantos <diego@status.im>
2024-09-09 13:52:01 +00:00
diegomrsantos
8070b21825
fix(transport): tcp accept fixes (#1170)
Address the comments in https://github.com/vacp2p/nim-libp2p/pull/1164
2024-09-09 11:49:33 +00:00
Cofson
d98152f266
Create funding.json (#1188) 2024-09-05 18:25:50 +02:00
diegomrsantos
47a51983b5
chore(CI): rollback nph change (#1187)
Rollbacks to the previous `nph` command that shows what files aren't
formatted.
2024-09-03 09:01:35 +00:00
Álex
70754cd575
ci: Enable conditional SAT solving (#1177)
* Add conditional SAT dependency solving to a new daily job.

closes: https://github.com/vacp2p/nim-libp2p/issues/1174
2024-09-02 15:33:16 +02:00