• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubernetes-sigs / inference-perf / 40542071612
87%

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2026 04:42PM UTC
Jobs 1
Files 137
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Oct 2026 04:33PM UTC coverage: 85.113% (+0.001%) from 85.112%
40542071612

push

github

web-flow
fix: send every planned request of a stage when num_workers = 0 (#932)

Fixes #922

Old behavior: with `num_workers = 0` a constant-rate stage usually sent
one request fewer than planned (rate 8 for 1 s sent 7). The in-process
loop required `time_index < end_time and now < end_time`, but
`ConstantLoadTimer` schedules its last request at `end_time` up to float
rounding, and the loop reaches it at or after `end_time`.

New behavior: the stage sends every request scheduled up to `end_time`,
like the mp path. A request scheduled after the stage end still ends the
loop, so the endless Poisson timer still stops.

Changes:
- `_run_in_process_stage`: gate on `time_index < end_time +
_STAGE_END_TOLERANCE` (1 microsecond, for the float rounding) and drop
the `now < end_time` check, so a late loop no longer drops a scheduled
request.
- `test_worker_matrix.py`: the `num_workers = 0` cell now asserts `==
REQUESTS_PER_STAGE` like the mp cells, as suggested in the issue. The
old assertion accepted `REQUESTS_PER_STAGE - 1`; that behavior is the
bug. The module docstring no longer describes it as a standing finding.
- `test_load_generator.py`: two unit tests with a mocked clock. A
request scheduled exactly at the stage end is sent while the loop is
already past it (2 of 2), and a request scheduled after the stage end is
dropped and stops the loop.

Failing on main (`test_worker_matrix.py`, flipped assertion, 3 runs out
of 3):
```
E   AssertionError: stage 0 delivered 7 requests, expected 8
E   assert 7 == 8
```
The two new unit tests fail on main with `AssertionError: 0 != 2` and `0
!= 1`.

Tested:
- `pytest tests/required/loadgen`: 93 passed.
- `pytest tests/required/integration/test_worker_matrix.py`: 5 passed.
- `ruff format --check` and `ruff check` clean. `mypy --strict` reports
no errors in the changed files; it only flags missing stub packages for
yaml and jmespath in this environment.
- Not run: `pdm run test:e2e` (no `llm-d-inference-sim` here), the full
`pdm... (continued)

2 of 2 new or added lines in 1 file covered. (100.0%)

12927 of 15188 relevant lines covered (85.11%)

0.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40542071612.1 27 Oct 2026 04:42PM UTC 137
85.11
GitHub Action Run
Source Files on build 40542071612
  • Tree
  • List 137
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40542071612
  • a1a7f39c on github
  • Prev Build on main (#40454232664)
  • Next Build on main (#40619082179)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc