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
8 changes: 4 additions & 4 deletions .github/workflows/lotus-api-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
- uses: actions/checkout@v6
- name: Update dependencies
run: |
NETWORK=calibnet
TAG=$(curl --silent https://api.github.com/repos/filecoin-project/lotus/releases | jq -r 'first | .tag_name')
CURRENT_TAG=$(grep -oP 'LOTUS_IMAGE=.*:\K.*' ./scripts/tests/api_compare/.env)
# If the latest tag reported by the API is greater than the one we are currently using, update it.
# This avoids PRs when a new tag is of lower major/minor version than the current one. We still need to follow the
# largest version for calibration network compatibility.
if [[ "$(printf '%s\n' "$TAG" "$CURRENT_TAG" | sort -V | tail -n1)" != "$CURRENT_TAG" || "$CURRENT_TAG" == "$TAG"* ]]; then
echo "Updating Lotus version to $TAG"
sed -i "s/\(LOTUS_IMAGE=.*\):.*/\1:$TAG-$NETWORK/" ./scripts/tests/api_compare/.env
sed -i "s/\(LOTUS_IMAGE=.*\):.*/\1:$TAG-$NETWORK/" ./scripts/tests/bootstrapper/.env
sed -i "s/\(LOTUS_IMAGE=.*\):.*/\1:$TAG-$NETWORK/" ./scripts/tests/snapshot_parity/.env
sed -i "s/\(LOTUS_IMAGE=.*\):.*/\1:$TAG-calibnet/" ./scripts/tests/api_compare/.env
sed -i "s/\(LOTUS_IMAGE=.*\):.*/\1:$TAG-calibnet/" ./scripts/tests/bootstrapper/.env
sed -i "s/\(LOTUS_IMAGE=.*\):.*/\1:$TAG-calibnet/" ./scripts/tests/snapshot_parity/.env
sed -i "s/\(LOTUS_IMAGE=.*\):.*/\1:$TAG-2k/" ./scripts/devnet/.env
else
echo "Lotus version is already up to date"
fi
Expand Down
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=ghcr.io/chainsafe/lotus-devnet:2025-09-08-b9a0bb4
LOTUS_IMAGE=filecoin/lotus-all-in-one:v1.34.3-2k
FOREST_DATA_DIR=/forest_data
LOTUS_DATA_DIR=/lotus_data
FIL_PROOFS_PARAMETER_CACHE=/var/tmp/filecoin-proof-parameters
Expand Down
16 changes: 8 additions & 8 deletions scripts/devnet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
- LOTUS_TUKTUK_HEIGHT=${TUKTUK_HEIGHT}
- LOTUS_TEEP_HEIGHT=${TEEP_HEIGHT}
- LOTUS_TOCK_HEIGHT=${TOCK_HEIGHT}
- LOTUS_GOLDEN_WEEK_HEIGHT=${GOLDEN_WEEK_HEIGHT}
- LOTUS_GOLDENWEEK_HEIGHT=${GOLDEN_WEEK_HEIGHT}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

env_file:
- lotus.env
entrypoint: ["/bin/bash", "-c"]
Expand All @@ -51,12 +51,12 @@ services:
lotus_init:
condition: service_completed_successfully
healthcheck:
test: >-
curl -s -x post -h "content-type: application/json"
--data '{ "jsonrpc": "2.0", "method": "filecoin.chainhead", "params": [], "id": 1 }'
http://lotus_node:${LOTUS_RPC_PORT}/rpc/v0 || exit 1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The DNS name should be lotus instead of lotus_node. Not sure how this worked : )

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem correct. DNS name should be taken from the service name (lotus_node or overridden by hostname). Let me double check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/ChainSafe/forest/blob/main/scripts/devnet/lotus.env#L4

LOTUS_API_LISTENADDRESS=/dns/lotus/tcp/1234/http

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah no, container_name also overrides it. All good.

test: |
export FULLNODE_API_INFO="/dns/lotus/tcp/${LOTUS_RPC_PORT}/http"
lotus chain head || exit 1
interval: 10s
retries: 10
start_period: 60s
timeout: 5s
container_name: lotus
networks:
Expand All @@ -76,7 +76,7 @@ services:
- LOTUS_TUKTUK_HEIGHT=${TUKTUK_HEIGHT}
- LOTUS_TEEP_HEIGHT=${TEEP_HEIGHT}
- LOTUS_TOCK_HEIGHT=${TOCK_HEIGHT}
- LOTUS_GOLDEN_WEEK_HEIGHT=${GOLDEN_WEEK_HEIGHT}
- LOTUS_GOLDENWEEK_HEIGHT=${GOLDEN_WEEK_HEIGHT}
ports:
- ${LOTUS_RPC_PORT}:${LOTUS_RPC_PORT}
- ${LOTUS_P2P_PORT}:${LOTUS_P2P_PORT}
Expand Down Expand Up @@ -120,7 +120,7 @@ services:
- LOTUS_TUKTUK_HEIGHT=${TUKTUK_HEIGHT}
- LOTUS_TEEP_HEIGHT=${TEEP_HEIGHT}
- LOTUS_TOCK_HEIGHT=${TOCK_HEIGHT}
- LOTUS_GOLDEN_WEEK_HEIGHT=${GOLDEN_WEEK_HEIGHT}
- LOTUS_GOLDENWEEK_HEIGHT=${GOLDEN_WEEK_HEIGHT}
ports:
- ${MINER_RPC_PORT}:${MINER_RPC_PORT}
env_file:
Expand Down Expand Up @@ -159,7 +159,7 @@ services:
- LOTUS_TUKTUK_HEIGHT=${TUKTUK_HEIGHT}
- LOTUS_TEEP_HEIGHT=${TEEP_HEIGHT}
- LOTUS_TOCK_HEIGHT=${TOCK_HEIGHT}
- LOTUS_GOLDEN_WEEK_HEIGHT=${GOLDEN_WEEK_HEIGHT}
- LOTUS_GOLDENWEEK_HEIGHT=${GOLDEN_WEEK_HEIGHT}
entrypoint: ["/bin/bash", "-c"]
env_file:
- lotus.env
Expand Down
Loading