Commit 451bb5c
Allow users to bypass Runtime Config API calls during function deploys (#8944)
* feat: introduce mode where function deploy to never call runtime config API.
* fix few issues
* run formatter
* style nits
* Handle missing credentials gracefully in internaltesting:functions:discover
Default to runtimeConfigApiEnabled=false when API check fails (e.g., no credentials)
* Update src/deploy/functions/prepare.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Simplify runtime config loading implementation
- Remove maybeLoadCodebasesWithConfig function and inline logic
- Remove two-pass discovery strategy that had backward compatibility issues
- Simplify to a straightforward on/off switch controlled by experiment flag
- Remove unnecessary unit tests for the removed function
- Update internaltesting:functions:discover to use simplified approach
The experiment now serves as a migration flag:
- Enabled (default): Loads runtime config for backward compatibility
- Disabled: Skips runtime config entirely as part of deprecation path
* reformat
* Remove unused someEndpoint function from build.ts
This function was added during two-pass discovery implementation but is no longer needed
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent 98ad168 commit 451bb5c
File tree
2 files changed
+45
-13
lines changed- src
- commands
- deploy/functions
2 files changed
+45
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
26 | 56 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 90 | | |
97 | 91 | | |
98 | 92 | | |
99 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
0 commit comments