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
Ignore failure in setrlimit on Cygwin #23979
Comments
comment:2
Do you know why |
comment:3
I'd like to understand why it doesn't work and check that condition instead of blindly ignoring exceptions. Or, if that doesn't work, only ignore the exception on Cygwin. |
comment:4
|
comment:5
I could raise an exception if not on Cygwin. It just seems to me though like something that should fail quietly, or at most with a warning. It shouldn't just crash the test runner if |
comment:6
This is only for the doctester, not for running Sage itself. When testing, it is fair to be more strict. You typically want to know when something goes wrong, even if that thing is rather innocent. So yes, I would be happier to ignore the exception only on Cygwin. |
comment:7
Right but what I'm saying is the behavior of setting the memory limit to 3300 MB is pretty arbitrary and not something most people running the doctester is even going to be aware is happening, so if for some reason it fails it's not very nice if the doctester just crashes. Another thing that's unfortunate is that there's no way to distinguish a Well, we can try squelching it just in Cygwin for now. I'll be curious to see if this causes problems on any other platforms. Perhaps it won't. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: Jeroen Demeyer |
Changed branch from u/embray/tests/rlimit to |
Fixes bug introduced by #23748 that makes it impossible to run the tests on Cygwin.
CC: @jdemeyer
Component: porting: Cygwin
Author: Erik Bray
Branch/Commit:
90507bf
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/23979
The text was updated successfully, but these errors were encountered: