Commit 3ddc040
committed
test: fix flaky audit log and service account status tests
The service account status test indexed PublicKeys[0] right after a non-fatal assert.Len. A slow reconcile that left the slice empty would panic instead of retrying, so the index access now sits behind the length check and the poller waits for the key to be aggregated.
The two audit log tests seeded 1500 rows as separate autocommit transactions. Under full-suite disk contention those commits triggered enough checkpoint fsyncs to overrun the 30s context deadline mid-statement, so seeding now runs inside a single transaction.
Signed-off-by: Oguz Kilcan <oguz.kilcan@siderolabs.com>1 parent e330092 commit 3ddc040
2 files changed
Lines changed: 86 additions & 30 deletions
File tree
- internal/backend/runtime/omni
- audit/auditlog/auditlogsqlite
- controllers/omni
Lines changed: 79 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
325 | 341 | | |
326 | 342 | | |
327 | 343 | | |
328 | 344 | | |
329 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
330 | 362 | | |
331 | | - | |
332 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
333 | 366 | | |
334 | 367 | | |
335 | 368 | | |
| |||
386 | 419 | | |
387 | 420 | | |
388 | 421 | | |
389 | | - | |
390 | | - | |
| 422 | + | |
| 423 | + | |
391 | 424 | | |
392 | | - | |
393 | | - | |
394 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
395 | 428 | | |
396 | | - | |
397 | | - | |
| 429 | + | |
398 | 430 | | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
404 | 435 | | |
405 | | - | |
406 | | - | |
| 436 | + | |
407 | 437 | | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
413 | 464 | | |
414 | 465 | | |
415 | 466 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
89 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
| |||
0 commit comments