#14055: Fix sage-cleaner
----------------------------------+-----------------------------------------
       Reporter:  jdemeyer        |         Owner:  leif                        
 
           Type:  defect          |        Status:  needs_review                
 
       Priority:  critical        |     Milestone:  sage-5.9                    
 
      Component:  scripts         |    Resolution:                              
 
       Keywords:  orphans         |   Work issues:                              
 
Report Upstream:  N/A             |     Reviewers:  John Palmieri, Leif 
Leonhardy
        Authors:  Jeroen Demeyer  |     Merged in:                              
 
   Dependencies:                  |      Stopgaps:                              
 
----------------------------------+-----------------------------------------

Comment (by jhpalmieri):

 I am having a problem with this patch, but I don't know why. I am
 repeatedly running `sage -tp 2 devel/sage/sage/homology/s*`. Without the
 patch applied, everything is fine. With the patch, after the first
 successful run, I get this (I also removed the `&>/dev/null` after the
 call to `sage-cleaner` in `spkg/bin/sage`):
 {{{
 $ sage -tp 2 devel/sage/sage/homology/s*
 SAGE_TMP_ROOT = /Users/palmieri/.sage/temp/jpalmieri538
 Starting sage-cleaner
 Checking PIDs []
 sage-cleaner is finished
 Running doctests with ID 2013-03-20-11-16-30-613ad8e5.
 Sorting sources by runtime so that slower doctests are run first....
 Doctesting 3 files using 2 threads.
 sage -t devel/sage/sage/homology/simplicial_complex_morphism.py
     [187 tests, 0.3 s]
 sage -t devel/sage/sage/homology/simplicial_complex_homset.py
     [49 tests, 0.1 s]
 sage -t devel/sage/sage/homology/simplicial_complex.py
     Time out after testing finished
 **********************************************************************
 Tests run before process timed out:

 ...

 **********************************************************************
 ----------------------------------------------------------------------
 sage -t devel/sage/sage/homology/simplicial_complex.py  # Time out after
 testing finished
 ----------------------------------------------------------------------
 Total time for all tests: 26.9 seconds
     cpu time: 0.4 seconds
     cumulative wall time: 0.5 seconds
 }}}
 Without the patch, the file `simplicial_complex.py` passes tests in under
 7 seconds; cpu time and cumulative wall time are each around 6 or 7
 seconds. With the patch, the time out is pretty consistent for each run
 after the first. I'm seeing this on two different OS X 10.8 machines.

 Also, if I delete the directory `DOT_SAGE/tmp`, then the pidfile won't get
 written at all during doctesting or when running sage. What script is
 responsible for creating that directory? If this directory is missing, I
 don't get the time-out any more, so the problem is really with sage-
 cleaner.

 On the bright side, it seems to be cleaning out the appropriate files,
 directories, and processes.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14055#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to