Commit f5eb29c
committed
fix: update project maps directly in reload services for GitHub and Gitea
When systemd removes cache files on startup, both GitHub and Gitea backends have stale
project maps that cause status updates to be incorrectly skipped.
This fix updates the in-memory project maps directly when the reload services complete:
- GitHub: Updates project_id_map in ReloadGithubInstallations
- Gitea: Updates gitea_projects set in ReloadGiteaProjects
The SIGHUP signal will still trigger a full config reload for consistency, but the
direct updates ensure the maps are current immediately after reload without waiting
for the signal.1 parent 3a39cdd commit f5eb29c
File tree
2 files changed
+32
-1
lines changed- buildbot_nix/buildbot_nix
2 files changed
+32
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
| |||
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
262 | 268 | | |
263 | 269 | | |
264 | 270 | | |
| |||
371 | 377 | | |
372 | 378 | | |
373 | 379 | | |
| 380 | + | |
374 | 381 | | |
375 | 382 | | |
376 | 383 | | |
377 | 384 | | |
| 385 | + | |
378 | 386 | | |
379 | 387 | | |
380 | 388 | | |
| |||
390 | 398 | | |
391 | 399 | | |
392 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
393 | 406 | | |
394 | 407 | | |
395 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| 200 | + | |
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| |||
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
243 | 252 | | |
244 | 253 | | |
245 | 254 | | |
| |||
373 | 382 | | |
374 | 383 | | |
375 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
376 | 393 | | |
377 | 394 | | |
378 | 395 | | |
| |||
422 | 439 | | |
423 | 440 | | |
424 | 441 | | |
| 442 | + | |
425 | 443 | | |
426 | 444 | | |
427 | 445 | | |
| |||
0 commit comments