Commit 5b39bf3
committed
Fix CI failures in deploy telemetry
Two fixes:
1. Remove redundant empty BundleDeployEvent logging in root.go Execute.
The defer in process.go already logs detailed deploy telemetry via
LogDeployTelemetry on all exit paths. The root.go code caused duplicate
events and Upload retries (mock returns numProtoSuccess=1).
2. Add HasConfigUsed guard in telemetry.Upload before calling ConfigUsed.
When bundle config fails early (e.g., restricted script execution
blocking preinit), ConfigUsed is never set on the context. The
LogDeployTelemetry defer still logs an event, so Upload would panic
trying to create an API client without auth config.
Co-authored-by: Isaac1 parent 3bc2436 commit 5b39bf3
2 files changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | 182 | | |
192 | 183 | | |
193 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
| |||
0 commit comments