mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4125] [Other] serve tests: VisionArgs passes again (fake process without pid) #4910
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4910
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4125
Author: @mnott
Created: 10/25/2026
Status: 🔄 Open
Base:
main← Head:pr/test-visionargs-pid📝 Commits (1)
763c81ftest(serve): VisionArgs stubs lifeline's watcher, its fake process has no pid📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
serve/test_server.py(+1 -1)📄 Description
Problem and result
serve/test_server.py::VisionArgs::test_min_tokens_is_passed_only_when_setfails on v0.2.6 withAttributeError: 'Proc' object has no attribute 'pid'atserve/lifeline.py:147. With this change the test passes andserve/test_server.pyruns without failures.Related discussion
Overview of our related macOS / Metal contributions: #4128. Found while running serve/test_server.py on v0.2.6 for the other PRs.
Approach
Since
48e6d64cevery server child is started throughlifeline.popen, whose_watchreadschild.pidto start a watcher process. The test stubssubprocess.Popenwith a bare fake, so_watchhit the missing attribute. Giving the fake a pid would start a real watcher; the test instead patcheslifeline._watch, since it only checks the encoder arguments.Validation
Revision
763c81f861cf24ebafdba8d32a92201b3db9955bonv0.2.6.Passed:
pytest serve/test_server.py::VisionArgs1 failed; wholeserve/test_server.py1 failed, 351 passed.VisionArgs1 passed; wholeserve/test_server.py352 passed, 0 failed.Failed:
Not run:
Limits
Test change only; serve/lifeline.py is unchanged.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.