Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
21f50e5
refactor from bash to rust
sudo-shashank Apr 30, 2026
b942e69
use configured wallet
sudo-shashank Apr 30, 2026
6585103
Merge branch 'main' into shashank/refactor-wallet-test
sudo-shashank May 5, 2026
e23f77c
fix workflow
sudo-shashank May 5, 2026
dc1dfe2
Merge branch 'main' into shashank/refactor-wallet-test
sudo-shashank May 7, 2026
fd4c011
refactor and cleanup
sudo-shashank May 7, 2026
6c601fc
fix test:wallet
sudo-shashank May 7, 2026
90cd130
fix PRELOADED_ADDRESS read
sudo-shashank May 7, 2026
9095e83
client with timeout
sudo-shashank May 7, 2026
65e952c
fix
sudo-shashank May 7, 2026
e89d6b2
Merge branch 'main' into shashank/refactor-wallet-test
sudo-shashank May 7, 2026
b06c190
Remove -x
sudo-shashank May 7, 2026
1ca6b4f
Merge branch 'main' into shashank/refactor-wallet-test
sudo-shashank May 7, 2026
722e752
Merge branch 'main' into shashank/refactor-wallet-test
sudo-shashank May 8, 2026
2aab215
Merge branch 'main' into shashank/refactor-wallet-test
sudo-shashank May 11, 2026
b4ad326
Use unwrap
sudo-shashank May 11, 2026
4790baa
minor corrections
sudo-shashank May 12, 2026
d11e0d7
fmt
sudo-shashank May 12, 2026
484f15c
Merge branch 'main' into shashank/refactor-wallet-test
sudo-shashank May 12, 2026
f0c8aa3
Merge branch 'main' into shashank/refactor-wallet-test
sudo-shashank May 12, 2026
37e45db
Merge branch 'main' into shashank/refactor-wallet-test
sudo-shashank May 14, 2026
52fd19e
use feature flag
sudo-shashank May 14, 2026
5ac730e
Merge branch 'main' into shashank/refactor-wallet-test
sudo-shashank May 15, 2026
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
48 changes: 18 additions & 30 deletions .github/workflows/forest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,42 +242,31 @@ jobs:
- name: Set permissions
run: |
chmod +x ~/.cargo/bin/forest*
- name: Wallet commands check
env:
CALIBNET_WALLET: "${{ secrets.CALIBNET_WALLET }}"
- name: Configure SCCache variables
run: |
if [[ "$CALIBNET_WALLET" != "" ]]; then
./scripts/tests/calibnet_wallet_check.sh "$CALIBNET_WALLET"
# External PRs do not have access to 'vars' or 'secrets'.
if [[ "${{secrets.AWS_ACCESS_KEY_ID}}" != "" ]]; then
{
echo "SCCACHE_ENDPOINT=${{ vars.SCCACHE_ENDPOINT}}"
echo "SCCACHE_BUCKET=${{ vars.SCCACHE_BUCKET}}"
echo "SCCACHE_REGION=${{ vars.SCCACHE_REGION}}"
} >> "$GITHUB_ENV"
fi
timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}
calibnet-delegated-wallet-check:
concurrency:
group: calibnet-wallet-tests
cancel-in-progress: false
needs:
- build-ubuntu
- calibnet-wallet-check
name: Delegated wallet tests
runs-on: ubuntu-24.04
steps:
- uses: actions/cache@v5
with:
path: "${{ env.FIL_PROOFS_PARAMETER_CACHE }}"
key: proof-params-keys
- uses: actions/checkout@v6
- uses: actions/download-artifact@v8
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.10
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
continue-on-error: true
- uses: actions/setup-go@v6
with:
name: "forest-${{ runner.os }}"
path: ~/.cargo/bin
- name: Set permissions
run: |
chmod +x ~/.cargo/bin/forest*
- name: Delegated wallet commands check
go-version-file: "go.work"
cache-dependency-path: "**/go.sum"
- uses: jdx/mise-action@v4
- name: Wallet commands check
env:
CALIBNET_WALLET: "${{ secrets.CALIBNET_WALLET }}"
run: |
if [[ "$CALIBNET_WALLET" != "" ]]; then
./scripts/tests/calibnet_delegated_wallet_check.sh "$CALIBNET_WALLET"
mise run test:wallet "$CALIBNET_WALLET"
fi
timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}
calibnet-export-check-v1:
Expand Down Expand Up @@ -585,7 +574,6 @@ jobs:
- calibnet-stateless-rpc-check
- state-migrations-check
- calibnet-wallet-check
- calibnet-delegated-wallet-check
- calibnet-no-discovery-checks
- calibnet-kademlia-checks
- calibnet-eth-mapping-check
Expand Down
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ cargo-test = [] # group of tests that is recomm
doctest-private = [] # see lib.rs::doctest_private
benchmark-private = ["dep:criterion"] # see lib.rs::benchmark_private
interop-tests-private = [] # see lib.rs::interop_tests_private
calibnet-wallet-integration = [] # see tests/calibnet_wallet.rs
sqlite = ["dep:sqlx"]

# Allocator. Use at most one of these.
Expand Down Expand Up @@ -368,6 +369,11 @@ name = "tipset-validation"
harness = false
required-features = ["benchmark-private"]

[[test]]
name = "calibnet_wallet"
path = "tests/calibnet_wallet.rs"
required-features = ["calibnet-wallet-integration"]

[package.metadata.docs.rs]
# See https://docs.rs/about/metadata
rustdoc-args = ["--document-private-items"]
Expand Down
13 changes: 13 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,19 @@ mise task run test:nextest ${usage_profile?}
mise task run test:cargo ${usage_profile?}
'''

[tasks."test:wallet"]
description = "Run calibnet wallet integration tests."
shell = "bash -c"
usage = '''
arg "<preloaded_key>" help="Hex-encoded preloaded calibnet wallet key (e.g. $CALIBNET_WALLET secret)"
'''
run = '''
set -euo pipefail
source ./scripts/tests/harness.sh
forest_wallet_init "${usage_preloaded_key?}"
cargo test --profile quick-test --features calibnet-wallet-integration --test calibnet_wallet -- --nocapture
'''

[tasks."codecov:nextest"]
description = "Run codecov with nextest"
run = '''
Expand Down
118 changes: 0 additions & 118 deletions scripts/tests/calibnet_delegated_wallet_check.sh

This file was deleted.

Loading
Loading