Commit graph

111 commits

Author SHA1 Message Date
Simon Cruanes
854c3b819b
update tests and benchs 2024-09-25 22:17:31 -04:00
Simon Cruanes
3b8b4d040a
test: move t_chan_train to effect-based tests 2024-09-25 21:32:59 -04:00
Simon Cruanes
9b3c75124e
simon/move to picos (#30)
* feat: depend on picos, use picos.exn_bt

* refactor: remove dla

* non optional dependency on thread-local-storage

it's a dep of picos anyway

* wip: use picos computations

* disable t_fib1 test, way too flaky

* feat `fut`: wrap picos computations

* detail in fut

* gitignore

* refactor core: use picos for schedulers; add Worker_loop_

we factor most of the thread workers' logic in `Worker_loop_`,
which is now shared between Ws_pool and Fifo_pool

* github actions

* feat fut: add `on_result_ignore`

* details

* wip: port to picos

* test: wip porting tests

* fix fut: trigger failing to attach doesn't signal it

* fix pool: only return No_more_tasks when local and global q empty

* format

* chore: fix CI by installing picos first

* more CI

* test: re-enable t_fib1 but with a single core fifo pool

it should be deterministic now!

* fixes after reviews

* bump minimal OCaml version to 4.13

* use `exn_bt`, not `picos.exn_bt`

* feat: optional dep on hmap, for inheritable FLS data

* format

* chore: depend on picos explicitly

* feat: move hmap-fls to Fiber.Fls

* change API for local FLS hmap

* refactor: move optional hmap FLS stuff into core/task_local_storage

* add Task_local_storage.remove_in_local_hmap

* chore: try to fix CI

* format

* chore: CI

* fix

* feat: add `Fls.with_in_local_hmap`

* chore: depend on hmap for tests

* fix test for FLS

use the inheritable keys

* chore: CI

* require OCaml 4.14 :/

* feat: add `moonpool.sync` with await-friendly abstractions

based on picos_sync

* fix: catch TLS.Not_set

* fix: `LS.get` shouldn't raise

* fix

* update to merged picos PR

* chore: CI

* fix dep

* feat: add `Event.of_fut`

* chore: CI

* remove dep on now defunct `exn_bt`

* feat: add moonpool-io

* chore: CI

* version constraint on moonpool-io

* add Event.Infix

* move to picos_io
2024-09-04 12:04:27 -04:00
Simon Cruanes
a127a4131a
test 2024-04-02 12:51:57 -04:00
Simon Cruanes
83ada948aa
test: do not run lwt tests on mac OS for now 2024-04-02 12:51:57 -04:00
Simon Cruanes
a1814cadb4
lwt test 2024-04-02 12:51:57 -04:00
Simon Cruanes
cf6b20a979
update fiber tests to try to be more deterministic 2024-04-02 12:51:57 -04:00
Simon Cruanes
ef6811e062
do not run some tests on mac OS 2024-04-02 12:51:57 -04:00
Simon Cruanes
8e240357b5
update test outputs 2024-04-02 12:51:57 -04:00
Simon Cruanes
80e8f84703
test 2024-04-02 12:51:57 -04:00
Simon Cruanes
a99c0775e2
format dune files 2024-04-02 12:51:57 -04:00
Simon Cruanes
81b272e685
fix test 2024-04-02 12:51:57 -04:00
Simon Cruanes
ba1876f957
remove use of 5.1 only function 2024-03-21 17:02:03 -04:00
Simon Cruanes
8e6340846a
ensure that tests belong to the correct package 2024-03-21 10:32:41 -04:00
Simon Cruanes
54f6db0b42
test: add package 2024-03-15 00:02:42 -04:00
Simon Cruanes
9cb10a79e6
renaming 2024-03-04 21:38:50 -05:00
Simon Cruanes
c878b1a198 test for Moonpool_fib.main 2024-03-04 20:49:34 -05:00
Simon Cruanes
5817a8aee7 revert nurseries 2024-03-04 20:49:34 -05:00
Simon Cruanes
4325fda345 update tests 2024-03-04 20:49:34 -05:00
Simon Cruanes
62770a87b5
try to make test more deterministic 2024-02-28 00:18:27 -05:00
Simon Cruanes
22f43670a7
update tests 2024-02-27 22:32:14 -05:00
Simon Cruanes
c975634837
test: update fiber tests 2024-02-27 22:13:52 -05:00
Simon Cruanes
bd7a48a4b4
make test slightly less heavy 2024-02-27 21:30:37 -05:00
Simon Cruanes
dac1450d54
update tests 2024-02-27 21:25:07 -05:00
Simon Cruanes
55b975017f
hash server test: use artificial, pre-generated data
this way the test won't be broken every time we change the source
code(!)
2024-02-27 21:20:19 -05:00
Simon Cruanes
4cdec87aea
add some tests for fiber 2024-02-21 00:53:24 -05:00
Simon Cruanes
cb8668f3dc
simplify test 2024-02-20 22:21:11 -05:00
Simon Cruanes
a6d6eec6c7
CI: make test mroe deterministic, run tests with all depopts 2024-02-20 20:35:54 -05:00
Simon Cruanes
a8f874e4ab
test 2024-02-20 20:26:37 -05:00
Simon Cruanes
101d15f874
fix race conditions in tests 2024-02-20 19:57:58 -05:00
Simon Cruanes
d94a197381
try to fix tests 2024-02-20 18:48:10 -05:00
Simon Cruanes
b58a55536c
do not require libev 2024-02-20 18:43:53 -05:00
Simon Cruanes
fa5ae97b6d
restrict moonpool-lwt tests to 5.0 2024-02-20 18:39:27 -05:00
Simon Cruanes
f68f27a4a4
echo server tests for moonpool-lwt 2024-02-20 18:34:35 -05:00
Simon Cruanes
004f5fc82b
test: add a test for the hash server+client 2024-02-20 18:25:18 -05:00
Simon Cruanes
ed6db54b1a
update tests 2024-02-17 12:40:37 -05:00
Simon Cruanes
283a1cb118
test: add hash server/client
the protocol: send a filename per line over TCP, and the server
replies with the filename and its content's hash
2024-02-17 12:40:36 -05:00
Simon Cruanes
e789cbe4f7
fix echo_client to actually do its work 2024-02-17 12:40:36 -05:00
Simon Cruanes
bd00e0838a
test: use async spans for lwt echo server 2024-02-17 12:40:36 -05:00
Simon Cruanes
4ff45df7e7
basic echo client for moonpool-lwt 2024-02-17 12:40:35 -05:00
Simon Cruanes
38b84e0c03
test: unix libev to make sure we handle more than 1024 simultaneous
connections in echo server
2024-02-17 12:40:35 -05:00
Simon Cruanes
0e9d358cb5
basic echo server for moonpool-lwt 2024-02-17 12:40:35 -05:00
Simon Cruanes
cf8555bcec
revert: remove name on futures and tasks
async tracing will be more robust, and is enabled by
task local storage
2024-02-17 12:40:02 -05:00
Simon Cruanes
e1219ade54
details in test 2024-02-11 16:40:14 -05:00
Simon Cruanes
223f22a0d9
breaking: move fork-join into sub-library moonpool.forkjoin 2024-02-11 16:39:44 -05:00
Simon Cruanes
cc8860c6e3
split into moonpool.private and moonpool; format; remove DLA 2024-02-11 16:39:43 -05:00
Simon Cruanes
dd9206b5b8
use new tracing support in tests and benchs 2024-01-30 16:12:03 -05:00
Simon Cruanes
16663651d6
update test 2023-11-24 23:12:20 -05:00
Simon Cruanes
b58041153a
add another test 2023-11-24 22:56:33 -05:00
Simon Cruanes
989c012f77 fix warnings 2023-11-08 12:02:13 -05:00