Commit 577cbc7
**Which issue(s) this PR fixes**:
Backport #5474
Fixes #
**What this PR does / why we need it**:
`test_emit_with_read_bytes_limit_per_second` in `reads_bytes_per_second
w/ throttled already` was intermittently failing, especially on macOS CI
runners.
```
4) Failure: test_emit_with_read_bytes_limit_per_second[flat 65536 bytes](TailInputTest::singleline::log throttling per file::reads_bytes_per_second w/ throttled already)
/Users/runner/work/fluentd/fluentd/test/plugin/test_in_tail.rb:636
636: assert_equal([], d.events)
<[]> expected but was
<[["t1", 2026-08-13 04:57:42.938460000 +0000, {"message"=>"xxxx..."}]]>
```
Ref.
https://github.com/fluent/fluentd/actions/runs/31667602802/job/94345429056#step:6:5450
The `in_tail` throttling test must finish within a strict 1-second
window before the timer (`@start_reading_time`) resets. Previously, the
test appended logs for a fixed 0.8 seconds, leaving less than a
0.1-second margin. On loaded CI runners, this easily exceeded 1 second,
causing the window to reset and unexpectedly emit pending logs.
**Docs Changes**:
N/A
**Release Note**:
N/A
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Shizuo Fujita <fujita@clear-code.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 8ff5d3b commit 577cbc7
1 file changed
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
623 | 629 | | |
624 | | - | |
625 | 630 | | |
626 | 631 | | |
627 | 632 | | |
| |||
0 commit comments