Skip to content

Commit

Permalink
chore: add blame and diagnostic flags to test runner. upload sequence…
Browse files Browse the repository at this point in the history
…s and diagnostics as artifacts (#137)
  • Loading branch information
yreynhout authored Nov 29, 2023
1 parent e36b7a5 commit f04b5d2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ jobs:
files: |
test/AxonIQ.AxonServer.Connector.Tests/TestResults/*.trx
test/AxonIQ.AxonServerIntegrationTests/TestResults/*.trx
- uses: actions/upload-artifact@v3
with:
name: sequences
path: |
test/AxonIQ.AxonServer.Connector.Tests/TestResults/**/*.xml
test/AxonIQ.AxonServerIntegrationTests/TestResults/**/*.xml
- uses: actions/upload-artifact@v3
with:
name: diagnostics
path: |
test/AxonIQ.AxonServer.Connector.Tests/TestResults/*_diagnostics.txt
test/AxonIQ.AxonServerIntegrationTests/TestResults/*_diagnostics.datacollector.*.txt
test/AxonIQ.AxonServerIntegrationTests/TestResults/*_diagnostics.host.*.txt
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
with:
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ axoniq.license
axonserver.properties
cluster-template.yml
src/Benchmarks/java/target
test/AxonIQ.AxonServer.Connector.Tests/TestResults/*.trx
test/AxonIQ.AxonServerIntegrationTests/TestResults/*.trx
test/AxonIQ.AxonServer.Connector.Tests/TestResults/*
test/AxonIQ.AxonServerIntegrationTests/TestResults/*
12 changes: 6 additions & 6 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ ifneq ("$(SONAR_TOKEN)","")
dotnet sonarscanner end -d:sonar.token="$(SONAR_TOKEN)"
endif
dotnet test --configuration Release --no-build --no-restore test/AxonIQ.AxonServer.Connector.Tests --logger "trx;logfilename=connector_tests.trx"
dotnet test --configuration Release --no-build --no-restore test/AxonIQ.AxonServerIntegrationTests --filter "Surface=AdminChannel" --logger "trx;logfilename=server_integration_tests_admin_channel.trx"
dotnet test --configuration Release --no-build --no-restore test/AxonIQ.AxonServerIntegrationTests --filter "Surface=ControlChannel" --logger "trx;logfilename=server_integration_tests_control_channel.trx"
dotnet test --configuration Release --no-build --no-restore test/AxonIQ.AxonServerIntegrationTests --filter "Surface=CommandChannel" --logger "trx;logfilename=server_integration_tests_command_channel.trx"
dotnet test --configuration Release --no-build --no-restore test/AxonIQ.AxonServerIntegrationTests --filter "Surface=EventChannel" --logger "trx;logfilename=server_integration_tests_event_channel.trx"
dotnet test --configuration Release --no-build --no-restore test/AxonIQ.AxonServerIntegrationTests --filter "Surface=QueryChannel" --logger "trx;logfilename=server_integration_tests_query_channel.trx"
dotnet test --configuration Release --no-build --no-restore test/AxonIQ.AxonServerIntegrationTests --filter "Surface=HearbeatChannel" --logger "trx;logfilename=server_integration_tests_heartbeat_channel.trx"
dotnet test --configuration Release --no-build --no-restore test/AxonIQ.AxonServerIntegrationTests --filter "Surface=AdminChannel" --logger "trx;logfilename=server_integration_tests_admin_channel.trx" --blame --blame-hang --blame-hang-dump-type none --blame-hang-timeout 5min -d test/AxonIQ.AxonServerIntegrationTests/TestResults/server_integration_tests_admin_channel_diagnostics.txt
dotnet test --configuration Release --no-build --no-restore test/AxonIQ.AxonServerIntegrationTests --filter "Surface=ControlChannel" --logger "trx;logfilename=server_integration_tests_control_channel.trx" --blame --blame-hang --blame-hang-dump-type none --blame-hang-timeout 5min -d test/AxonIQ.AxonServerIntegrationTests/TestResults/server_integration_tests_control_channel_diagnostics.txt
dotnet test --configuration Release --no-build --no-restore test/AxonIQ.AxonServerIntegrationTests --filter "Surface=CommandChannel" --logger "trx;logfilename=server_integration_tests_command_channel.trx" --blame --blame-hang --blame-hang-dump-type none --blame-hang-timeout 5min -d test/AxonIQ.AxonServerIntegrationTests/TestResults/server_integration_tests_command_channel_diagnostics.txt
dotnet test --configuration Release --no-build --no-restore test/AxonIQ.AxonServerIntegrationTests --filter "Surface=EventChannel" --logger "trx;logfilename=server_integration_tests_event_channel.trx" --blame --blame-hang --blame-hang-dump-type none --blame-hang-timeout 5min -d test/AxonIQ.AxonServerIntegrationTests/TestResults/server_integration_tests_event_channel_diagnostics.txt
dotnet test --configuration Release --no-build --no-restore test/AxonIQ.AxonServerIntegrationTests --filter "Surface=QueryChannel" --logger "trx;logfilename=server_integration_tests_query_channel.trx" --blame --blame-hang --blame-hang-dump-type none --blame-hang-timeout 5min -d test/AxonIQ.AxonServerIntegrationTests/TestResults/server_integration_tests_query_channel_diagnostics.txt
dotnet test --configuration Release --no-build --no-restore test/AxonIQ.AxonServerIntegrationTests --filter "Surface=HeartbeatChannel" --logger "trx;logfilename=server_integration_tests_heartbeat_channel.trx" --blame --blame-hang --blame-hang-dump-type none --blame-hang-timeout 5min -d test/AxonIQ.AxonServerIntegrationTests/TestResults/server_integration_tests_heartbeat_channel_diagnostics.txt

cd:
dotnet tool restore
Expand Down

0 comments on commit f04b5d2

Please sign in to comment.