@@ -184,13 +184,11 @@ echo "Starting core infrastructure services..."
184
184
docker compose up -d chain ipfs postgres graph-node
185
185
# Wait for graph-node to be healthy
186
186
echo " Waiting for graph-node to be healthy..."
187
- # timeout 300 bash -c 'until docker ps | grep graph-node | grep -q healthy; do sleep 5; done'
188
187
interruptible_wait 300 ' docker ps | grep graph-node | grep -q healthy' " Waiting for graph-node to be healthy"
189
188
190
189
echo " Deploying contract services..."
191
190
docker compose up -d graph-contracts
192
191
# Wait for contracts to be deployed
193
- # timeout 300 bash -c 'until docker ps -a | grep graph-contracts | grep -q "Exited (0)"; do sleep 5; done'
194
192
interruptible_wait 300 ' docker ps -a | grep graph-contracts | grep -q "Exited (0)"' " Waiting for contracts to be deployed"
195
193
196
194
# Verify the contracts have code using horizon structure
@@ -255,22 +253,19 @@ docker compose up -d tap-contracts
255
253
echo " Starting indexer services..."
256
254
docker compose up -d block-oracle
257
255
echo " Waiting for block-oracle to be healthy..."
258
- # timeout 300 bash -c 'until docker ps | grep block-oracle | grep -q healthy; do sleep 5; done'
259
256
interruptible_wait 300 ' docker ps | grep block-oracle | grep -q healthy' " Waiting for block-oracle to be healthy"
260
257
261
258
# export INDEXER_AGENT_SOURCE_ROOT=/home/neithanmo/Documents/Work/Semiotic/indexer-rs/indexer-src
262
259
# If INDEXER_AGENT_SOURCE_ROOT is set, use dev override; otherwise start only indexer-agent
263
- # export INDEXER_AGENT_SOURCE_ROOT=/home/neithanmo/Documents/Work/Semiotic/indexer-rs/indexer-agent
264
260
if [[ -n " ${INDEXER_AGENT_SOURCE_ROOT:- } " ]]; then
265
261
echo " INDEXER_AGENT_SOURCE_ROOT set; using dev override for indexer-agent."
266
262
docker compose -f docker-compose.yaml -f overrides/indexer-agent-dev/indexer-agent-dev.yaml up -d
267
263
else
268
- echo " Starting indexer-agent from oficial release"
264
+ echo " Starting indexer-agent from official release"
269
265
docker compose up -d indexer-agent
270
266
fi
271
267
272
268
echo " Waiting for indexer-agent to be healthy..."
273
- # timeout 300 bash -c 'until docker ps | grep indexer-agent | grep -q healthy; do sleep 5; done'
274
269
interruptible_wait 300 ' docker ps | grep indexer-agent | grep -q healthy' " Waiting for indexer-agent to be healthy"
275
270
276
271
# Ensure indexer-agent DB migrations completed (denylist tables must exist)
339
334
# Run the custom services using the override file
340
335
docker compose -f docker-compose.yml -f docker-compose.override.yml up --build -d
341
336
342
-
343
337
# Wait for indexer-service and tap-agent to be healthy with better timeouts
344
338
echo " Waiting for indexer-service to be healthy..."
345
- # timeout 120 bash -c 'until docker ps | grep indexer-service | grep -q healthy; do echo "Still waiting for indexer-service..."; sleep 5; done'
346
339
interruptible_wait 120 ' docker ps | grep indexer-service | grep -q healthy' " Waiting for indexer-service to be healthy"
347
340
348
341
echo " Waiting for tap-agent to be healthy..."
349
- # timeout 120 bash -c 'until docker ps | grep tap-agent | grep -q healthy; do echo "Still waiting for tap-agent..."; sleep 5; done'
350
342
interruptible_wait 120 ' docker ps | grep tap-agent | grep -q healthy' " Waiting for tap-agent to be healthy"
351
343
352
344
# Additional check to ensure services are responding
353
345
echo " Verifying indexer-service is responding..."
354
- # timeout 60 bash -c 'until curl -f http://localhost:7601/health > /dev/null 2>&1; do echo "Waiting for indexer-service health endpoint..."; sleep 3; done'
355
346
interruptible_wait 60 ' curl -f http://localhost:7601/health > /dev/null 2>&1' " Verifying indexer-service is responding"
356
347
357
348
echo " Verifying tap-agent is responding..."
358
- # timeout 60 bash -c 'until curl -f http://localhost:7300/metrics > /dev/null 2>&1; do echo "Waiting for tap-agent metrics endpoint..."; sleep 3; done'
359
349
interruptible_wait 60 ' curl -f http://localhost:7300/metrics > /dev/null 2>&1' " Verifying tap-agent is responding"
360
350
361
351
# Wait for indexer to sync with chain before starting gateway
@@ -410,7 +400,6 @@ for i in {1..3}; do
410
400
done
411
401
412
402
# Ensure gateway is ready before testing
413
- # timeout 100 bash -c 'until curl -f http://localhost:7700/ > /dev/null 2>&1; do echo "Waiting for gateway service..."; sleep 5; done'
414
403
interruptible_wait 100 ' curl -f http://localhost:7700/ > /dev/null 2>&1' " Waiting for gateway service"
415
404
416
405
# Build and start indexer-cli for integration testing (last container)
0 commit comments