Skip to content

Commit

Permalink
retry server run on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed May 17, 2024
1 parent a01ca4a commit 6ebe708
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions .github/workflows/common-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,25 +242,18 @@ jobs:
While ($Stoploop -eq $false)
- name: Run Server Tests
uses:
nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
warning_on_retry: true
continue_on_error: true
shell: cmd
command: |
cd docker/speedtests/
go test speed_test.go -v -c -o speedtests.test
.\speedtests.test -target_url http://${{ inputs.server_public_address }}:8080/target_${{ matrix.download_size }}M.dat ^
-expect_mb ${{ matrix.download_size }} -connections_num ${{ matrix.connections_number }} ^
-test.v -test.timeout 5m > speedtests.out

del .\speedtests.test

go run utils/plotter.go output.csv "Client speed test [Delay:${{ inputs.connection_delay_ms }}ms TargetSize:${{ matrix.download_size }}MB Connections:${{ matrix.connections_number }} Backend:${{ inputs.backend }} CC:${{ inputs.cca }}/${{ inputs.slowstart }}]"
shell: cmd
run: |
cd docker/speedtests/
go test speed_test.go -v -c -o speedtests.test
.\speedtests.test -target_url http://${{ inputs.server_public_address }}:8080/target_${{ matrix.download_size }}M.dat ^
-expect_mb ${{ matrix.download_size }} -connections_num ${{ matrix.connections_number }} ^
-test.v -test.timeout 5m > speedtests.out
del .\speedtests.test
go run utils/plotter.go output.csv "Client speed test [Delay:${{ inputs.connection_delay_ms }}ms TargetSize:${{ matrix.download_size }}MB Connections:${{ matrix.connections_number }} Backend:${{ inputs.backend }} CC:${{ inputs.cca }}/${{ inputs.slowstart }}]"
- name: Stop Client
if: always()
Expand Down

0 comments on commit 6ebe708

Please sign in to comment.