Skip to content

Conversation

sjmonson
Copy link
Collaborator

@sjmonson sjmonson commented Oct 8, 2025

Summary

Fixes failing unit tests. Most were failing due to changes in functionality but a couple were regressions.


  • "I certify that all code in this PR is my own, except as noted below."

Use of AI

  • Includes AI-assisted code completion
  • Includes code generated by an AI application
  • Includes AI-generated tests (NOTE: AI written tests should have a docstring that includes ## WRITTEN BY AI ##)

Copy link
Collaborator

@jaredoconnell jaredoconnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. And the tests pass on my machine.

@jaredoconnell
Copy link
Collaborator

Merging now as these fixes should make it easier to do the rest of our work. I heard that there may still be some type errors, but those can be fixed in a follow up PR.

<!--
Include a short paragraph of the changes introduced in this PR.
If this PR requires additional context or rationale, explain why
the changes are necessary.
-->
Fixes a issue in metric calculation that caused incorrect statistics at
extreme changes in concurrency and an issue where the first decode token
was not counted in total tokens per second.

<!--
Provide a detailed list of all changes introduced in this pull request.
-->
- [x] Fixed issue where merged concurrency change events would
double-count concurrency
- [x] Ensure first decode token is counted when calculating total tokens
per second

<!--
List the steps needed to test this PR.
-->
- Run unit tests: `tox -e test-unit -- -m "regression and sanity"`

---

- [x] "I certify that all code in this PR is my own, except as noted
below."

- [x] Includes AI-assisted code completion
- [ ] Includes code generated by an AI application
- [x] Includes AI-generated tests (NOTE: AI written tests should have a
docstring that includes `## WRITTEN BY AI ##`)

---------

Signed-off-by: Samuel Monson <[email protected]>
Signed-off-by: Samuel Monson <[email protected]>
Signed-off-by: Samuel Monson <[email protected]>
Signed-off-by: Samuel Monson <[email protected]>
Signed-off-by: Samuel Monson <[email protected]>
@sjmonson sjmonson force-pushed the features/refactor/unit_tests branch from 3d485a5 to e1f57c1 Compare October 9, 2025 18:48
@sjmonson sjmonson force-pushed the features/refactor/unit_tests branch from e1f57c1 to 1556236 Compare October 9, 2025 18:49
@jaredoconnell jaredoconnell merged commit 0a64090 into features/refactor/base Oct 9, 2025
15 of 33 checks passed
@jaredoconnell jaredoconnell deleted the features/refactor/unit_tests branch October 9, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants