Skip to content
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 seem to hang (without being run) sometimes, using ninja #3458

Closed
mikestillman opened this issue Sep 5, 2024 · 5 comments · Fixed by #3536
Closed

Tests seem to hang (without being run) sometimes, using ninja #3458

mikestillman opened this issue Sep 5, 2024 · 5 comments · Fixed by #3536
Labels
threads Macaulay2/system

Comments

@mikestillman
Copy link
Member

On my branch complexes-for-1-24-11, I run all of the tests, using ninja check-packages. But a couple of packages seem to hang (without actually running M2 heavily): TerraciniLocus, and SpecialFanoFourfolds.

This is with a cmake build, on mac apple silicon, runnning Sonoma 14.6.1.

If I simply do ninja -k0 check-TerraciniLoci, it seems to hang, not running any examples. If inside of M2, I type check "TerraciniLoci", it finishes all tests in a second or two.

Was this a know issue that has been fixed recently? I might need to merge development into my branch? (Although it will soon, hopefully, be merged into development)

@d-torrance
Copy link
Member

TerraciniLoci uses threads (via the FastMinors package), so maybe that's the problem?

@mikestillman
Copy link
Member Author

How are running the package tests handled on github?

@d-torrance
Copy link
Member

I think the GitHub cmake builds run M2 --check 3.

I'm wondering if capture is causing problems for the TerraciniLoci tests? Does the following help?

--- a/M2/Macaulay2/packages/TerraciniLoci.m2
+++ b/M2/Macaulay2/packages/TerraciniLoci.m2
@@ -182,6 +182,7 @@ doc ///
 -- just the faster (< 1s) examples
 
 TEST ///
+-- no-capture-flag
 -- rational normal curves
 needsPackage "Resultants"
 assertEmptyTerracini = (r, f) -> assert Equation(terraciniLocus(r, f), 1)
@@ -198,6 +199,7 @@ assert Equation(terraciniLocus(2, veronese(1, 3), Threads => 2), 1)
 ///
 
 TEST ///
+-- no-capture-flag
 -- del pezzo surfaces
 delPezzoSurface = t -> (
     kk := ZZ/32003;
@@ -225,6 +227,7 @@ assert Equation(
 ///
 
 TEST ///
+-- no-capture-flag
 -- veronese
 needsPackage "Resultants"
 
@@ -232,6 +235,7 @@ assert Equation(terraciniLocus(2, veronese(2, 3)), 1)
 ///
 
 TEST ///
+-- no-capture-flag
 -- segre-veronese
 
 segreVeronese = (n, d) -> (

@mikestillman
Copy link
Member Author

mikestillman commented Sep 5, 2024 via email

@mahrud
Copy link
Member

mahrud commented Sep 5, 2024

Perhaps a clear error should be signaled whenever a thread-related function (e.g. schedule) is called but --no-threads is given.

@mahrud mahrud added the threads Macaulay2/system label Sep 5, 2024
@mahrud mahrud linked a pull request Oct 28, 2024 that will close this issue
mahrud added a commit to mahrud/M2 that referenced this issue Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
threads Macaulay2/system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants