Commit 0ebe6cc
authored
fix(release-tool): add HTTP client timeout configuration for large changelog queries (#167)
Fixes HTTP/2 stream cancellation errors when generating changelogs for
releases with large number of commits (500+).
The default http.DefaultClient has a 30-second idle timeout which causes
"stream error: stream ID X; CANCEL; received from peer" errors when the
GitHub GraphQL API takes longer to respond with large datasets.
Changes:
- Add configured HTTP client to GQLClient struct
- Set 5-minute overall timeout for GraphQL requests
- Set 2-minute response header timeout
- Set 90-second idle connection timeout
- Replace http.DefaultClient with configured client in graphqlQuery()
This resolves issues when generating changelogs between versions with
hundreds of commits (e.g., 2.12.0 to 2.13.0 with 557 commits).
Refs: https://github.com/kumahq/kuma/actions/runs/20373037604
Signed-off-by: Marcin Skalski <skalskimarcin33@gmail.com>1 parent 2a9b2c9 commit 0ebe6cc
1 file changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
149 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
150 | 163 | | |
151 | 164 | | |
152 | 165 | | |
| |||
295 | 308 | | |
296 | 309 | | |
297 | 310 | | |
298 | | - | |
| 311 | + | |
299 | 312 | | |
300 | 313 | | |
301 | 314 | | |
| |||
0 commit comments