#7108 closed defect (duplicate)
Sage 4.1.2.rc0 doctest failures on 32-bit Fedora 9 (cicero on skynet)
Reported by: | mvngu | Owned by: | tbd |
---|---|---|---|
Priority: | blocker | Milestone: | sage-duplicate/invalid/wontfix |
Component: | doctest coverage | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | Work issues: | ||
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
As the subject says. This was reported to sage-devel.
Change History (6)
comment:1 Changed 12 years ago by
- Summary changed from Sage 4.1.2.rc0 doctest failures on 32-bit Fedora 9 to Sage 4.1.2.rc0 doctest failures on 32-bit Fedora 9 (cicero on skynet)
comment:2 Changed 12 years ago by
comment:3 Changed 12 years ago by
I also see exactly the same twist.py failure on opensuse 64-bit. I think this is likely just a poorly written doctest.
Yes, in fact, looking at the doctest it is:
Run a command:: sage: sleep(0.5) sage: print get_url('http://localhost:%s/simple/compute?session=%s&code=2*2' % (port, session)) { "status": "done", "files": [], "cell_id": 1 } ___S_A_G_E___ 4
To be frank, it is utterly ridiculous to think that a doctest like this is going to work all the time. Often computers get heavily loaded during testing, or are slow because of DNS configuration, virtualization, etc. The above test needs to be rewritten. Two options:
- try repeatedly until status is done.
- put some ...'s in the output.
comment:4 Changed 12 years ago by
I had figured that 2*2 would be nearly instantaneous to compute, even on a heavily loaded machine, but here we're also waiting for the sage session to start up.
We should add a "timeout=-1" to that url so it waits for the computation to finish no matter what (and then can delete the "sleep(0.5)."
comment:5 Changed 12 years ago by
- Resolution set to duplicate
- Status changed from new to closed
The same testing issue comes up with OS X 10.5 and is fixed there in #7112. I'm thus closing this as a dupe.
comment:6 Changed 12 years ago by
- Milestone changed from sage-4.1.2 to sage-duplicate/invalid/wontfix
I just tried a clean build of sage-4.1.2.rc0 + a bit and get *only* one failure in twist.py:
The failure is:
This is somwhat expected since cicero is slow and the difference between the above two is that one didn't finish and the other did. Hmm.