-
Notifications
You must be signed in to change notification settings - Fork 129
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
Tests in ToricVarieties/toric_blowups.jl
depend on order of rays(normal_fan(simplex(2)))
#4348
Comments
To my knowledge, there should not be any randomness involved. I hope to investigate more shortly (a.k.a. in the next couple of days - latest by beginning of the coming week). If you feel this is more urgent, please let me know and I will prioritize this. |
It does not seem to be randomness but due to some side-effects from But it would also be better if the blow-up testcase would not rely on a specific order of the rays of some normal fan: julia> rays(normal_fan(Oscar.simplex(2)))
3-element SubObjectIterator{RayVector{QQFieldElem}}:
[1, 0]
[-1, -1]
[0, 1] Without the side-effect from the julia> rays(normal_fan(simplex(2)))
3-element SubObjectIterator{RayVector{QQFieldElem}}:
[1, 0]
[0, 1]
[-1, -1] and then the testcase succeeds. |
@benlorenz I will be happy to update the blowup tests so that they do not rely on the order of the rays used. |
For now #4351 seems to fix the errors, and I will rebase it to master to get it merged. But adjusting the test would still be good. To reproduce the changed order you can do the following: In a fresh julia session directly after loading Oscar run julia> pt = convex_hull([0 1 0]);
julia> Polymake.prefer("beneath_beyond") do
affine_hull(pt)
end; then the rays should print like this julia> rays(normal_fan(simplex(2)))
3-element SubObjectIterator{RayVector{QQFieldElem}}:
[1, 0]
[-1, -1]
[0, 1] and then julia> Oscar.test_module("test/AlgebraicGeometry/ToricVarieties/toric_blowups.jl"; new=false,tempproject=false) should fail. If you run the |
ToricVarieties/toric_blowups.jl
ToricVarieties/toric_blowups.jl
depend on order of rays(normal_fan(simplex(2)))
Thanks for looking into this @benlorenz! |
I have seen some test failures there today on CI, but only some of the jobs failed there, e.g. see
Do the tests here or the functions they test employ any kind of randomness? If yes, maybe the tests need to be adapted a bit like e.g. in #4153 by @benlorenz .
failure log:
pinging @HereAround since this is about toric varieties
The text was updated successfully, but these errors were encountered: