diff --git a/.ci/windows/toxiproxy/toxiproxy-cli.exe b/.ci/windows/toxiproxy/toxiproxy-cli.exe index 3166007992..2e3841369a 100644 Binary files a/.ci/windows/toxiproxy/toxiproxy-cli.exe and b/.ci/windows/toxiproxy/toxiproxy-cli.exe differ diff --git a/.ci/windows/toxiproxy/toxiproxy-server.exe b/.ci/windows/toxiproxy/toxiproxy-server.exe index ef673446de..4a46fbae40 100644 Binary files a/.ci/windows/toxiproxy/toxiproxy-server.exe and b/.ci/windows/toxiproxy/toxiproxy-server.exe differ diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 9d5814e3b2..a565931677 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -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 }}" ` @@ -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: