@@ -111,10 +111,13 @@ services:
111111 echo $MINER_WORKER_KEY | forest-wallet --remote-wallet import
112112 api-serve :
113113 profiles :
114- - offline-rpc-server
114+ - include- offline-rpc
115115 depends_on :
116116 init :
117117 condition : service_completed_successfully
118+ # Run offline RPC tests in sequence to mitigate OOM issue on CI
119+ api-compare :
120+ condition : service_completed_successfully
118121 build :
119122 context : ../../../.
120123 dockerfile : ${FOREST_DOCKERFILE_OVERRIDE:-Dockerfile}
@@ -126,6 +129,7 @@ services:
126129 environment :
127130 - FIL_PROOFS_PARAMETER_CACHE=${FIL_PROOFS_PARAMETER_CACHE}
128131 - FULLNODE_API_INFO=/dns/api-serve/tcp/${FOREST_OFFLINE_RPC_PORT}/http
132+ - FOREST_ETH_MAPPINGS_RANGE=300
129133 entrypoint : [ "/bin/bash", "-c" ]
130134 command :
131135 - |
@@ -236,9 +240,10 @@ services:
236240 --filter-file /data/filter-list \
237241 --miner-address ${MINER_ADDRESS} \
238242 --worker-address ${MINER_WORKER_ADDRESS}
243+ FULLNODE_API_INFO=$$FOREST_API_INFO forest-cli shutdown --force
239244 api-compare-offline :
240245 profiles :
241- - offline-rpc-server
246+ - include- offline-rpc
242247 depends_on :
243248 lotus-sync-wait :
244249 condition : service_completed_successfully
@@ -267,6 +272,7 @@ services:
267272 --lotus $$LOTUS_API_INFO \
268273 --n-tipsets 5 \
269274 --filter-file /data/filter-list-offline
275+ FULLNODE_API_INFO=$$FOREST_API_INFO forest-cli shutdown --force
270276 post-setup :
271277 depends_on :
272278 api-compare :
@@ -281,7 +287,7 @@ services:
281287 echo "Success"
282288 post-setup-offline :
283289 profiles :
284- - offline-rpc-server
290+ - include- offline-rpc
285291 depends_on :
286292 api-compare-offline :
287293 condition : service_completed_successfully
0 commit comments