-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
Do not fail when java
is available but jmol
is not.
#36769
Conversation
Would you mind rewriting it to go through |
I don't see what problem would that solve. |
It could make the feature |
And what problem would that solve? |
Path to #31027? |
Three years old and counting. In fact jmol is optional already. I don't have it installed and nothing ever failed for this reason, until today (something installed some java for some reason; sage still works, is only doctesting that fails). I'd rather this PR be merged now (ideally for 10.2) and whoever wants can rework this as a feature for #31027. The check is very easy: if you run |
I don't have time to test this at the moment, but you may want to look at what's going on in @tobiasdiez's conda workflow here |
c08bd58
to
3f433e2
Compare
It seems just stdout or stderr output. I'll just silence the In fact, it's a bit overkill, just checking if the jar file exists is enough to solve my issue, so if the current version doesn't work I'll just do that. |
3f433e2
to
b1e5577
Compare
The failure is an unrelated timeout. Something very strange is happening, I was able to kind of reproduce this as follows:
Box is 8 core / 8 thread, otherwise unloaded. I did 16 threads to stress it. Testing this file just once takes ~16 seconds so he first 15 jobs are "kind of" reasonable. The last one is not, and is close to the 300s timeout. I fixed the seed, but maybe this test has another random not controlled by seed and is very slow sometimes. I think this supports doubling the "hard" timeout as in #36223 (hi @orlitzky), but also having a soft timeout that will keep testing BUT COMPLAIN LOUDLY (not just a warning). And maybe making the soft timeout smaller in general except a a few specific files can increase the soft timeout. The point is, for a file that normally takes 16s, it is very bad that sometimes takes > 300s. I was about to give compliments for CI getting better, and then this... 🤣 |
Quoting #36031 (comment):
|
This should be an easy review. All this is doing is, in addition to check java is available, also check the jmol jar file is available using |
I couldn't care less about either
Just merge this PR in #36779. |
If it weren't already positively-reviewed, I would, but I prefer not to annoy innocent bystanders by undoing their already-completed work. |
There, I fixed that for you. |
If java is not available, sagemath will fallback to tachyon gracefully. When java is available, sagemath will assume jmol is available and error if not. This commit fixes the issue by implementing a method `is_jmol_available()` to replace `is_jvm_available()`.
b1e5577
to
c7670d0
Compare
Documentation preview for this PR (built with commit c7670d0; changes) is ready! 🎉 |
Not in 10.2, not in 10.3.beta0, not in 10.3.beta1. Is priority "blocker" good for anything? |
…not. If java is not available, sagemath will fallback to tachyon gracefully. When java is available, sagemath will assume jmol is available and error if not. This commit fixes the issue by implementing a method `is_jmol_available()` to replace `is_jvm_available()`. ### 📝 Checklist - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [x] I have created tests covering the changes. URL: sagemath#36769 Reported by: Gonzalo Tornaría Reviewer(s):
I think the only time when Volker's script takes the priority label into consideration is during the release candidate phase. Otherwise it's done in numerical order by PR numbers. That's certainly order-theoretically sound. |
It was only needed for Cygwin (to handle path conversions), and we're dropping Cygwin support for real now. Depends on sagemath#36769 URL: sagemath#36779 Reported by: Michael Orlitzky Reviewer(s): Dima Pasechnik
If java is not available, sagemath will fallback to tachyon gracefully.
When java is available, sagemath will assume jmol is available and error if not. This commit fixes the issue by implementing a method
is_jmol_available()
to replaceis_jvm_available()
.📝 Checklist