Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
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 --test calibnet_wallet -- --ignored --nocapture
Comment thread
sudo-shashank marked this conversation as resolved.
'''

[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