Add STM_domain_eio and Lin_domain_eio libraries to run multicore tests with Eio #581
Add STM_domain_eio and Lin_domain_eio libraries to run multicore tests with Eio #581lyrm wants to merge 6 commits into
STM_domain_eio and Lin_domain_eio libraries to run multicore tests with Eio #581Conversation
and add new packages for eio-specific libraries instead.
|
Wow thanks for the contribution! 🥳 I've had a quick look and here are a bunch of non-organized impressions:
Thanks again! 😃 |
|
Hi! I'd like to help merging this patch as I also want to use qcheck-stm with Eio (and why not with Gospel later). My patch is here: lyrm#1
I've added
Do you have guidelines on how to test these constants ?
I removed the dependency to eio in multicoretests.
Happy to work on this in a follow up PR.
This makes the code specific to the Eio packages very small and easy to maintain. I'm not sure the shared code makes the less clear. This code is very specific and not easy to write (I think) so I don't think having twice as many is good. |
This PR adds
qcheck-stm-eio.domainandqcheck-lin-eio.domainlibraries that provide Eio-based alternatives to the existing Domain-based libraries, spawning parallel tasks viaEio.Domain_managerinstead ofDomain.spawndirectly.This is needed for libraries built on Eio, such as Irmin and Lavyek.
Below, some technicals decisions that need discussions.
Dune rules to cp files
The shared code between
STM_domain/STM_domain_eioandLin_domain/Lin_domain_eiois factorised into*_commonmodules to minimise code duplication. To avoid creating a new library for each of these files, I added a dune rule to copy/paste the file. There may be a better way to do that.New packages
I added two packages (
qcheck-stm-eio.domainandqcheck-lin-eio.domain) instead of addingeioas a dependency for bothqcheck-linandqcheck-stm packages.TODO
qcheck-stm.domain_eioqcheck-lin.domain_eio*_eiolibraries to the CI checks.