Skip to content

test(qoder): isolate asynchronous usage records#131

Merged
kaitranntt merged 1 commit into
mainfrom
kai/test/qoder-usage-record-isolation
Jul 10, 2026
Merged

test(qoder): isolate asynchronous usage records#131
kaitranntt merged 1 commit into
mainfrom
kai/test/qoder-usage-record-isolation

Conversation

@kaitranntt

Copy link
Copy Markdown
Owner

Fixes the CI-only race that blocked PR #130.

Root cause: Qoder executor tests shared the global asynchronous usage manager and selected records only by provider and model. A delayed record from the preceding non-OK test could satisfy the stream-usage assertion.

This test-only change gives the stream assertion a unique AuthID, requires provider plus AuthID plus model when waiting, and adds a regression that queues an otherwise matching stale record first. Focused stress, race, executor-package, full-suite, and CI-pinned catalog validation passed locally.

No production behavior changes.

@kaitranntt kaitranntt merged commit 0d71633 into main Jul 10, 2026
2 checks passed
@kaitranntt kaitranntt deleted the kai/test/qoder-usage-record-isolation branch July 10, 2026 15: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.

1 participant