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

feat: impl bootstrap cache #2487

Merged
merged 21 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
4eff89d
feat(networking): add bootstrap cache for peer discovery
dirvine Nov 21, 2024
67f2d7f
refactor(bootstrap_cache): improve peer source handling and test netw…
dirvine Nov 24, 2024
af2c35f
chore: update readme
dirvine Nov 24, 2024
80855f8
fix(bootstrap_cache): improve test isolation and env var handling
dirvine Nov 24, 2024
2b6b8f9
fix(bootstrap_cache): remove unused code and prep it for integration
RolandSherwin Nov 28, 2024
45c26ff
fix(bootstrap): remove rwlock from the store
RolandSherwin Dec 2, 2024
f3f7220
feat(bootstrap): wrap the counts when reaching the max bounds
RolandSherwin Dec 2, 2024
f5af65e
fix(bootstrap): couple more tiny fixes
RolandSherwin Dec 2, 2024
62fe748
feat(bootstrap): store multiple multiaddr per peer
RolandSherwin Dec 3, 2024
1ce7f63
feat(bootstrap): isolate code into their own modules based on their p…
RolandSherwin Dec 3, 2024
460bc67
feat(bootstrap): impl bootstrap cache into the codebase
RolandSherwin Dec 4, 2024
65e2170
feat: remove ant-peers-acquisition and use ant-bootstrap instead
RolandSherwin Dec 4, 2024
f8bb46f
fix(bootstrap): use env tempdir for atomic write
RolandSherwin Dec 4, 2024
d8f3ac7
fix(bootstrap): make it wasm compatible
RolandSherwin Dec 4, 2024
cd44b1b
fix(bootstrap): use atomic write crate and remove locks
RolandSherwin Dec 4, 2024
d89d6d2
feat(ci): enable bootstrap tests
RolandSherwin Dec 5, 2024
c70ee45
feat(bootstrap): rework the api to not hold persistant state
RolandSherwin Dec 5, 2024
dfeac3b
chore(bootstrap): remove components related to serving the json
RolandSherwin Dec 5, 2024
56865c6
feat(bootstrap): write bootstrap cache from the clients
RolandSherwin Dec 6, 2024
469e496
chore(antctl): use PeersArg::local instead of a separate arg
RolandSherwin Dec 6, 2024
7bbccf5
chore: update based on comments
RolandSherwin Dec 6, 2024
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
4 changes: 4 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ jobs:
timeout-minutes: 25
run: cargo test --release --package autonomi --lib --features="full,fs"

- name: Run bootstrap tests
timeout-minutes: 25
run: cargo test --release --package ant-bootstrap

- name: Run node tests
timeout-minutes: 25
run: cargo test --release --package ant-node --lib
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,14 @@ jobs:
run: cargo test --release --lib --bins --no-run
timeout-minutes: 30

- name: Run autonomi tests
timeout-minutes: 25
run: cargo test --release --package autonomi --lib --features="full,fs"

- name: Run bootstrap tests
timeout-minutes: 25
run: cargo test --release --package ant-bootstrap

- name: Run node tests
timeout-minutes: 25
run: cargo test --release --package ant-node --lib
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ sn_node_manager/.vagrant
.venv/
uv.lock
*.so
*.pyc

*.pyc
*.swp

/vendor/
RolandSherwin marked this conversation as resolved.
Show resolved Hide resolved
Loading
Loading