On Wed, Feb 15, 2012 at 10:31 AM, kcrisman <kcris...@gmail.com> wrote: >> > expected behavior. >> >> It does always timeout. The regular doctests take 1300 seconds for >> sandpile.py! I need to figure out what's going on there. >> >> > I think at this point manual intervention is required. Or was there >> > something else you were thinking it should do (because clearly you >> > were surprised, which isn't the intent). >> >> Well, I wasn't *too* surprised. I guess I was hoping for everything to >> work perfectly with no intervention. But it does seem to be working now, >> with a longer timeout. >> > > Some followup (#10702 notwithstanding): > > So I tried out the patchbot. Seemed to work reasonably well at > first. > > Then I came into my office this morning. Computer was humming at a > VERY decent clip; I could not get the screen to appear, Ctrl-C did > nothing, nothing nothing nothing, but clearly very busy (testing, > perhaps). I had to restart it manually.
Yikes! I'm still worried -- what if some jerk posts a patch to trac that contains sage: os.system('rm -rf /') Got you! I think a patch like the above is a very real possibility. All that would have to happen would be for one of the 500 trac accounts (which sometimes have very dumb passwords) to be compromised, or for somebody to get a trac account, and boom -- some users running a patchbot loose everything. That's not a pretty thought. We could at least check that $HOME appears to be nearly empty, when the patchbot starts up, suggesting that this isn't the user's normal account. Or we could require that the username contain some string like "sage", again forcing the user to at least make a special account for the patchbot. -- William > > Now I'm looking for where the patchbot might have left some residue of > its doings so that I can make sure this doesn't happen again (perhaps > by setting some configuration thingie). But I can really only find > the local/bin/patchbot folder, which doesn't seem to have a log. > > So I now have two questions: > > 1) Can I configure so that it runs ONE thread at a time? I noticed it > was running 3 threads... on a machine with one processor at < 1 GHz. > I didn't see a place for setting this in the patchbot - is that the > "parallelism": 3 setting? Perhaps "doctest_threads" or something > could be an alternate setting. In any case, this should be a little > more sophisticated than 3 as a default - maybe number of cores +1 or > something. I hope this is what the problem I had was. > > 2) Is there a log? Or more precisely, is there one on *my* machine? > > 3) Finally, although http://patchbot.sagemath.org/ticket/ is pretty > nice, I couldn't find a way to do a query for what my particular > machine had tested. http://patchbot.sagemath.org/ticket/?base=4.8 > would be it, but that's pretty broad, and you have to click on a > ticket to see which machines did it. > > Thanks! Overall this should be very helpful, though, especially for > checking whether things apply to more recent alphas/betas. > > - kcrisman > > -- > To post to this group, send an email to sage-devel@googlegroups.com > To unsubscribe from this group, send an email to > sage-devel+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-devel > URL: http://www.sagemath.org -- William Stein Professor of Mathematics University of Washington http://wstein.org -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org