Add SMTZilla training scripts#542
Conversation
98635a3 to
d7870e6
Compare
|
In fact it should be ready for a review. The only annoying thing is that dune-site seems to require EDIT: The z3 CI failure is unrelated to this PR AFAIK. |
filipeom
left a comment
There was a problem hiding this comment.
In fact it should be ready for a review. The only annoying thing is that dune-site seems to require dune build to work (dune exec alone does not suffice), which is not ideal, but I don't know if there is a way to fix that.
Yeah you have to at least do dune build @install before running dune exec. Not exactly sure why this happens but I'm used to it in ECMA-SL and other places where I've used dune-site.
EDIT: The z3 CI failure is unrelated to this PR AFAIK.
This one is annoying, seems something is turning on backtraces. Can you let me check something? I'll approve afterwards
Yes, I am not sure what, but I think we had something of the kind in owi, where backtraces were turned on somehow even if we do not do it explicitly (cc @redianthus ), but it's probably not related to this one, because AFAIK this did not happen before this PR, right?
Of course! There is no rush. |
|
What is this file misc/out1s.bin ? It seems unused. Do we really need to have it in the repository ? |
Yes, still an issue I think: OCamlPro/owi#455 |
It's an example of a marshalled file of queries (but it should've been renamed ...). |
OK, so, maybe we can have a smaller one if it's only for illustration purpose? (16MB of marshaled data is a lot!) Maybe we could avoid having a file at all and show how to generate it in the documentation ? |
filipeom
left a comment
There was a problem hiding this comment.
I'm approving as I'm satisfied with the PR at this time. But there seems to be a couple of open issues for you to discuss.
I'll try to summarize these below:
- #542 (comment): Removal of
requirments.txt - #542 (comment): Review of python code
- #542 (comment): Removal or reduction in size of:
misc/out1s.bin - #542 (comment): Backtrace making CI fail
The only one that may actually block merging is point 4. But maybe we can promote the file for the time being. Alternatively, I can always bypass merge protection rules if we don't want to forget to investigate the issue.
|
Done for 1 and 3. I'll try to investigate 4 before merging, the code changes are not significant so it should not be hard to find the source, but it is pretty surprising. |
I've also been doing a bit of investigation myself. It seems that |
|
I'm happy to merge, knowing that this is a fundamental issue with dune-site. We can address it later, although I'm not sure if it introduces a performance overhead. Maybe we can follow-up on geneweb/geneweb#2473 to see if there is something better 😅 |
|
Well spotted! I'm wondering if the culprit is dolmen (and base which seems to be a transitive deps of dolmen) : https://github.com/Gbury/dolmen/blob/master/src/bin/options.ml#L394-L398 |
|
Thanks for the information @filipeom
I think dolmen was already used by smtml no? (Unless it is the dolmen binary itself that is now linked and which wasn't before). Otherwise, we could simply turn off backtraces by hand on our side? Though it would probably confuse anyone who uses smtml, but it can be on the binary side only. Or it can be command line option like
I still haven't had the time to look at the machine learning stuff, maybe the end of this week or next week (we should be able to get a review on it by next it). I don't have a strong opinion I am ok with merging a first version now or waiting a bit. |
…ad of `Error (`Msg ...)`
6bcfddc to
bb1e65f
Compare
My understanding is that since Dolmen uses the Base/Core libraries, and these turn backtraces on by default, we transitively get backtraces due to
I'm also ok with merging this as is. It can be reviewed/imporoved later and it would make accepting changes in subsequent PRs easier. |
Alright then, I'll promote the test and merge! |
Great thanks! 😃 |
This PR is rebased on #540 and should be merged after it. I created a separate PR to make reviewing easier.
This needs a bit more testing, which I will do later and then mark it as ready for review.
I notably don't know if using
dune-sitefor this is overkill, but afaik that's the right/safe way to do it.Note: The python code is a reimplementation of code originally written by @felixL-K