Commit 67d9c5b
CI: fix PushInitialEvent timeout and simplify crash recovery test
PushInitialEvent used Follow:true with scanner.Scan() but only
checked the timeout after receiving a log line. If no lines arrived,
it blocked indefinitely. Fix by passing context.WithTimeout to the
log stream so scanner.Scan returns when the deadline expires.
Also in the crash recovery test:
- Remove redundant MonitorPodLogsRegex (verifyClockClassCurrentState
uses PushInitialEvent which reads logs directly)
- Rename verifyClockClassViaEventAPI to verifyClockClassCurrentState
to reflect that it queries current state via fresh subscription
with pushInitial=true, unlike verifyClockClassViaEvent which
drains an existing long-lived subscription
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Jack Ding <jackding@gmail.com>1 parent 1f2c2cc commit 67d9c5b
2 files changed
+30
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1363 | 1363 | | |
1364 | 1364 | | |
1365 | 1365 | | |
| 1366 | + | |
1366 | 1367 | | |
1367 | 1368 | | |
1368 | 1369 | | |
| |||
1372 | 1373 | | |
1373 | 1374 | | |
1374 | 1375 | | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
| 1376 | + | |
| 1377 | + | |
1381 | 1378 | | |
1382 | 1379 | | |
1383 | 1380 | | |
| |||
1422 | 1419 | | |
1423 | 1420 | | |
1424 | 1421 | | |
1425 | | - | |
| 1422 | + | |
1426 | 1423 | | |
1427 | 1424 | | |
1428 | 1425 | | |
| |||
3741 | 3738 | | |
3742 | 3739 | | |
3743 | 3740 | | |
3744 | | - | |
3745 | | - | |
| 3741 | + | |
| 3742 | + | |
| 3743 | + | |
| 3744 | + | |
| 3745 | + | |
| 3746 | + | |
3746 | 3747 | | |
3747 | 3748 | | |
3748 | 3749 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
526 | 529 | | |
527 | | - | |
| 530 | + | |
528 | 531 | | |
529 | 532 | | |
530 | 533 | | |
531 | 534 | | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
540 | 547 | | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
555 | 551 | | |
556 | 552 | | |
557 | | - | |
558 | 553 | | |
| 554 | + | |
559 | 555 | | |
560 | 556 | | |
561 | 557 | | |
| |||
0 commit comments