Commit a4c6176
Quieten expected Platform-connectivity errors in the token watcher (#1085)
* Quieten expected Platform-connectivity errors in the token watcher
When the workflow-status lookup fails because the run's Platform endpoint is
briefly unreachable (e.g. a paired self-hosted instance whose pairing
WebSocket times out), the watcher caught it in the generic catch-all and
logged a full ERROR stack trace on every retry. For chronically-unreachable
paired endpoints this floods the logs and inflates error-rate signals, even
though the behavior is correct (the token is not renewed and lapses
fail-closed, then the entry stops on the next 'gone' check).
Distinguish these transient connectivity failures (TimeoutException /
HttpResponseException in the cause chain) from genuinely unexpected errors:
log the former as a concise one-line warning, keep the ERROR+stack trace for
the latter. Retry and the wave.tokens.refresh{result=error} counter are
unchanged for both.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Bound cause-chain walk to guard against cyclic references
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Replace empty for-loop with while in rootCauseMessage
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Simplify cause-chain walk per review feedback
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1bfc55c commit a4c6176
2 files changed
Lines changed: 61 additions & 1 deletion
File tree
- src
- main/groovy/io/seqera/wave/service/request
- test/groovy/io/seqera/wave/service/request
Lines changed: 39 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
135 | 164 | | |
136 | 165 | | |
137 | 166 | | |
| |||
173 | 202 | | |
174 | 203 | | |
175 | 204 | | |
176 | | - | |
177 | 205 | | |
178 | 206 | | |
179 | 207 | | |
180 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
181 | 219 | | |
182 | 220 | | |
183 | 221 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
253 | 256 | | |
254 | 257 | | |
255 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
256 | 278 | | |
0 commit comments