@@ -184,13 +184,11 @@ echo "Starting core infrastructure services..."
184184docker compose up -d chain ipfs postgres graph-node
185185# Wait for graph-node to be healthy
186186echo " 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'
188187interruptible_wait 300 ' docker ps | grep graph-node | grep -q healthy' " Waiting for graph-node to be healthy"
189188
190189echo " Deploying contract services..."
191190docker compose up -d graph-contracts
192191# 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'
194192interruptible_wait 300 ' docker ps -a | grep graph-contracts | grep -q "Exited (0)"' " Waiting for contracts to be deployed"
195193
196194# Verify the contracts have code using horizon structure
@@ -255,22 +253,19 @@ docker compose up -d tap-contracts
255253echo " Starting indexer services..."
256254docker compose up -d block-oracle
257255echo " 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'
259256interruptible_wait 300 ' docker ps | grep block-oracle | grep -q healthy' " Waiting for block-oracle to be healthy"
260257
261258# export INDEXER_AGENT_SOURCE_ROOT=/home/neithanmo/Documents/Work/Semiotic/indexer-rs/indexer-src
262259# 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
264260if [[ -n " ${INDEXER_AGENT_SOURCE_ROOT:- } " ]]; then
265261 echo " INDEXER_AGENT_SOURCE_ROOT set; using dev override for indexer-agent."
266262 docker compose -f docker-compose.yaml -f overrides/indexer-agent-dev/indexer-agent-dev.yaml up -d
267263else
268- echo " Starting indexer-agent from oficial release"
264+ echo " Starting indexer-agent from official release"
269265 docker compose up -d indexer-agent
270266fi
271267
272268echo " 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'
274269interruptible_wait 300 ' docker ps | grep indexer-agent | grep -q healthy' " Waiting for indexer-agent to be healthy"
275270
276271# Ensure indexer-agent DB migrations completed (denylist tables must exist)
339334# Run the custom services using the override file
340335docker compose -f docker-compose.yml -f docker-compose.override.yml up --build -d
341336
342-
343337# Wait for indexer-service and tap-agent to be healthy with better timeouts
344338echo " 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'
346339interruptible_wait 120 ' docker ps | grep indexer-service | grep -q healthy' " Waiting for indexer-service to be healthy"
347340
348341echo " 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'
350342interruptible_wait 120 ' docker ps | grep tap-agent | grep -q healthy' " Waiting for tap-agent to be healthy"
351343
352344# Additional check to ensure services are responding
353345echo " 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'
355346interruptible_wait 60 ' curl -f http://localhost:7601/health > /dev/null 2>&1' " Verifying indexer-service is responding"
356347
357348echo " 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'
359349interruptible_wait 60 ' curl -f http://localhost:7300/metrics > /dev/null 2>&1' " Verifying tap-agent is responding"
360350
361351# Wait for indexer to sync with chain before starting gateway
@@ -410,7 +400,6 @@ for i in {1..3}; do
410400done
411401
412402# 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'
414403interruptible_wait 100 ' curl -f http://localhost:7700/ > /dev/null 2>&1' " Waiting for gateway service"
415404
416405# Build and start indexer-cli for integration testing (last container)
0 commit comments