Tyler Goodlet
64819b2acb
Skip debugger tests on OS X for now
2022-12-12 15:04:40 -05:00
Tyler Goodlet
6453195e97
Pass `str` dtype for `use_str` case
2022-12-12 15:04:11 -05:00
Tyler Goodlet
3bdd04ef4a
Parametrize rw test with variable frame sizes
...
Demonstrates fixed size frame-oriented reads by the child where the
parent only transmits a "read" stream msg on "frame fill events" such
that the child incrementally reads the shm list data (much like in
a real-time-buffered streaming system).
2022-12-12 15:04:11 -05:00
Tyler Goodlet
971ac50756
Add repetitive attach to existing segment test
2022-12-12 15:04:11 -05:00
Tyler Goodlet
c01c22769b
Add initial readers-writer shm list tests
2022-12-12 15:04:11 -05:00
Tyler Goodlet
48f6d514ef
Handle earlier name error crash in debug test
2022-12-12 14:05:32 -05:00
Tyler Goodlet
d8e48e29ba
Add `mngrs=(<gen_comprehension>)` test
2022-12-11 19:56:01 -05:00
Tyler Goodlet
c47575997a
Expand nested case to include error prop and breakpointing
2022-10-14 19:42:23 -04:00
Tyler Goodlet
0a1bf8e57d
Tolerate eg in runtime test teardown
2022-10-14 19:42:23 -04:00
Tyler Goodlet
c0dd5d7ffc
Adjust multi-daemon test to be more deterministic
2022-10-14 19:42:23 -04:00
Tyler Goodlet
347591c348
Expect egs in tests which retreive portal results
2022-10-14 19:42:23 -04:00
Tyler Goodlet
c646c79a82
Adjust root-errors debug tests for blocking and egs
2022-10-14 18:18:01 -04:00
Tyler Goodlet
0f523b65fb
Change cancel test over the exception group
2022-10-14 18:16:51 -04:00
Tyler Goodlet
b15e4ed9ce
Adjust "no arbiter" test for new runtime defaults
...
Turns out this test was being silently ignored due to incorrect usage of
sync opening of our `.open_nursery()` block (with a `with` not `async
with`) and thus was an noop XD
Instead this fixes the test to call a `tractor` discovery built-in
without starting the runtime (which is now done implicitly when a user
opens a nursery) which should result in the prior expected outcome,
a `RuntimeError`.
2022-10-12 12:46:20 -04:00
Tyler Goodlet
30ea7a06b0
Avoid inf nursery hang by reversing `async with` ordering
2022-10-11 20:00:05 -04:00
Tyler Goodlet
3398153c52
Add timeout around `trio`-callee-task
2022-10-11 20:00:05 -04:00
Tyler Goodlet
93b9d2dc2d
Drop dynamic backend-spawn-method test generation
2022-10-09 18:29:50 -04:00
Tyler Goodlet
4d808757a6
Fix start method name in logging propagation test
2022-10-09 18:22:55 -04:00
Tyler Goodlet
2c20b2d64f
Fix import to load from `conftest.py`
2022-10-09 18:03:17 -04:00
Tyler Goodlet
d24fae8381
'Rename mp spawn methods to have a `'mp_'` prefix'
2022-10-09 17:54:55 -04:00
Tyler Goodlet
5ab98513b7
Move `@tractor_test` into `conftest.py`
2022-10-09 17:14:20 -04:00
Tyler Goodlet
e609183242
Expose lifetime stack as class attr, add base test suite
2022-09-15 23:50:15 -04:00
Tyler Goodlet
10eeda2d2b
Use built-ins for all data-structure-type annotations
2022-09-15 23:41:28 -04:00
Tyler Goodlet
ad19bf2cf1
Remove `tractor.run()` once and for all
...
It's been deprecated for a while now and all docs and tests have been
changed.
Closes #183
2022-09-15 23:41:28 -04:00
Tyler Goodlet
ba4d4e9af3
Change test import
2022-09-15 23:41:28 -04:00
Tyler Goodlet
2d387f2610
Add in issue link for nested cases
2022-08-02 12:17:34 -04:00
Tyler Goodlet
8115759984
Mark final nested-actor debugger test
2022-08-02 12:17:34 -04:00
Tyler Goodlet
fa4388835c
Add an expect wrapper, use in hanging CI test
2022-08-02 12:17:34 -04:00
Tyler Goodlet
54de72d8df
Loosen timeout on nested child re-locking
2022-08-02 12:17:34 -04:00
Tyler Goodlet
e4771eec16
Go back to skipping since xfail is wack
2022-08-02 12:17:28 -04:00
Tyler Goodlet
a9aaee9dbd
Use xfails for nested cases, revert prompt expect
2022-08-02 12:17:28 -04:00
Tyler Goodlet
aca9a6b99a
Try just skipping nested actor tests in CI
2022-08-02 12:17:28 -04:00
Tyler Goodlet
8896ba2bf8
Use `assert_before` more extensively
2022-08-02 12:17:28 -04:00
Tyler Goodlet
87b2ccb86a
Try less times for EOF
2022-08-02 12:17:28 -04:00
Tyler Goodlet
08cf03cd9e
Handle missing prompt render case?
2022-08-02 12:17:28 -04:00
Tyler Goodlet
6f01c78122
Disable `pygments` highlighting on ctlc tests
2022-08-02 12:17:28 -04:00
Tyler Goodlet
457499bc2e
Avoid infinite wait for EOF
2022-08-02 12:17:28 -04:00
Tyler Goodlet
a4bac135d9
Use `pytest-timeout` plug to try and prevent CI hang
2022-08-02 12:17:28 -04:00
Tyler Goodlet
20c660faa7
Add timeout on spawn error msg check
2022-08-02 12:17:28 -04:00
Tyler Goodlet
a4538a3d84
Drop ctlc tests on Py3.9...
...
After many tries I just don't think it's worth it to make the tests work
since the repl UX in `pdbpp` is so unreliable in the latest release and
honestly we're trying to go 3.10+ ASAP.
Further,
- entirely drop the pattern matching inside the `do_ctlc()` for now.
- add a `subactor_error` parametrization that catches a case that
previously caused a hang (when you use 'next' immediately after the
first crash/debug lock (the fix was pushed just before this commit).
2022-08-02 12:17:28 -04:00
Tyler Goodlet
cb0c47c42a
Try disabling prompt expect in ctrlc cases
2022-08-02 12:17:28 -04:00
Tyler Goodlet
808d7ae2c6
Add timeout guard around caller side context open
2022-08-02 12:17:28 -04:00
Tyler Goodlet
4779badd96
Add before assert helper and print console bytes on fail
2022-08-02 12:17:28 -04:00
Tyler Goodlet
6bdcbdb96f
Do child decode on `do_ctlc` exit?
2022-08-02 12:17:28 -04:00
Tyler Goodlet
adbebd3f06
Add ctl-c to remaining tests, only expect prompt in non-CI
2022-08-02 12:17:28 -04:00
Tyler Goodlet
a2e90194bc
Add ctl-c case to `subactor_breakpoint` example test
2022-08-02 12:17:28 -04:00
Tyler Goodlet
617d57dc35
Disable ctl-c prompt checks again
2022-08-02 12:17:28 -04:00
Tyler Goodlet
dadd5e6148
Add back prompt expect via flag
2022-08-02 12:17:28 -04:00
Tyler Goodlet
a72350118c
Test: drop expect prompt
2022-08-02 12:17:28 -04:00
Tyler Goodlet
70ad0f6b8e
Add longer delays around ctl-c loop, don't expect longlist
2022-08-02 12:17:28 -04:00