IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
480: build: fix wrong repo urls, clippies r=koivunej a=koivunej
I had forgotten some old urls there which are sure to cause build failures, as seen in the #479.
Co-authored-by: Joonas Koivunen <joonas.koivunen@gmail.com>
these query types were originally observing what kind of requests
conformance tests do and what kind of requests go-ipfs supports, so
keeping them as there might be some value. to be removed when upgrading
conformance tests.
this includes a change on making `unixfs::InvalidCidInLink` properly
`#[non_exhaustive]` instead of using the hidden field trick. it probably
isn't a breaking change, but then again requires a more recent rustc,
which sort of makes it a breaking change.
475: Fixing build issue described in: https://github.com/libp2p/rust-libp2p/issues/2231 r=koivunej a=karim-agha
When including rust-ipfs as a dependency in any crate, it fails with the following error:
```
error: failed to select a version for the requirement `aesni = "^0.7"`
candidate versions found which didn't match: 0.99.99, 0.10.0, 0.9.0, ...
location searched: crates.io index
required by package `aes v0.4.0`
... which is depended on by `aes-gcm v0.6.0`
... which is depended on by `snow v0.7.1`
... which is depended on by `libp2p-noise v0.30.0 (/home/alexander/dev/misc/rust-libp2p/transports/noise)`
... which is depended on by `libp2p v0.37.1 (/home/alexander/dev/misc/rust-libp2p)`
... which is depended on by `libp2p-relay v0.2.0 (/home/alexander/dev/misc/rust-libp2p/protocols/relay)`
```
This fix updates the libp2p version into one that has a fix for this dependency and now it compiles fine
Co-authored-by: Karim Agha <karim.dev@gmail.com>
When including rust-ipfs as a dependency in any crate, it fails with the following error:
```
error: failed to select a version for the requirement `aesni = "^0.7"`
candidate versions found which didn't match: 0.99.99, 0.10.0, 0.9.0, ...
location searched: crates.io index
required by package `aes v0.4.0`
... which is depended on by `aes-gcm v0.6.0`
... which is depended on by `snow v0.7.1`
... which is depended on by `libp2p-noise v0.30.0 (/home/alexander/dev/misc/rust-libp2p/transports/noise)`
... which is depended on by `libp2p v0.37.1 (/home/alexander/dev/misc/rust-libp2p)`
... which is depended on by `libp2p-relay v0.2.0 (/home/alexander/dev/misc/rust-libp2p/protocols/relay)`
```
This fix updates the libp2p version into one that has a fix for this dependency and now it compiles fine
473: Swarm cleanup following libp2p upgrade to v0.39.1 r=koivunej a=CHr15F0x
This is a follow up of https://github.com/rs-ipfs/rust-ipfs/pull/472. There are two changes introduced:
* remove eq_greedy as `Multiaddr` in `SwarmApi::pending_{addresses, connections}` contains p2p, align conversions accordingly (136496f7de),
* explicitly use `MultiaddrWithPeerId` in `SwarmApi::pending_{addresses, connections}` (3b6f69530f).
The former (136496f7de) works fine without the latter (3b6f69530f), however I am leaning more towards keeping both changes. Encoding the information about peer id presence/absence in Multiaddr in _type_ instead of relying on comments and `expect()`s improves readability and _developer experience_.
Please let me know what your thoughts are.
Co-authored-by: Krzysztof Lis <klis33@gmail.com>
Enforce internal represenatation for `SwarmApi::pending_{addresses, connections}` to explicitly show that all multiaddrs include peer IDs by using `MultiaddrWithPeerId`.
472: chore: upgrade to libp2p 0.39 r=koivunej a=CHr15F0x
This PR is a follow up of #463.
It includes the following:
- upgrading libp2p to [v.0.39.1](https://github.com/libp2p/rust-libp2p/releases/tag/v0.39.1)
- upgrading some other deps (e.g.: prost, prost-base, quick-protobuf, base64), **excluding cid and multihash**
- fixes to tests that started failing following upgrade to libp2p v.0.38 in #463
Incoming shortly:
- [x] respective changelog update
- [x] ~~I haven't run the changes against current workflow, so some additional fixes could be necessary;~~ edit: though I did check against all tests locally numerous times during dev, albeit only in a linux/x64 environment; btw looks like the workflows are fine with the changes
Co-authored-by: Joonas Koivunen <joonas.koivunen@gmail.com>
Co-authored-by: Krzysztof Lis <klis33@gmail.com>
Includes replacing `upgrade::{write_one, read_one}` with `upgrade::{write_length_prefixed, read_length_prefixed}` respectively, which is a direct consequence of [PR2111](https://github.com/libp2p/rust-libp2p/pull/2111).
471: ci: cache improvements r=koivunej a=Mirko-von-Leipzig
This PR improves the CI caching, roughly halving the time required when caches are hit (no dependency or toolchain changes).
Overview of changes:
- Use [rust-cache action](https://github.com/Swatinem/rust-cache). This forms the bulk of the time improvement as Rust dependencies are now cached.
- Improve npm caching for conformance tests. This trims 2-3 minutes of build time.
- Improve job and step naming.
- Add a manual trigger for the workflow.
- Remove core dump for macos, no longer required.
Further details can be found in the commits.
I've been running into sporadic conformance test failures on windows ([link to run](https://github.com/Mirko-von-Leipzig/rust-ipfs/actions/runs/1135372291)):
```
1) .pubsub.subscribe
multiple connected nodes
should send/receive 100 messages:
FetchError: request to http://127.0.0.1:50533/api/v0/pubsub/pub?arg=pubsub-tests-C-aIrZS_7OSQMNSVOMszV failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (node_modules\node-fetch\lib\index.js:1455:11)
at Socket.socketErrorListener (_http_client.js:475:9)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
```
Co-authored-by: Mirko von Leipzig <mirko.vonleipzig@gmail.com>