Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test rework #37

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
273661c
Document dht-cache
lu-zero Jul 10, 2023
b02ea2c
Hide unneeded API surface
lu-zero Jul 10, 2023
a731e84
Re-export to the root of dht-cache
lu-zero Jul 10, 2023
33c2dac
Initial error type
lu-zero Jul 20, 2023
a2ccc2e
Simplify the DomoEvent handling
lu-zero Jul 20, 2023
82e9b70
wip: Add get_peers_stats
lu-zero Jul 20, 2023
88adbe6
Hide even more of the DomoCache
lu-zero Jul 25, 2023
492eb27
Move the data structures in a separate module
lu-zero Jul 25, 2023
2f2a107
Derive Default for DomoCacheElement
lu-zero Jul 27, 2023
3d13ec1
Move the rsa key generator in domolibp2p
lu-zero Jul 27, 2023
3540714
Make the pg test use the DOMO_DHT_TEST_DB env var if available
lu-zero Jul 28, 2023
31bf87a
Split the behavior creation from the swarm setup
lu-zero Jul 28, 2023
2f687ae
wip: Abstract over the network code
lu-zero Jul 28, 2023
0fe0b55
Fix documentation
lu-zero Jul 29, 2023
100fa6e
wip: Rework the cache layer
lu-zero Aug 6, 2023
766a1cd
wip: Update the broker to handle the NewPeers event
lu-zero Aug 9, 2023
8c48212
fixup: use any() instead of find().is_some()
lu-zero Aug 10, 2023
b9dbdc1
fixup: Move the comments to the right place
lu-zero Aug 10, 2023
c2b8338
Wire in the persistent storage
lu-zero Aug 10, 2023
5e7fa4b
Allow to not use a local db at all
lu-zero Aug 10, 2023
0be6170
fixup: Clippy lints
lu-zero Aug 11, 2023
6a3b9fc
Test everything including pg integration
lu-zero Aug 11, 2023
2d44568
wip: Add Builder
lu-zero Aug 14, 2023
29fb034
Refactor the psk logic
lu-zero Aug 14, 2023
15b11b1
fixme: move to dev-dependencies
lu-zero Aug 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions .github/workflows/libp2p-rust-dht.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,19 @@ jobs:

runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: mysecretpassword
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -179,7 +192,7 @@ jobs:
RUSTFLAGS: "-Cinstrument-coverage"
LLVM_PROFILE_FILE: "libp2p-rust-dht-%p-%m.profraw"
run: |
cargo test --verbose
cargo test --verbose --all

- name: Get coverage data for codecov
run: |
Expand Down Expand Up @@ -226,6 +239,19 @@ jobs:

runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: mysecretpassword
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -271,7 +297,7 @@ jobs:
RUSTFLAGS: "-Cinstrument-coverage"
LLVM_PROFILE_FILE: "libp2p-rust-dht-%p-%m.profraw"
run: |
cargo test --verbose
cargo test --verbose --all

- name: Run grcov
run: |
Expand Down
9 changes: 8 additions & 1 deletion dht-cache/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,17 @@ time = "0.3.17"
tokio = { version = "1.19.0", features = ["full"] }
url = "2.2.2"
rsa = "0.9"
pem-rfc7468 = { version = "0.7", features = ["alloc"] }
pem-rfc7468 = { version = "0.7", features = ["std"] }
sifis-config = { path = "../dht-config" }
openssl-sys = "*"
libsqlite3-sys = "*"
thiserror = "1.0.43"
anyhow = "1.0.72"
tokio-stream = "0.1.14"

[dev-dependencies]
env_logger = "0.10.0"
libp2p-swarm-test = "0.2.0"


[package.metadata.cargo-udeps.ignore]
Expand Down
Loading