-
Notifications
You must be signed in to change notification settings - Fork 312
evalv3: empty disjunction regression involving let fields #3801
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
Comments
Note that I left the reproducer relatively large so that it retains much of the original structure and logic, so that it can act as a "full" reproducer for both the "conflicting values" and "non-concrete value" errors. |
FTR, here is a reduction:
|
The reduction I shared here was resolved by https://review.gerrithub.io/c/cue-lang/cue/+/1211647, but Judson's original code still fails. I have reduced the regression once again after your fix:
|
I reduced it to this:
The thing it has in common with the let variant is that most of the intermediate values are marked as "non-rooted". |
Issue #3801 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: Ia0b24e3b7585b9b03bf9a89917c5dc31333cf803 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1211646 Reviewed-by: Daniel Martí <[email protected]> Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
The bug was caused because lets were treated as "too special" compared to normal fields. By removing some of this exclusion, this bug goes away. Issue #3801 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I975c47de1a0ee51678e402534c2a576d6b180748 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1211647 Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
Structure sharing for non-rooted values resulted in partially evaluated values. We disable it for now and revisit the issue later. Issue #3801 Fixes #3832 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: Ie520f9141dba17706628c40a3540335b8dbc98c4 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1211742 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
As of 5d2da07, this gives:
Reduced from @nyarly's project in Unity.
The text was updated successfully, but these errors were encountered: