Open
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
14931b5 to
495272e
Compare
Comment on lines
+569
to
+630
| test-sqs: | ||
| name: AWS SQS provider tests | ||
| runs-on: ubuntu-latest | ||
| continue-on-error: true | ||
| strategy: | ||
| matrix: | ||
| provider: ["SQS"] | ||
| framework: ["net8.0", "net10.0"] | ||
| services: | ||
| dynamodb: | ||
| image: amazon/dynamodb-local:latest | ||
| ports: | ||
| - 8000:8000 | ||
| env: | ||
| # [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")] | ||
| AWS_ACCESS_KEY_ID: root | ||
| # [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")] | ||
| AWS_SECRET_ACCESS_KEY: pass | ||
| AWS_REGION: us-east-1 | ||
| steps: | ||
| - name: Start ElasticMQ | ||
| run: docker run -d --name elasticmq -p 9324:9324 softwaremill/elasticmq-native:latest | ||
| - name: Wait for ElasticMQ and DynamoDB | ||
| run: | | ||
| echo "Waiting for ElasticMQ and DynamoDB Local to be ready..." | ||
| timeout 60 bash -c 'until nc -z localhost 9324 && nc -z localhost 8000; do sleep 1; done' | ||
| echo "ElasticMQ and DynamoDB Local are ready" | ||
| - uses: actions/checkout@v4 | ||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| global-json-file: global.json | ||
| - name: Test | ||
| run: dotnet test | ||
| test/Extensions/Orleans.AWS.Tests/Orleans.AWS.Tests.csproj | ||
| --framework ${{ matrix.framework }} | ||
| --filter "Category=${{ matrix.provider }}" | ||
| --blame-hang-timeout 10m | ||
| --blame-crash-dump-type full | ||
| --blame-hang-dump-type full | ||
| --logger "trx;LogFileName=test_results_${{ matrix.provider }}_${{ matrix.framework }}.trx" | ||
| -- | ||
| -parallel none -noshadow | ||
| env: | ||
| ORLEANSSQSCONNECTIONSTRING: "Service=http://127.0.0.1:9324" | ||
| ORLEANSDYNAMODBSERVICE: "http://127.0.0.1:8000" | ||
| # [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")] | ||
| ORLEANSDYNAMODBACCESSKEY: "root" | ||
| # [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Not a secret")] | ||
| ORLEANSDYNAMODBSECRETKEY: "pass" | ||
| - name: Clean up ElasticMQ | ||
| if: always() | ||
| run: docker rm -f elasticmq | ||
| - name: Archive Test Results | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: test_output_${{ github.job }}_${{ matrix.framework }} | ||
| retention-days: 1 | ||
| path: | | ||
| **/TestResults/* | ||
| **/logs/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Category=SQSinstead of relying on generic repo-root discoverySQStraits to the client and subscription test classes so the filter covers the full SQS test surfaceValidation
dotnet test test/Extensions/Orleans.AWS.Tests/Orleans.AWS.Tests.csproj -f net10.0 --filter "Category=SQS" --list-testsSQSAdapterTests.SendAndReceiveFromSQSSQSClientStreamTests.SQSStreamProducerOnDroppedClientTestSQSStreamTests.SQS_01_OneProducerGrainOneConsumerGrainSQSSubscriptionMultiplicityTests.SQSMultipleParallelSubscriptionTestSQSSubscriptionMultiplicityTests.SQSSubscribeFromClientTestMicrosoft Reviewers: Open in CodeFlow