ci(system-tests): Remove sed hacks for android module exclusion #8717
Workflow file for this run
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
| name: 'System Tests Backend' | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| paths-ignore: | |
| - '*android*/**' | |
| - 'sentry-compose/**' | |
| - 'sentry-samples/sentry-samples-android/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| system-test: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| env: | |
| SENTRY_URL: http://127.0.0.1:8000 | |
| GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| sample: [ "sentry-samples-spring-boot-jakarta" ] | |
| agent: [ "false" ] | |
| agent-auto-init: [ "true" ] | |
| include: | |
| - sample: "sentry-samples-spring-boot" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring-boot-opentelemetry-noagent" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring-boot-opentelemetry" | |
| agent: "true" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring-boot-opentelemetry" | |
| agent: "true" | |
| agent-auto-init: "false" | |
| - sample: "sentry-samples-spring-boot-webflux-jakarta" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring-boot-webflux" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring-boot-jakarta-opentelemetry-noagent" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring-boot-jakarta-opentelemetry" | |
| agent: "true" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring-boot-jakarta-opentelemetry" | |
| agent: "true" | |
| agent-auto-init: "false" | |
| - sample: "sentry-samples-console" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-console-otlp" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-logback" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-log4j2" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-jul" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring-boot-4" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring-boot-4-webflux" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring-boot-4-opentelemetry-noagent" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring-boot-4-opentelemetry" | |
| agent: "true" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring-boot-4-opentelemetry" | |
| agent: "true" | |
| agent-auto-init: "false" | |
| - sample: "sentry-samples-spring-boot-4-otlp" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring-7" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring-jakarta" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| - sample: "sentry-samples-spring" | |
| agent: "false" | |
| agent-auto-init: "true" | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| submodules: 'recursive' | |
| - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 | |
| with: | |
| python-version: '3.10.5' | |
| - name: Install Python dependencies | |
| run: | | |
| python3 -m pip install --upgrade pip | |
| python3 -m pip install -r requirements.txt | |
| - name: Set up Java | |
| uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0 | |
| with: | |
| cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| - name: Build and run system tests | |
| run: | | |
| python3 test/system-test-runner.py test --module "${{ matrix.sample }}" --agent "${{ matrix.agent }}" --auto-init "${{ matrix.agent-auto-init }}" --build "true" | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: test-results-${{ matrix.sample }}-${{ matrix.agent }}-${{ matrix.agent-auto-init }}-system-test | |
| path: | | |
| **/build/reports/* | |
| sentry-mock-server.txt | |
| spring-server.txt | |
| - name: Test Report | |
| uses: phoenix-actions/test-reporting@7317eea6e13c47348dd0bb318669485157c518d6 # pin@v16 | |
| if: always() | |
| with: | |
| name: JUnit System Tests ${{ matrix.sample }} | |
| path: | | |
| **/build/test-results/**/*.xml | |
| reporter: java-junit | |
| output-to: step-summary | |
| fail-on-error: false |