Skip to content

Commit 6b138a7

Browse files
matiwinnetouclaude
andcommitted
ci: increase timeout and optimize docker-compose startup for integration tests
- Add 20-minute wait timeout to prevent CI/CD failures during image builds - Enable Docker Buildx for improved layer caching - Add explicit service dependencies (db → yaci-cli/yaci-indexer → api) - Optimize API healthcheck: 10s interval, 40 retries, 60s start period - Ensure proper service orchestration in integration test environment Fixes intermittent timeout issues in GitHub Actions where Maven builds and Docker image creation exceed default 10-minute timeout. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4d0e214 commit 6b138a7

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

.github/workflows/integration-test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15+
- name: "Set up Docker Buildx"
16+
uses: docker/setup-buildx-action@v3
1517
- name: "Set up environment"
16-
run: docker compose --env-file .env.IntegrationTest -f docker-integration-test-environment.yaml up --build -d --wait
18+
run: docker compose --env-file .env.IntegrationTest -f docker-integration-test-environment.yaml up --build -d --wait --wait-timeout 1200
1719
- name: "Wait for node to be populated"
1820
run: "sleep 30s"
1921
- name: "Install Node"

docker-compose-api.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,17 @@ services:
5858
volumes:
5959
- ${CARDANO_CONFIG}:/config
6060
- ${CARDANO_NODE_DIR}:${CARDANO_NODE_DIR}
61+
depends_on:
62+
db:
63+
condition: service_healthy
64+
yaci-indexer:
65+
condition: service_started
6166
healthcheck:
6267
test: [ "CMD-SHELL", "curl --fail http://localhost:${API_PORT}/network/options -H 'Content-Type: application/json' --data '{\"network_identifier\": {\"blockchain\": \"cardano\",\"network\": \"${NETWORK}\"},\"metadata\": {}}' -X POST" ]
63-
interval: 30s
64-
retries: 20
65-
start_period: 20s
66-
timeout: 10s
68+
interval: 10s
69+
retries: 40
70+
start_period: 60s
71+
timeout: 5s
6772
restart: always
6873

6974

docker-integration-test-environment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,8 @@ services:
2424
yaci_store_enabled: true
2525
ogmios_enabled: false
2626

27+
depends_on:
28+
db:
29+
condition: service_healthy
30+
2731
entrypoint: ["/app/yaci-cli", "create-node", "-o", "--start"]

0 commit comments

Comments
 (0)