Skip to content
Merged
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
2 changes: 1 addition & 1 deletion scripts/devnet/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LOTUS_IMAGE=filecoin/lotus-all-in-one:v1.35.1-rc1-2k
LOTUS_IMAGE=filecoin/lotus-all-in-one:v1.35.1-2k
FOREST_DATA_DIR=/forest_data
LOTUS_DATA_DIR=/lotus_data
FIL_PROOFS_PARAMETER_CACHE=/var/tmp/filecoin-proof-parameters
Expand Down
3 changes: 2 additions & 1 deletion scripts/tests/api_compare/.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Note: this should be a `fat` image so that it contains the pre-downloaded filecoin proof parameters
FOREST_IMAGE=ghcr.io/chainsafe/forest:edge-fat
LOTUS_IMAGE=filecoin/lotus-all-in-one:v1.35.1-rc1-calibnet
LOTUS_IMAGE=filecoin/lotus-all-in-one:v1.35.1-calibnet
FIL_PROOFS_PARAMETER_CACHE=/var/tmp/filecoin-proof-parameters
LOTUS_RPC_PORT=1234
LOTUS_VIA_GATEWAY_RPC_PORT=4568
FOREST_RPC_PORT=2345
FOREST_OFFLINE_RPC_PORT=3456
FOREST_VIA_GATEWAY_RPC_PORT=4567
Expand Down
34 changes: 30 additions & 4 deletions scripts/tests/api_compare/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ services:
- |
set -euxo pipefail
export FULLNODE_API_INFO="$(cat /data/forest-token):/dns/forest/tcp/${FOREST_RPC_PORT}/http"
lotus-gateway run --api-max-lookback 72000h --api-wait-lookback-limit 2000 --listen 0.0.0.0:${FOREST_VIA_GATEWAY_RPC_PORT}
lotus-gateway --version
lotus-gateway run --api-max-lookback 72000h --api-wait-lookback-limit 20000 --listen 0.0.0.0:${FOREST_VIA_GATEWAY_RPC_PORT}
healthcheck:
test: |
export FULLNODE_API_INFO="/dns/forest-via-gateway/tcp/${FOREST_VIA_GATEWAY_RPC_PORT}/http"
Expand All @@ -160,6 +161,30 @@ services:
retries: 10
start_period: 30s
timeout: 5s
lotus-via-gateway:
depends_on:
lotus-sync-wait:
condition: service_completed_successfully
image: ${LOTUS_IMAGE}
volumes:
- node-data:/data
networks:
- api-tests
entrypoint: ["/bin/bash", "-c"]
command:
- |
set -euxo pipefail
export FULLNODE_API_INFO="$(cat /data/lotus-token):/dns/lotus/tcp/${LOTUS_RPC_PORT}/http"
lotus-gateway --version
lotus-gateway run --api-max-lookback 72000h --api-wait-lookback-limit 20000 --listen 0.0.0.0:${LOTUS_VIA_GATEWAY_RPC_PORT}
healthcheck:
test: |
export FULLNODE_API_INFO="/dns/lotus-via-gateway/tcp/${LOTUS_VIA_GATEWAY_RPC_PORT}/http"
lotus chain head || exit 1
interval: 10s
retries: 10
start_period: 30s
timeout: 5s
lotus:
depends_on:
init:
Expand All @@ -184,6 +209,7 @@ services:
command:
- |
set -euxo pipefail
lotus --version
lotus daemon --remove-existing-chain --import-snapshot $(ls /data/*.car.zst | tail -n 1)
lotus-sync-wait:
depends_on:
Expand Down Expand Up @@ -266,8 +292,8 @@ services:

api-compare-gateway:
depends_on:
lotus-sync-wait:
condition: service_completed_successfully
lotus-via-gateway:
condition: service_healthy
forest-via-gateway:
condition: service_healthy
forest-wallet-import:
Expand All @@ -290,7 +316,7 @@ services:
- |
set -uxo pipefail
# Test against websocket endpoint for online server
LOTUS_API_INFO="$(cat /data/lotus-token):/dns/lotus/tcp/${LOTUS_RPC_PORT}/ws"
LOTUS_API_INFO="$(cat /data/lotus-token):/dns/lotus-via-gateway/tcp/${LOTUS_VIA_GATEWAY_RPC_PORT}/ws"
FOREST_API_INFO="$(cat /data/forest-token):/dns/forest-via-gateway/tcp/${FOREST_VIA_GATEWAY_RPC_PORT}/ws"
forest-tool api compare $(ls /data/*.car.zst | tail -n 1) \
--forest $$FOREST_API_INFO \
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/bootstrapper/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Note: this should be a `fat` image so that it contains the pre-downloaded filecoin proof parameters
LOTUS_IMAGE=filecoin/lotus-all-in-one:v1.35.1-rc1-calibnet
LOTUS_IMAGE=filecoin/lotus-all-in-one:v1.35.1-calibnet
FIL_PROOFS_PARAMETER_CACHE=/var/tmp/filecoin-proof-parameters
LOTUS_RPC_PORT=1234
FOREST_RPC_PORT=2345
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/snapshot_parity/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LOTUS_IMAGE=filecoin/lotus-all-in-one:v1.35.1-rc1-calibnet
LOTUS_IMAGE=filecoin/lotus-all-in-one:v1.35.1-calibnet
FIL_PROOFS_PARAMETER_CACHE=/var/tmp/filecoin-proof-parameters
LOTUS_RPC_PORT=1234
FOREST_RPC_PORT=2345
Expand Down
Loading