Commit 5965754
authored
fix: Force upload for non-ACTIVE functions to prevent GCFv2 update failure (#9456)
* Fix: Force upload for non-ACTIVE functions to prevent GCFv2 update failure
When a GCFv2 function is in a FAILED state but the local source code hasn't changed, the CLI previously skipped the source upload. This caused the subsequent update operation to fail with 'Precondition failed' because it lacked the required storage source information.
This change ensures that source upload is only skipped if the existing function is in an ACTIVE state, forcing a re-upload and allowing repair of FAILED functions.
* Add changelog entry for GCFv2 precondition fix
* Refactor: Remove duplicate test case in deploy.spec.ts1 parent 518357b commit 5965754
3 files changed
+23
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
143 | 158 | | |
144 | 159 | | |
145 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
225 | 230 | | |
226 | 231 | | |
0 commit comments