-
Notifications
You must be signed in to change notification settings - Fork 307
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
evalv3: "conflicting values" error regression when a disjunction involves missing fields #3600
Comments
Slightly smaller testscript:
|
This issue is fixed by https://cuelang.org/cl/1206284. However, the above code still outputs a somewhat misleading value for I'll keep this open to address these issue. |
V3 used CombineErrors to combine errors from the various disjuncts into a single Bottom value. CombineErrors takes the code of the worst error. However, for disjunctions we actually want the code of the least worst error. This change makes V3 use the same error creation logic as V2, using some wrapper code. As a result, V3 now also produces the "empty disjunction" messages which were previously missing. Note that now we have the "empty disjunction" messages, we can see that the reported count of failed disjunctions is somewhat off in some tests. diff/todos are added where appropriate. Issue #3600 Fixes #3581 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I0ca92c190976d51fffddac6010e11a88505e876b Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1206284 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
I can no longer reproduce the aforementioned issues. They do occur in another Issue, so at least they are still reproducible elsewhere. Note that the original issue was already fixed. |
As of c29fd02:
The config is incomplete, as
params.missing
is not a field that exists, but still - I think v2 was correct in not reporting the "conflicting values" errors which do not matter here.The text was updated successfully, but these errors were encountered: