Commit cfc7ea2
authored
fix: add error handling to script (#7001)
This script lacked error handling, causing it to fail when modules like [java-marketingplatformadminapi](https://github.com/googleapis/google-cloud-java/tree/main/java-marketingplatformadminapi)
See context in [doc](https://docs.google.com/document/d/1fh4paz0K_cVmk63nM3PSJj9MkQN8kWCQN2yqfEeF49U/edit?resourcekey=0-uAKnlOeiAnBkQ9Yf-ZCyWw&tab=t.0)
This fix is manually tested and can get a peek of data with
```
SELECT * FROM `cloud-java-metrics.client_library_versions.cloud_java_client_library_release_dates`
WHERE TIMESTAMP_TRUNC(_PARTITIONTIME, DAY) = TIMESTAMP("2025-03-27") LIMIT 1000
```
For longer term, consider adding tests and/or refactoring.1 parent 287b7f3 commit cfc7ea2
1 file changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
35 | 46 | | |
36 | 47 | | |
37 | 48 | | |
38 | 49 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
42 | 58 | | |
43 | 59 | | |
44 | 60 | | |
| |||
62 | 78 | | |
63 | 79 | | |
64 | 80 | | |
65 | | - | |
| 81 | + | |
0 commit comments