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

WIP: local as runtime opt #2595

Merged
merged 32 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b4a2f12
feat: remove feat flags
grumbach Jan 3, 2025
4edfe6f
feat: remove feat flags from ci
grumbach Jan 3, 2025
0be759b
feat: local as runtime opt
grumbach Jan 3, 2025
cee5d51
feat: cli local setup
grumbach Jan 3, 2025
924daff
chore: keep old order
grumbach Jan 3, 2025
ce9e9a7
chore: fix cli wallet error management
grumbach Jan 6, 2025
854582a
feat: local mode in config
grumbach Jan 6, 2025
010b6db
fix(node): evm network initialization logic
mickvandijke Jan 7, 2025
780a3d8
Merge pull request #8 from mickvandijke/local_as_runtime_opt
grumbach Jan 7, 2025
30fd900
Merge branch 'main' into local_as_runtime_opt
grumbach Jan 7, 2025
f3cf215
chore: remove expects
grumbach Jan 7, 2025
9857040
chore: set default evm network to Arbitrum Sepolia
mickvandijke Jan 7, 2025
904b201
Merge pull request maidsafe#2609
mickvandijke Jan 7, 2025
339b13f
refactor: get evm network from single source
mickvandijke Jan 7, 2025
c0d6bfd
feat: remove local from antctl too
grumbach Jan 7, 2025
e7ea9bc
Merge pull request #9 from mickvandijke/local_as_runtime_opt
grumbach Jan 7, 2025
fb410ce
Merge branch 'main' into local_as_runtime_opt
grumbach Jan 7, 2025
ede5f34
chore: small cleanups
grumbach Jan 7, 2025
178a064
fix: enable feature gated logging option
grumbach Jan 7, 2025
51f00b6
fix: adapt e2e ci tests
grumbach Jan 7, 2025
46de268
feat: centralize evm network selection code
grumbach Jan 7, 2025
8d8a1c9
Merge branch 'main' into local_as_runtime_opt
grumbach Jan 8, 2025
d77b844
fix: remove duplicate if local
grumbach Jan 8, 2025
540906c
test: fix networking async test
b-zee Jan 14, 2025
f98319e
Merge remote-tracking branch 'origin/main' into local_as_runtime_opt
b-zee Jan 14, 2025
f71cec8
refactor: base evm network on local setting
b-zee Jan 14, 2025
189c5be
ci: fix double upload
b-zee Jan 14, 2025
f1bcad1
fix: enable process-metrics feature
b-zee Jan 14, 2025
fc61526
ci: fix local vault sync
b-zee Jan 14, 2025
5e9a669
ci: add --local flags to ant
b-zee Jan 14, 2025
9db5100
feat: enable mDNS behavior only with --local
b-zee Jan 14, 2025
fa5b005
docs: remove reference to --local in README.md
b-zee Jan 14, 2025
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
6 changes: 3 additions & 3 deletions .github/workflows/benchmark-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
# it will be better to execute bench test with `local`,
# to make the measurement results reflect speed improvement or regression more accurately.
- name: Build binaries
run: cargo build --release --features local --bin antnode --bin ant
run: cargo build --release --bin antnode --bin ant
timeout-minutes: 30

- name: Start a local network
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:

- name: Start a client instance to compare memory usage
shell: bash
run: ./target/release/ant --log-output-dest=data-dir file upload "./the-test-data.zip"
run: ./target/release/ant --log-output-dest=data-dir --local file upload "./the-test-data.zip"
env:
ANT_LOG: "all"
timeout-minutes: 5
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
# # Criterion outputs the actual bench results to stderr "2>&1 tee output.txt" takes stderr,
# # passes to tee which displays it in the terminal and writes to output.txt
# run: |
# cargo criterion --features=local --message-format=json 2>&1 -p sn_cli | tee -a output.txt
# cargo criterion --message-format=json 2>&1 -p sn_cli | tee -a output.txt
# cat output.txt | rg benchmark-complete | jq -s 'map({
# name: (.id | split("/"))[-1],
# unit: "MiB/s",
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/generate-benchmark-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: wget https://sn-node.s3.eu-west-2.amazonaws.com/the-test-data.zip

- name: Build node and cli binaries
run: cargo build --release --features local --bin antnode --bin ant
run: cargo build --release --bin antnode --bin ant
timeout-minutes: 30

- name: Start a local network
Expand All @@ -67,7 +67,7 @@ jobs:
# Criterion outputs the actual bench results to stderr "2>&1 tee output.txt" takes stderr,
# passes to tee which displays it in the terminal and writes to output.txt
run: |
cargo criterion --features=local --message-format=json 2>&1 -p autonomi-cli | tee -a output.txt
cargo criterion --message-format=json 2>&1 -p ant | tee -a output.txt
cat output.txt | rg benchmark-complete | jq -s 'map({
name: (.id | split("/"))[-1],
unit: "MiB/s",
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:

- name: Start a client instance to compare memory usage
shell: bash
run: cargo run --bin ant --release -- --log-output-dest data-dir file upload the-test-data.zip
run: cargo run --bin ant --release -- --log-output-dest data-dir --local file upload the-test-data.zip
env:
ANT_LOG: "all"

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/memcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: sudo apt-get install -y ripgrep

- name: Build binaries
run: cargo build --release --features local --bin antnode --bin ant
run: cargo build --release --bin antnode --bin ant
timeout-minutes: 30

- name: Start a local network
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
shell: bash

- name: File upload
run: ./target/release/ant --log-output-dest=data-dir file upload --public "./the-test-data.zip" > ./upload_output 2>&1
run: ./target/release/ant --log-output-dest=data-dir --local file upload --public "./the-test-data.zip" > ./upload_output 2>&1
env:
ANT_LOG: "v"
timeout-minutes: 15
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
ls -l $ANT_DATA_PATH/client_first/logs
mkdir $ANT_DATA_PATH/client
ls -l $ANT_DATA_PATH
./target/release/ant --log-output-dest=data-dir file upload --public "./the-test-data.zip" > ./upload_output_second 2>&1
./target/release/ant --log-output-dest=data-dir --local file upload --public "./the-test-data.zip" > ./upload_output_second 2>&1
rg 'All chunks already exist on the network.' ./upload_output_second -c --stats
env:
ANT_LOG: "all"
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
if: always()

- name: File Download
run: ./target/release/ant --log-output-dest=data-dir file download ${{ env.UPLOAD_ADDRESS }} ./downloaded_resources
run: ./target/release/ant --log-output-dest=data-dir --local file download ${{ env.UPLOAD_ADDRESS }} ./downloaded_resources
env:
ANT_LOG: "v"
timeout-minutes: 2
Expand Down
Loading
Loading