Skip to content

Commit 74cb904

Browse files
make test timeouts dynamic based on run number
1 parent 92fb28f commit 74cb904

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -369,31 +369,31 @@ jobs:
369369
run: sleep 10
370370
- name: Run core test
371371
if: ${{ contains(matrix.enable, 'core') }}
372-
timeout-minutes: 2
372+
timeout-minutes: ${{ 2 * github.run_number }}
373373
run: |
374374
docker logs stellar -f &
375375
echo "supervisorctl tail -f stellar-core" | docker exec -i stellar sh &
376376
go run tests/test_core.go
377377
curl http://localhost:11626/info
378378
- name: Run horizon up test
379379
if: ${{ contains(matrix.enable, 'horizon') }}
380-
timeout-minutes: 1
380+
timeout-minutes: ${{ 2 * github.run_number }}
381381
run: |
382382
docker logs stellar -f &
383383
echo "supervisorctl tail -f horizon" | docker exec -i stellar sh &
384384
go run tests/test_horizon_up.go
385385
curl http://localhost:8000
386386
- name: Run horizon core up test
387387
if: ${{ contains(matrix.enable, 'horizon') && matrix.network != 'pubnet' }}
388-
timeout-minutes: 2
388+
timeout-minutes: ${{ 2 * github.run_number }}
389389
run: |
390390
docker logs stellar -f &
391391
echo "supervisorctl tail -f horizon" | docker exec -i stellar sh &
392392
go run tests/test_horizon_core_up.go
393393
curl http://localhost:8000
394394
- name: Run horizon ingesting test
395395
if: ${{ contains(matrix.enable, 'horizon') && matrix.network != 'pubnet' }}
396-
timeout-minutes: 1
396+
timeout-minutes: ${{ 2 * github.run_number }}
397397
run: |
398398
docker logs stellar -f &
399399
echo "supervisorctl tail -f stellar-core" | docker exec -i stellar sh &
@@ -402,22 +402,22 @@ jobs:
402402
curl http://localhost:8000
403403
- name: Run friendbot test
404404
if: ${{ contains(matrix.enable, 'horizon') && matrix.network == 'local' }}
405-
timeout-minutes: 1
405+
timeout-minutes: ${{ 2 * github.run_number }}
406406
run: |
407407
docker logs stellar -f &
408408
echo "supervisorctl tail -f friendbot" | docker exec -i stellar sh &
409409
echo "supervisorctl tail -f horizon" | docker exec -i stellar sh &
410410
go run tests/test_friendbot.go
411411
- name: Run stellar rpc up test
412412
if: ${{ contains(matrix.enable, 'rpc') }}
413-
timeout-minutes: 1
413+
timeout-minutes: ${{ 2 * github.run_number }}
414414
run: |
415415
docker logs stellar -f &
416416
echo "supervisorctl tail -f stellar-rpc" | docker exec -i stellar sh &
417417
go run tests/test_stellar_rpc_up.go
418418
- name: Run stellar rpc healthy test
419419
if: ${{ contains(matrix.enable, 'rpc') && matrix.network != 'pubnet' }}
420-
timeout-minutes: 1
420+
timeout-minutes: ${{ 2 * github.run_number }}
421421
run: |
422422
docker logs stellar -f &
423423
echo "supervisorctl tail -f stellar-rpc" | docker exec -i stellar sh &

0 commit comments

Comments
 (0)