Commit bdbe8c4
committed
fix(ci): resolve 3 remaining scheduler/dolt test failures
Fix #1 — TestBuildDoltSQLCmd_LocalIgnoresInheritedCredentials
buildDoltSQLCmd was appending "DOLT_CLI_PASSWORD=" onto os.Environ(),
leaving an inherited shell value already in the slice. Strip the key from
os.Environ() first via a new filterEnvKey helper so the single canonical
entry we append is the only one in cmd.Env.
Fix #2 — TestSchedulerAutoConvoyCreation
Two bugs:
- Test setup didn't register the literal "hq-cv-" route, so bd show from
hq couldn't resolve convoy IDs. Add the route in setupSchedulerIntegrationTown
and setupMultiRigSchedulerTown, matching what gt install does.
- Test passed --allow-stale as a subcommand flag; it's a global flag.
Use beads.MaybePrependAllowStale so it lands before the subcommand.
Fix #3 — TestSchedulerSlingContextIdempotency
listAllSlingContexts iterated every dir from beadsSearchDirs without
deduping. In the test fixture, testrig/.beads is a redirect file
pointing to testrig/mayor/rig/.beads, so both paths yielded the same
underlying beads DB and the same context was counted twice. Dedupe by
context ID so redirects (and any future aliasing) can't inflate counts.1 parent 098b505 commit bdbe8c4
3 files changed
Lines changed: 44 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
492 | 496 | | |
493 | 497 | | |
| 498 | + | |
494 | 499 | | |
495 | 500 | | |
496 | 501 | | |
497 | 502 | | |
498 | 503 | | |
499 | 504 | | |
500 | | - | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
501 | 512 | | |
502 | 513 | | |
503 | 514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
143 | 147 | | |
144 | 148 | | |
145 | 149 | | |
| |||
298 | 302 | | |
299 | 303 | | |
300 | 304 | | |
301 | | - | |
302 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
303 | 309 | | |
304 | | - | |
| 310 | + | |
305 | 311 | | |
306 | | - | |
| 312 | + | |
307 | 313 | | |
308 | 314 | | |
309 | 315 | | |
| |||
579 | 585 | | |
580 | 586 | | |
581 | 587 | | |
| 588 | + | |
| 589 | + | |
582 | 590 | | |
583 | 591 | | |
584 | 592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
277 | 281 | | |
278 | | - | |
| 282 | + | |
279 | 283 | | |
280 | 284 | | |
281 | | - | |
| 285 | + | |
282 | 286 | | |
283 | | - | |
| 287 | + | |
284 | 288 | | |
285 | 289 | | |
286 | | - | |
| 290 | + | |
287 | 291 | | |
288 | 292 | | |
289 | 293 | | |
290 | 294 | | |
291 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
292 | 308 | | |
293 | 309 | | |
294 | 310 | | |
| |||
0 commit comments