Skip to content

Commit

Permalink
* Update toxiproxy executables.
Browse files Browse the repository at this point in the history
* Collect toxiproxy server output on failure.
  • Loading branch information
lukebakken committed Dec 9, 2024
1 parent cea96db commit 5f83f0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Binary file modified .ci/windows/toxiproxy/toxiproxy-cli.exe
Binary file not shown.
Binary file modified .ci/windows/toxiproxy/toxiproxy-server.exe
Binary file not shown.
10 changes: 5 additions & 5 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ jobs:
- name: Integration Tests
timeout-minutes: 25
run: |
$tx = Start-Job -Verbose -ScriptBlock { & "${{ github.workspace }}\.ci\windows\toxiproxy\toxiproxy-server.exe" }; `
Start-Sleep -Seconds 1; `
Receive-Job -Job $tx; `
& "${{ github.workspace }}\.ci\windows\toxiproxy\toxiproxy-cli.exe" list; `
Start-Job -Verbose -ScriptBlock { & "${{ github.workspace }}\.ci\windows\toxiproxy\toxiproxy-server.exe" }; `
dotnet test `
--environment 'RABBITMQ_LONG_RUNNING_TESTS=true' `
--environment "RABBITMQ_RABBITMQCTL_PATH=${{ steps.install-start-rabbitmq.outputs.path }}" `
Expand All @@ -82,7 +79,10 @@ jobs:
"${{ github.workspace }}\projects\Test\Integration\Integration.csproj" --no-restore --no-build --logger 'console;verbosity=detailed'
- name: Check for errors in RabbitMQ logs
run: ${{ github.workspace }}\.ci\windows\gha-log-check.ps1
- name: Maybe upload RabbitMQ logs
- name: Maybe collect Toxiproxy logs
if: failure()
run: Get-Job | Where-Object { $_.HasMoreData } | Receive-Job | Out-File -Append -LiteralPath $env:APPDATA\RabbitMQ\log\toxiproxy-log.txt
- name: Maybe upload RabbitMQ and Toxiproxy logs
if: failure()
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 5f83f0f

Please sign in to comment.