Commit e8d64e5
fix: address PR review on maintainer identity comparison (DE-980)
Four follow-ups from PR #4277 review, all aimed at preserving prior
behaviour rather than changing the feature:
- compare_and_update_maintainers: guard the end-date pass with a "still
mentioned in source" check. The old github_username-keyed dict always
included extracted maintainers regardless of identity-lookup outcome,
so a transient resolution failure never wrongly end-dated a maintainer
still present in the file. Restore that invariant under the new
identity-based keying.
- get_maintainers_for_repo: add mi."endDate" IS NULL. Reinstates the
reactivation path the old platform='github' filter incidentally
provided for email-linked maintainers (end-dated rows fell out of the
comparison set, hit the "new maintainer" branch, and got reactivated
via upsert's ON CONFLICT ... SET "endDate" = NULL).
- insert_new_maintainers: restore concurrent upserts via
asyncio.gather + Semaphore(MAX_CONCURRENT_CHUNKS). The earlier refactor
accidentally serialised them, regressing first-run performance on
large MAINTAINERS files.
- _resolve_maintainers: use self.MAX_CONCURRENT_CHUNKS instead of the
hardcoded literal so concurrency tuning stays in one place.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>1 parent 052a630 commit e8d64e5
2 files changed
Lines changed: 52 additions & 17 deletions
File tree
- services/apps/git_integration/src/crowdgit
- database
- services/maintainer
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
413 | 419 | | |
414 | 420 | | |
415 | 421 | | |
416 | 422 | | |
417 | | - | |
| 423 | + | |
418 | 424 | | |
419 | 425 | | |
420 | 426 | | |
| |||
Lines changed: 45 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| |||
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
206 | 214 | | |
207 | 215 | | |
208 | 216 | | |
| |||
243 | 251 | | |
244 | 252 | | |
245 | 253 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
251 | 275 | | |
252 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
253 | 282 | | |
254 | 283 | | |
255 | 284 | | |
| |||
0 commit comments