Commit c7d582e
authored
apk-size: report clear error message when "sdk" string cannot be parsed (#7206)
This PR fixes an obscure error that I cannot reproduce.
The error occurred during a github actions workflow and looked like
this:
```
[I] fireci.gradle: FAILURE: Build failed with an exception.
[I] fireci.gradle:
[I] fireci.gradle: * Where:
[I] fireci.gradle: Script '/home/runner/work/firebase-android-sdk/firebase-android-sdk/health-metrics/apk-size/app/configure.gradle' line: 27
[I] fireci.gradle:
[I] fireci.gradle: * What went wrong:
[I] fireci.gradle: A problem occurred evaluating script.
[I] fireci.gradle: > Index 1 out of bounds for length 1
```
https://github.com/firebase/firebase-android-sdk/actions/runs/16633221757/job/47122970800
With this fix, the error is clearer:
```
$ cd health-metrics/apk-size
$ ./gradlew -Psdks=foobar1,foobar2 tasks
FAILURE: Build failed with an exception.
* Where:
Script 'health-metrics/apk-size/app/configure.gradle' line: 30
* What went wrong:
A problem occurred evaluating script.
> Invalid SDK format: 'foobar1'. Expected format: 'groupId:artifactId:version' (sdks: 'foobar1,foobar2')
```1 parent 99d6162 commit c7d582e
File tree
2 files changed
+15
-1
lines changed- ci/fireci/fireciplugins
- health-metrics/apk-size/app
2 files changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
58 | 65 | | |
59 | 66 | | |
60 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
0 commit comments