Skip to content

Commit 3eef688

Browse files
runningcodeclaude
andauthored
ci: Remove Gradle configuration cache keys and workarounds (#6445)
Drop cache-encryption-key and GRADLE_ENCRYPTION_KEY from all workflows, and the buildSrc cache step that worked around gradle/actions#21. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent c608820 commit 3eef688

10 files changed

Lines changed: 0 additions & 75 deletions

‎.github/workflows/agp-matrix.yml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
env:
2525
VERSION_AGP: ${{ matrix.agp }}
2626
APPLY_SENTRY_INTEGRATIONS: ${{ matrix.integrations }}
27-
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
2827

2928
steps:
3029
- name: Checkout Repo
@@ -38,8 +37,6 @@ jobs:
3837

3938
- name: Setup Gradle
4039
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
41-
with:
42-
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
4340

4441
- name: Enable KVM
4542
run: |

‎.github/workflows/build.yml‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ jobs:
1515
name: Build Job ubuntu-latest
1616
runs-on: ubuntu-latest
1717

18-
env:
19-
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
20-
2118
steps:
2219
- name: Checkout Repo
2320
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -30,17 +27,8 @@ jobs:
3027
distribution: 'temurin'
3128
java-version: '21'
3229

33-
# Workaround for https://github.com/gradle/actions/issues/21 to use config cache
34-
- name: Cache buildSrc
35-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
36-
with:
37-
path: buildSrc/build
38-
key: build-logic-${{ hashFiles('buildSrc/src/**', 'buildSrc/build.gradle.kts','buildSrc/settings.gradle.kts') }}
39-
4030
- name: Setup Gradle
4131
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
42-
with:
43-
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
4432

4533
- name: Run Tests and Lint
4634
run: make preMerge

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ jobs:
1515
name: Analyze
1616
runs-on: macos-15
1717

18-
env:
19-
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
20-
2118
steps:
2219
- name: Checkout Repo
2320
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -30,8 +27,6 @@ jobs:
3027

3128
- name: Setup Gradle
3229
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
33-
with:
34-
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
3530

3631
- name: Initialize CodeQL
3732
uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # pin@v2

‎.github/workflows/format-code.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818

1919
- name: Setup Gradle
2020
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
21-
with:
22-
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
2321

2422
- name: Format with spotlessApply
2523
run: ./gradlew spotlessApply

‎.github/workflows/integration-tests-size.yml‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ jobs:
1515
name: Build and Analyze SDK Size
1616
runs-on: ubuntu-latest
1717

18-
env:
19-
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
20-
2118
steps:
2219
- name: Checkout Repo
2320
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -28,17 +25,8 @@ jobs:
2825
distribution: "temurin"
2926
java-version: "21"
3027

31-
# Workaround for https://github.com/gradle/actions/issues/21 to use config cache
32-
- name: Cache buildSrc
33-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
34-
with:
35-
path: buildSrc/build
36-
key: build-logic-${{ hashFiles('buildSrc/src/**', 'buildSrc/build.gradle.kts','buildSrc/settings.gradle.kts') }}
37-
3828
- name: Setup Gradle
3929
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
40-
with:
41-
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
4230

4331
- name: Size Analysis
4432
run: ./gradlew :sentry-android-integration-tests:test-app-size:bundleRelease

‎.github/workflows/integration-tests-ui-critical.yml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ jobs:
2222
name: Build
2323
runs-on: ubuntu-latest
2424

25-
env:
26-
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
27-
2825
steps:
2926
- name: Checkout code
3027
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -37,8 +34,6 @@ jobs:
3734

3835
- name: Setup Gradle
3936
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
40-
with:
41-
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
4237

4338
- name: Build debug APK
4439
run: make assembleUiTestCriticalRelease

‎.github/workflows/integration-tests-ui.yml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
env:
1919
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
2020
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
21-
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
2221

2322
steps:
2423
- name: Git checkout
@@ -32,8 +31,6 @@ jobs:
3231

3332
- name: Setup Gradle
3433
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
35-
with:
36-
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
3734

3835
# Clean, build and release a test apk, but only if we will run the benchmark
3936
- name: Make assembleUiTests

‎.github/workflows/spring-boot-2-matrix.yml‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ jobs:
4141
springboot-version: ${{ fromJSON(needs.versions.outputs.versions) }}
4242

4343
name: Spring Boot ${{ matrix.springboot-version }}
44-
env:
45-
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
4644

4745
steps:
4846
- name: Checkout Repo
@@ -54,17 +52,8 @@ jobs:
5452
distribution: 'temurin'
5553
java-version: '21'
5654

57-
# Workaround for https://github.com/gradle/actions/issues/21 to use config cache
58-
- name: Cache buildSrc
59-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
60-
with:
61-
path: buildSrc/build
62-
key: build-logic-${{ hashFiles('buildSrc/src/**', 'buildSrc/build.gradle.kts','buildSrc/settings.gradle.kts') }}
63-
6455
- name: Setup Gradle
6556
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
66-
with:
67-
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
6857

6958
- name: Test integration suites
7059
# Project paths, unlike a bare task name, keep Gradle from configuring every project.

‎.github/workflows/spring-boot-3-matrix.yml‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ jobs:
4141
springboot-version: ${{ fromJSON(needs.versions.outputs.versions) }}
4242

4343
name: Spring Boot ${{ matrix.springboot-version }}
44-
env:
45-
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
4644

4745
steps:
4846
- name: Checkout Repo
@@ -54,17 +52,8 @@ jobs:
5452
distribution: 'temurin'
5553
java-version: '21'
5654

57-
# Workaround for https://github.com/gradle/actions/issues/21 to use config cache
58-
- name: Cache buildSrc
59-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
60-
with:
61-
path: buildSrc/build
62-
key: build-logic-${{ hashFiles('buildSrc/src/**', 'buildSrc/build.gradle.kts','buildSrc/settings.gradle.kts') }}
63-
6455
- name: Setup Gradle
6556
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
66-
with:
67-
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
6857

6958
- name: Test integration suites
7059
# Project paths, unlike a bare task name, keep Gradle from configuring every project.

‎.github/workflows/spring-boot-4-matrix.yml‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ jobs:
4141
springboot-version: ${{ fromJSON(needs.versions.outputs.versions) }}
4242

4343
name: Spring Boot ${{ matrix.springboot-version }}
44-
env:
45-
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
4644

4745
steps:
4846
- name: Checkout Repo
@@ -54,17 +52,8 @@ jobs:
5452
distribution: 'temurin'
5553
java-version: '21'
5654

57-
# Workaround for https://github.com/gradle/actions/issues/21 to use config cache
58-
- name: Cache buildSrc
59-
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
60-
with:
61-
path: buildSrc/build
62-
key: build-logic-${{ hashFiles('buildSrc/src/**', 'buildSrc/build.gradle.kts','buildSrc/settings.gradle.kts') }}
63-
6455
- name: Setup Gradle
6556
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
66-
with:
67-
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
6857

6958
- name: Test integration suites
7059
# Project paths, unlike a bare task name, keep Gradle from configuring every project.

0 commit comments

Comments
 (0)