Skip to content

Commit a7f1775

Browse files
committed
Merge remote-tracking branch 'origin/main' into emb/fis-fidchangelistener
2 parents 7e77503 + 1476cf7 commit a7f1775

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/app-distribution-gradle-compatibility-tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212

1313
permissions:
1414
contents: read
15+
issues: write
1516

1617
jobs:
1718
app-distribution-plugin:
@@ -52,3 +53,13 @@ jobs:
5253
with:
5354
name: integration-test-report
5455
path: firebase-appdistribution-gradle/build/reports/tests/
56+
57+
- name: Create GitHub Issue on Failure
58+
if: failure() && (github.event_name == 'schedule')
59+
env:
60+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
run: |
62+
gh issue create \
63+
--title "[firebase-appdistribution] Gradle Compatibility Tests Failed" \
64+
--body "The daily compatibility tests failed on the main branch. Please check the workflow logs here to diagnose the failure: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
65+
--label "bug,ci-failure,api: appdistribution"

firebase-appdistribution-gradle/firebase-appdistribution-gradle.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ task integrationTest(type: Test) {
171171
description = 'Runs integration tests.'
172172
group = 'verification'
173173

174+
// Disable caching because the tests use com.google.firebase.appdistribution.gradle.VersionUtils,
175+
// which fetches the latest version from the internet.
176+
outputs.upToDateWhen { false }
177+
174178
testClassesDirs = sourceSets.integrationTest.output.classesDirs
175179
classpath = sourceSets.integrationTest.runtimeClasspath
176180

@@ -185,6 +189,10 @@ task prodTest(type: Test) {
185189
description = 'Runs prod tests.'
186190
group = 'verification'
187191

192+
// Disable caching because the tests use com.google.firebase.appdistribution.gradle.VersionUtils,
193+
// which fetches the latest version from the internet.
194+
outputs.upToDateWhen { false }
195+
188196
testClassesDirs = sourceSets.prodTest.output.classesDirs
189197
classpath = sourceSets.prodTest.runtimeClasspath
190198

0 commit comments

Comments
 (0)