-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Sphinx hangs when making a clone #7473
Comments
comment:2
What if we run |
comment:3
What if we capture proc = subprocess.Popen([cmd], stdout=subprocess.PIPE, shell=True) ? Or do the opposite? For example, I'll try to take a closer look soon. |
comment:4
I've noticed that switching among existing branches via |
comment:5
It strange that cd SAGE_ROOT/devel
ls -lsFi `find -name environment.pickle`|grep ref shows the clones to have different Sphinx pickles --- their inodes (the first column on sage.math) are distinct. Compare with ls -lsFi `find -name steenrod_algebra.html`
ls -lsFi `find -name steenrod_algebra.py`|grep -v build But aren't the pickles hard linked? |
comment:6
I think this happens because |
Attachment: trac_7473-sage_builder.patch.gz Make pickle saving preserve the hard link. Apply to sage repo. |
Don't capture Sphinx clone output. This may prevent the hang. Apply to scripts repo. |
comment:7
Attachment: trac_7473-scripts_clone.patch.gz I think the attached patch for the scripts repository prevents the hang when cloning. The sage repository patch should ensure that we usually keep just one copy of the reference manual's But I'm still not sure about how to avoid rebuilding nearly all of the manual when cloning or after trivially switching branches. The latter may be a separate problem. |
Attachment: trac_7473-scripts_clone_v2.patch.gz Use |
Author: Mitesh Patel |
comment:8
Version 2 of the scripts repo (i.e., According to its documentation, I don't know if |
comment:9
#7407 provides the following link, saying that it describes the only options to "cp" which should be used: http://www.opengroup.org/onlinepubs/009695399/utilities/cp.html Reading this, I wonder if we should use "cp -pR" instead of "cp -pr". I made a new clone, applied the patch, built the documentation, and then made another clone. The new cloning process took 2-3 minutes on my iMac running OS X 10.6, and when done the documentation did not need to be rebuilt again. On sage.math, the same thing happened, with the cloning process taking about the same amount of time. In both cases, updating the modification times was quick. Also in both cases, using "cp -pR" worked just as well as "cp -pr". Shall we take the cited web page as enough evidence that this is cross-platform? And should we change "r" to "R"? |
Attachment: trac_7473-scripts_clone_v3.patch.gz Use cp -pR for auto-generated .rst files. Apply only this patch to the scripts repo. |
comment:10
Version 3 uses |
comment:11
nthiery, ncohen: If you have a chance, could you let us know if the patches above work? In particular,
If this is yet another false positive, I apologize. |
comment:12
I'm happy with it (Mac OS X 10.6 and sage.math). On what other platforms does it need to be tested? |
comment:13
I tried it on my Fedora ( built from sources ) and it applies fine and does its job ( I'm not stuck anymore when cloning ) ! ( Even though I can not control your script as I have no idea of how Sage works at this level... ) :-) Thank you for your patch !!! Nathann |
comment:14
Replying to @qed777:
I tried sage -combinat install (which calls clone), and it worked smoothly (ubuntu 9.4, sage 4.2.1, macbook pro)! Thanks! |
Reviewer: John Palmieri |
comment:15
On the grounds that this is an improvement on some systems and I hope isn't any worse on any systems, I'm giving this a positive review. I really would like this to be merged, because cloning is so painful right now. |
Merged: sage-4.3.alpha1 |
comment:17
It seems that the sage repo patch didn't make it into 4.3.alpha1. This patch will prevent some unnecessary doc rebuilds when changing branches. |
comment:18
Oops, I must only seen the last patch. I'll add it first thing to the next release. |
Changed merged from sage-4.3.alpha1 to none |
comment:21
Thanks! |
comment:22
Merged trac_7473-sage_builder.patch in 4.3.rc0. |
Merged: sage-4.3.rc0 |
This is a follow-up to #6187.
See sage-devel, sage-release, #sage-devel log.
CC: @jhpalmieri @nthiery @nathanncohen
Component: documentation
Author: Mitesh Patel
Reviewer: John Palmieri
Merged: sage-4.3.rc0
Issue created by migration from https://trac.sagemath.org/ticket/7473
The text was updated successfully, but these errors were encountered: