piker_test_dir is None when exec uv run or uv run --dev #30

Open
opened 2025-02-13 18:40:45 +00:00 by ntorres · 0 comments
Collaborator

If the uv run doesn’t specify --no-dev the dev deps are loaded, and pytest requires the piker_test_dir that is not set!!

a quick fix: (we need to dig a better solution here obviously)

image

Per the commit msg, further follow up includes,

  • creation of this issue to track the fundamental runtime env issue

  • a fix in piker.config’s hack to leak actor rt-state to the test suite.

  • a test to replicate the transitive fault in tractor’s core ._runtime which seems to be due to the error taking place during a sub-actor’s module import phase which prevents the runtime from booting fully and then the proc getting stuck in a real gnarly SIG-state..

If the `uv run` doesn't specify `--no-dev` the dev deps are loaded, and pytest requires the `piker_test_dir` that is not set!! a quick fix: (we need to dig a better solution here obviously) - [x] added via commit https://pikers.dev/pikers/piker/commit/00108010c910731a8f0b3875ca51d2564c0b1caeto in the history for https://pikers.dev/pikers/piker/pulls/9 ![image](/attachments/bba94f4e-05e1-470d-b080-c736eb9cb24f) --- Per the commit msg, further follow up includes, - [x] creation of this issue to track the fundamental runtime env issue - [ ] a fix in `piker.config`'s hack to leak actor rt-state to the test suite. - [ ] a test to replicate the transitive fault in `tractor`'s core `._runtime` which seems to be due to the error taking place during a sub-actor's module import phase which prevents the runtime from booting fully and then the proc getting stuck in a real gnarly SIG-state..
goodboy self-assigned this 2025-02-13 18:51:45 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: pikers/piker#30
There is no content yet.