fix: make TestEmbedText parallel-safe by patching _get_embedding_model #461

Closed
kimi wants to merge 0 commits from kimi/issue-454 into main
Collaborator

Replace direct mutation of the global EMBEDDING_MODEL with patch.object on _get_embedding_model, eliminating shared state that caused flakiness under pytest-xdist parallel execution.

Fixes #454

Replace direct mutation of the global `EMBEDDING_MODEL` with `patch.object` on `_get_embedding_model`, eliminating shared state that caused flakiness under pytest-xdist parallel execution. Fixes #454
kimi added 1 commit 2026-03-19 18:41:10 +00:00
fix: make TestEmbedText parallel-safe by patching _get_embedding_model
All checks were successful
Tests / lint (pull_request) Successful in 4s
Tests / test (pull_request) Successful in 1m12s
39dac4bb82
Replace direct mutation of the global EMBEDDING_MODEL with
patch.object on _get_embedding_model, eliminating shared state
that caused flakiness under pytest-xdist parallel execution.

Fixes #454

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Timmy added 1 commit 2026-03-19 18:44:39 +00:00
Merge branch 'main' into kimi/issue-454
All checks were successful
Tests / lint (pull_request) Successful in 3s
Tests / test (pull_request) Successful in 1m20s
439be652a9
Timmy closed this pull request 2026-03-19 18:45:47 +00:00
Owner

Closing — this PR has 0 changed files (diff from main is empty). The fix from commit 39dac4bb appears to already be on main.

Closing — this PR has 0 changed files (diff from main is empty). The fix from commit 39dac4bb appears to already be on main.

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#461