-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare for Dune integration #323
Comments
Hey @aantron, I was interested in this (and it looks like dune 2.6.0 with that feature was released some time ago). What is the status of bisect and dune (an update to the README and instructions would be highly welcome). Thanks :) |
@hannesm It is currently waiting for the release of ocaml/dune#3535 :) |
thanks @aantron, I was not aware of that PR -- looking forward that it finally is getting there :) |
friendly ping; AFAICT that has been merged and is part of the dune 2.7.0 release merged recently to opam-repository. thanks :) |
I've gotten the instrumentation integration working, but it requires dune 2.7. What are the opinions regarding this new requirement to enable this integration? |
If the change is backwards-compatible, in that the existing older integration method still works, we can ask users to require |
Yes, that's what I meant. While the previous integration still works, the new integration requires ppx_bisect to be built using at least dune 2.7.0, it doesn't matter if the new or the old integration is used. |
Is there a change to the code of Bisect that requires Dune 2.7.0 even if the old integration is being used? If yes, then we have to require Dune 2.7.0 in Bisect. If not, we can ask the user to require Dune at least 2.7.0 in the README if they are using the new integration. If that becomes a pain, we can still move the constraint up to Bisect later. However, in the past, it has seemed to work well, because we just put the Dune dependency into the example of how to depend on Bisect as well, i.e.
|
Yes. It's the field in the ppx's dune that marks it as instrumentation.
|
Ah right, then constraint in Bisect's |
Thanks for continuing the work! I feel bad I dropped the ball there. |
Ok, this is now in |
@hannesm I just need to get around to fixing some of the other issues, and then do the release. It's definitely coming up :) |
This is now in opam (and npm) in Bisect_ppx 2.5.0. I've updated all the starter repos and the README. |
ocaml/dune#57 has an initial solution. Among other issues, coverage output and/or source code are likely to appear in
_build/coverage
rather than_build/default
, so the Dune integration on the Bisect end should be slightly adjusted to search for files in directories other than_build/default
.Outstanding upstream issues:
Dune + Bisect integration runs tests twice ocaml/dune#3472Then:
Adjust default coverage search paths--conditional
The text was updated successfully, but these errors were encountered: