Commit 474ad29
authored
Revert Summary Metrics and Expand Test Coverage to Stabilize Nightly/Main CI (#58)
## Summary:
Reverts the summary metrics logic in `src/guidellm/core/report.py` and
`src/guidellm/core/result.py` that was landed due to failing tests.
Additionally, test cases are expanded to ensure full coverage of these
changes and to stabilize the nightly and main CI pipelines.
## Details:
- Replaced direct token statistics (`prompt_token`, `output_token`) with
distribution-based calculations (`prompt_token_distribution`,
`output_token_distribution`).
- Modified percentile handling for request latency, time-to-first-token
(TTFT), and inter-token latency (ITL) to improve performance summary
accuracy.
- Removed `computed_field` annotations for several properties in
`src/guidellm/core/result.py`.
- Updated tests in `tests/unit/core/test_report.py` from
`@pytest.mark.regression` to `@pytest.mark.sanity` to better align with
the testing standards.
## Test Plan:
- Unit tests have been added/updated to verify:
- Correctness of the refactored token statistics and distribution
calculations.
- Accurate summary report generation for benchmarks.
- Full compatibility with existing functionality.
- Verified passing CI/CD pipeline, ensuring no regressions.1 parent d1d50b6 commit 474ad29
File tree
3 files changed
+22
-104
lines changed- src/guidellm/core
- tests/unit/core
3 files changed
+22
-104
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
154 | 156 | | |
155 | | - | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
| |||
177 | 181 | | |
178 | 182 | | |
179 | 183 | | |
180 | | - | |
| 184 | + | |
181 | 185 | | |
182 | 186 | | |
183 | 187 | | |
| |||
189 | 193 | | |
190 | 194 | | |
191 | 195 | | |
192 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
193 | 199 | | |
194 | 200 | | |
195 | 201 | | |
196 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
197 | 205 | | |
198 | 206 | | |
199 | 207 | | |
200 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
201 | 211 | | |
202 | 212 | | |
203 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | 224 | | |
226 | 225 | | |
227 | 226 | | |
| |||
232 | 231 | | |
233 | 232 | | |
234 | 233 | | |
235 | | - | |
236 | 234 | | |
237 | 235 | | |
238 | 236 | | |
| |||
243 | 241 | | |
244 | 242 | | |
245 | 243 | | |
246 | | - | |
247 | 244 | | |
248 | 245 | | |
249 | 246 | | |
| |||
254 | 251 | | |
255 | 252 | | |
256 | 253 | | |
257 | | - | |
258 | 254 | | |
259 | 255 | | |
260 | 256 | | |
| |||
268 | 264 | | |
269 | 265 | | |
270 | 266 | | |
271 | | - | |
272 | 267 | | |
273 | 268 | | |
274 | 269 | | |
| |||
282 | 277 | | |
283 | 278 | | |
284 | 279 | | |
285 | | - | |
286 | 280 | | |
287 | 281 | | |
288 | 282 | | |
| |||
296 | 290 | | |
297 | 291 | | |
298 | 292 | | |
299 | | - | |
300 | 293 | | |
301 | 294 | | |
302 | 295 | | |
| |||
310 | 303 | | |
311 | 304 | | |
312 | 305 | | |
313 | | - | |
314 | 306 | | |
315 | 307 | | |
316 | 308 | | |
| |||
340 | 332 | | |
341 | 333 | | |
342 | 334 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | 335 | | |
357 | 336 | | |
358 | 337 | | |
| |||
382 | 361 | | |
383 | 362 | | |
384 | 363 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | 364 | | |
400 | 365 | | |
401 | 366 | | |
| |||
423 | 388 | | |
424 | 389 | | |
425 | 390 | | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | 391 | | |
439 | 392 | | |
440 | 393 | | |
| |||
450 | 403 | | |
451 | 404 | | |
452 | 405 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | 406 | | |
465 | 407 | | |
466 | 408 | | |
| |||
471 | 413 | | |
472 | 414 | | |
473 | 415 | | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | 416 | | |
497 | 417 | | |
498 | 418 | | |
| |||
503 | 423 | | |
504 | 424 | | |
505 | 425 | | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | 426 | | |
519 | 427 | | |
520 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments