Repository navigation
chore(deps): bump io.opentelemetry.semconv:opentelemetry-semconv from 1.42.0 to 1.45.0 #14799
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: AGP Matrix Compatibility | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| agp-matrix-compatibility: | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| agp: [ '9.0.0', '9.2.1', '9.4.0' ] | |
| integrations: [ true, false ] | |
| name: AGP Matrix Release - AGP ${{ matrix.agp }} - Integrations ${{ matrix.integrations }} | |
| env: | |
| VERSION_AGP: ${{ matrix.agp }} | |
| APPLY_SENTRY_INTEGRATIONS: ${{ matrix.integrations }} | |
| # Upload replay snapshots from one cell only. Forks don't have access to the upload secret. | |
| UPLOAD_REPLAY_SNAPSHOTS: ${{ matrix.agp == '9.4.0' && matrix.integrations && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Setup Java Version | |
| uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1 | |
| - name: Enable KVM | |
| run: | | |
| echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
| sudo udevadm control --reload-rules | |
| sudo udevadm trigger --name-match=kvm | |
| - name: AVD cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| id: avd-cache | |
| with: | |
| path: | | |
| ~/.android/avd/* | |
| ~/.android/adb* | |
| key: avd-api-30-x86_64-google_apis | |
| - name: Create AVD and generate snapshot for caching | |
| if: steps.avd-cache.outputs.cache-hit != 'true' | |
| uses: reactivecircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d # pin@v2 | |
| with: | |
| api-level: 30 | |
| # Not an ATD image: PixelCopy returns no data on ATDs, which the replay tests need | |
| target: google_apis | |
| channel: canary | |
| arch: x86_64 | |
| force-avd-creation: false | |
| disable-animations: true | |
| disable-spellchecker: true | |
| emulator-options: -memory 4096 -no-window -gpu auto -noaudio -no-boot-anim -camera-back none | |
| disk-size: 4096M | |
| script: echo "Generated AVD snapshot for caching." | |
| # Clean, build and release a test apk | |
| - name: Make assembleUiTests | |
| run: make assembleUiTests | |
| # We tried to use the cache action to cache gradle stuff, but it made tests slower and timeout | |
| - name: Run instrumentation tests | |
| uses: reactivecircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d # pin@v2 | |
| with: | |
| api-level: 30 | |
| # Not an ATD image: PixelCopy returns no data on ATDs, which the replay tests need | |
| target: google_apis | |
| channel: canary | |
| arch: x86_64 | |
| force-avd-creation: false | |
| disable-animations: true | |
| disable-spellchecker: true | |
| emulator-options: -memory 4096 -no-snapshot-save -no-window -gpu auto -noaudio -no-boot-anim -camera-back none | |
| disk-size: 4096M | |
| script: ./scripts/test-ui-android.sh replay-snapshots | |
| - name: Install Sentry CLI | |
| if: ${{ !cancelled() && env.UPLOAD_REPLAY_SNAPSHOTS == 'true' }} | |
| uses: getsentry/action-setup-cli@70d7e587b84c2e78cf4d37cd33d7b74fb3729c1b # v1 | |
| - name: Upload Replay Snapshots to Sentry | |
| if: ${{ !cancelled() && env.UPLOAD_REPLAY_SNAPSHOTS == 'true' && hashFiles('replay-snapshots/*.png') != '' }} | |
| run: sentry-cli snapshots upload ./replay-snapshots --app-id sentry-android-replay | |
| env: | |
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
| SENTRY_ORG: sentry-sdks | |
| SENTRY_PROJECT: sentry-android | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 | |
| with: | |
| name: test-results-AGP${{ matrix.agp }}-Integrations${{ matrix.integrations }} | |
| path: | | |
| **/build/reports/* | |
| **/build/outputs/*/connected/* | |
| **/build/outputs/mapping/release/* | |
| replay-snapshots/ | |
| - name: Test Report | |
| uses: phoenix-actions/test-reporting@7317eea6e13c47348dd0bb318669485157c518d6 # pin@v16 | |
| if: always() | |
| with: | |
| name: JUnit AGP ${{ matrix.agp }} - Integrations ${{ matrix.integrations }} | |
| path: | | |
| **/build/outputs/androidTest-results/**/*.xml | |
| reporter: java-junit | |
| output-to: step-summary | |
| fail-on-error: false |