-
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
net.IP constraint takes too long or deadlocks. #3442
Comments
Thanks for raising this issue. Are you able to provide a full reproducer for this issue? If your project is private, you can also add it to Unity: https://cuelabs.dev/unity/ Have you tried the new evaluator by any chance? Plenty of work remains to be done to make it the default, but its main aim is to allow significantly better performance in cases like the one you describe - the old evaluator tends to re-do a lot of work. In your case, the old evaluator is likely causing many repeated calls to |
I tried with cue v0.10 & v0.11-alpha.1 with some timing info on an M3 Max MBP on one of the several exports we do... cue v0.10 w/o & net.IP
cue v0.11-alpha.1 w/o & net.IP
cue v0.10 w/o &net.IP, with CUE_EXPERIMENT=evalv3 - CTRL-C after ~1min cue v0.10 w/ &net.IP
cue v0.11-alpha.1 w/ &net.IP
I'll upload unity stuff next week. |
cue v0.11-alpha.1 w/ &net.IP, with CUE_EXPERIMENT=evalv3 -CTRL-C after running over the weekend.
|
I finally understand what unity is and I can't install that in our org/repo |
What version of CUE are you using (
cue version
)?But I also tried it with master from sometime last week and had the same issue.
Does this issue reproduce with the latest stable release?
Yes.
What did you do?
I have some defines like this in a module that are then used in another module
#Container is then used in the other module a bunch of times.
When
static_ip?
has the& net.IP
constraint applied thecue export
we run in our Makefile effectively takes forever and never finishes. I waited minutes and gave up. Commented out it takes ~5s max ... usually more like 1-2 seconds.What did you expect to see?
The
net.IP
constraint applied and the export completing.What did you see instead?
cue export
essentially hung.The text was updated successfully, but these errors were encountered: