-
Notifications
You must be signed in to change notification settings - Fork 16
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
cargo test doesn't check against conjure #508
Comments
I presume you mean Conjure? When you run ACCEPT=true, it should save the expected solutions to the file, checking these against Conjure. When testing our model we compare our solutions to these. As they have already been checked by Conjure during code-gen, we shouldn't need to do so again? |
The fact that the integration tests pass but conjure fails is definitely a bug though. We have started having issues with CI tests failing for no reason, in particular macos-latest, which might be related |
I agree we shouldn't run conjure every time we run integration tests since the output shouldn't change. If there is a case where it did, that would definitely be a bug (or some sort of a major conjure version upgrade, but that didn't happen) @YehorBoiar can you explain what's happening? How can we reproduce the issue? |
All I can say without looking too much into it is that
Something is going wrong, not sure what. |
I know that solution isn't correct, but I want to point out a separate issue. We still rewrite from generated model into an expected model even though the test isn't being passed. I was expecting that when we pass an |
wait a minute. conjure generating an incorrect solution would break our flow. why do we get a=3 as a solution from conjure? can you check |
It seems there's a problem with the behavior of the
The core issue is that Is this the intended behavior of the |
I see, thanks for the investigation. It sounds like we should only accept the outputs if the tests pass, indeed. Do you want to work on a fix? |
I can do that |
Just had a chat with Felix and he gave me a good idea. Should we just create a separate flag |
Conjure-oxide checks solutions against savile row only when ACCEPT=true is passed, but shouldn't it always do that?
I was thinking that because in PR #435 I currently have a couple of solutions that don't match conjure, but it shows that all tests are being passed. It could lead to some problems in future PRs. However, I'm not sure about it, what do you think? @niklasdewally
The text was updated successfully, but these errors were encountered: