-
-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump AGP versions and try to make it green * spotless * Latest 8.3.0 * Add more logs to flaky test * Remove assumeThat * Clean up CI jobs * Enable gradle cache * Upload test results * Speed up CodeQL builds * Fix test results upload * Run tests and lint for PRs * Fix makefile * Fix makefile * Only run release-build workflow on release/ branches * Remove unnecessary clean and stop for ui tests * Parallelize tests * Speed up tests depending on session finalizer * Api dump * Remove unnecessary robolectric test * Reduce number of benchmarks to speed up builds * Add logs to flaky test * Ensure no shared state in tests * Do not submit to another queue in PersistingOptionsObserver * Set timeouts for spring-boot tests to avoid long-runnings * Decouple robolectric and unit tests for sentry-android-core * Revert "Decouple robolectric and unit tests for sentry-android-core" This reverts commit 65887b4. * Revert * Delete SdkBenchmarkTest as it replicates what app-metrics action does * Changelog * Add --no-build-cache for distribution artifacts * Add largeHeap to the test app
- Loading branch information
Showing
32 changed files
with
291 additions
and
252 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,25 +4,20 @@ on: | |
push: | ||
branches: | ||
- main | ||
- release/** | ||
pull_request: | ||
|
||
jobs: | ||
cancel-previous-workflow: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # [email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
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: [ '8.0.0','8.1.0-alpha11' ] | ||
agp: [ '8.0.0','8.1.4','8.2.0','8.3.0-beta01' ] | ||
integrations: [ true, false ] | ||
|
||
name: AGP Matrix Release - AGP ${{ matrix.agp }} - Integrations ${{ matrix.integrations }} | ||
|
@@ -34,15 +29,15 @@ jobs: | |
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@982da8e78c05368c70dac0351bb82647a9e9a5d2 # pin@v2 | ||
|
||
- name: Setup Java Version | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # pin@v2 | ||
|
||
- name: Setup KVM | ||
shell: bash | ||
run: | | ||
|
@@ -58,11 +53,6 @@ jobs: | |
- name: Make assembleUiTests | ||
run: make assembleUiTests | ||
|
||
# We stop gradle at the end to make sure the cache folders | ||
# don't contain any lock files and are free to be cached. | ||
- name: Make stop | ||
run: make stop | ||
|
||
# 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@99a4aac18b4df9b3af66c4a1f04c1f23fa10c270 # pin@v2 | ||
|
@@ -73,6 +63,7 @@ jobs: | |
disable-animations: true | ||
disable-spellchecker: true | ||
target: 'aosp_atd' | ||
arch: x86 | ||
channel: canary # Necessary for ATDs | ||
script: ./gradlew sentry-android-integration-tests:sentry-uitest-android:connectedReleaseAndroidTest -DtestBuildType=release --daemon | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,18 +3,13 @@ on: | |
push: | ||
branches: | ||
- main | ||
- release/** | ||
pull_request: | ||
|
||
jobs: | ||
cancel-previous-workflow: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # [email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
name: Ui tests | ||
runs-on: ubuntu-latest | ||
|
@@ -33,16 +28,14 @@ jobs: | |
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # pin@v2 | ||
|
||
# Clean, build and release a test apk, but only if we will run the benchmark | ||
- name: Make assembleUiTests | ||
if: env.SAUCE_USERNAME != null | ||
run: make assembleUiTests | ||
|
||
# We stop gradle at the end to make sure the cache folders | ||
# don't contain any lock files and are free to be cached. | ||
- name: Make stop | ||
run: make stop | ||
|
||
- name: Run Tests in SauceLab | ||
uses: saucelabs/saucectl-run-action@7fe025ef1fdc6f211add3751a6c7d8bba27ba9b1 # pin@v3 | ||
env: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: 'Release' | ||
on: | ||
push: | ||
branches: | ||
- release/** | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
release: | ||
name: Build release artifacts | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Java Version | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # pin@v2 | ||
|
||
- name: Build artifacts | ||
run: make publish | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ github.sha }} | ||
if-no-files-found: error | ||
path: | | ||
./*/build/distributions/*.zip | ||
./sentry-opentelemetry/*/build/distributions/*.zip | ||
./sentry-android-ndk/build/intermediates/merged_native_libs/release/out/lib/* |
This file contains 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
This file contains 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
Oops, something went wrong.