-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into akaladarshi/add-delegated-address
- Loading branch information
Showing
25 changed files
with
366 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Butterflynet checks | ||
on: | ||
workflow_dispatch: | ||
env: | ||
CI: 1 | ||
CARGO_INCREMENTAL: 0 | ||
CACHE_TIMEOUT_MINUTES: 5 | ||
SCRIPT_TIMEOUT_MINUTES: 30 | ||
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" | ||
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" | ||
RUSTC_WRAPPER: sccache | ||
CC: sccache clang | ||
CXX: sccache clang++ | ||
FIL_PROOFS_PARAMETER_CACHE: /var/tmp/filecoin-proof-parameters | ||
SHELL_IMAGE: busybox | ||
jobs: | ||
butterflynet-checks: | ||
name: Butterflynet checks | ||
runs-on: ubuntu-24.04-arm | ||
steps: | ||
- name: Checkout Sources | ||
uses: actions/checkout@v4 | ||
- name: Setup sccache | ||
uses: mozilla-actions/[email protected] | ||
timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}" | ||
continue-on-error: true | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: "go.work" | ||
- name: Build and install Forest binaries | ||
env: | ||
# To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times | ||
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld" | ||
run: make install-slim-quick | ||
- name: Run butterflynet checks | ||
run: ./scripts/tests/butterflynet_check.sh | ||
timeout-minutes: "${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
/dns4/bootstrap-0.butterfly.fildev.network/tcp/1347/p2p/12D3KooWFfuFm4eWfMR2Xk9jQ8VsxVqt9nyZXZRdi6WqNrPcg8qk | ||
/dns4/bootstrap-1.butterfly.fildev.network/tcp/1347/p2p/12D3KooWEgUQub6ZS5M7hfiZPNf4kFFmgsiyYKNcdAk5oKMUcyft | ||
/dnsaddr/bootstrap.butterfly.fildev.network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
|
||
# This script tests Forest is able to catch up the butterflynet. | ||
|
||
source "$(dirname "$0")/harness.sh" | ||
|
||
function shutdown { | ||
kill -KILL $FOREST_NODE_PID | ||
} | ||
|
||
trap shutdown EXIT | ||
|
||
function call_forest_chain_head { | ||
curl --silent -X POST -H "Content-Type: application/json" \ | ||
--data '{"jsonrpc":"2.0","id":2,"method":"Filecoin.ChainHead","param":"null"}' \ | ||
"http://127.0.0.1:2345/rpc/v1" | ||
} | ||
|
||
$FOREST_PATH --chain butterflynet --encrypt-keystore false & | ||
FOREST_NODE_PID=$! | ||
|
||
until call_forest_chain_head; do | ||
echo "Forest RPC endpoint is unavailable - sleeping for 1s" | ||
sleep 1 | ||
done | ||
|
||
forest_wait_for_sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.