Opened 14 months ago

Closed 14 months ago

Last modified 9 months ago

#26502 closed defect (fixed)

failing optional internet doctests in sage/combinat/designs

Reported by: slabbe Owned by:
Priority: major Milestone: sage-8.5
Component: doctest coverage Keywords:
Cc: slelievre Merged in:
Authors: Samuel Lelièvre Reviewers: Frédéric Chapoton
Report Upstream: N/A Work issues:
Branch: 464f233 (Commits) Commit:
Dependencies: Stopgaps:

Description (last modified by slelievre)

The math databases and papers of CCR La Jolla have moved from http://www.ccrwest.org to https://math.ccrwest.org.

As a result, in Sage 8.4, the command

sage -t --long --optional=sage,internet src/sage/combinat/designs/covering_design.py src/sage/combinat/designs/design_catalog.py

gives

----------------------------------------------------------------------
sage -t --long --warn-long 80.6 src/sage/combinat/designs/covering_design.py  # 2 doctests failed
sage -t --long --warn-long 80.6 src/sage/combinat/designs/design_catalog.py  # 3 doctests failed
----------------------------------------------------------------------

Complete log below

Running doctests with ID 2018-10-18-11-57-37-ce10c176.
Git branch: develop
Using --optional=internet,memlimit,sage
Doctesting 2 files.
sage -t --long --warn-long 80.6 src/sage/combinat/designs/covering_design.py
**********************************************************************
File "src/sage/combinat/designs/covering_design.py", line 473, in sage.combinat.designs.covering_design.best_known_covering_design_www
Failed example:
    C = best_known_covering_design_www(7, 3, 2)   # optional - internet
Exception raised:
    Traceback (most recent call last):
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 659, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1070, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.combinat.designs.covering_design.best_known_covering_design_www[1]>", line 1, in <module>
        C = best_known_covering_design_www(Integer(7), Integer(3), Integer(2))   # optional - internet
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/combinat/designs/covering_design.py", line 503, in best_known_covering_design_www
        f = urlopen(url)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 154, in urlopen
        return opener.open(url, data, timeout)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 435, in open
        response = meth(req, response)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 548, in http_response
        'http', request, response, code, msg, hdrs)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 467, in error
        result = self._call_chain(*args)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 407, in _call_chain
        result = func(*args)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 654, in http_error_302
        return self.parent.open(new, timeout=req.timeout)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 435, in open
        response = meth(req, response)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 548, in http_response
        'http', request, response, code, msg, hdrs)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 473, in error
        return self._call_chain(*args)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 407, in _call_chain
        result = func(*args)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 556, in http_error_default
        raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    HTTPError: HTTP Error 404: Not Found
**********************************************************************
File "src/sage/combinat/designs/covering_design.py", line 474, in sage.combinat.designs.covering_design.best_known_covering_design_www
Failed example:
    print(C)                                     # optional - internet
Exception raised:
    Traceback (most recent call last):
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 659, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1070, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.combinat.designs.covering_design.best_known_covering_design_www[2]>", line 1, in <module>
        print(C)                                     # optional - internet
    NameError: name 'C' is not defined
**********************************************************************
1 item had failures:
   2 of   4 in sage.combinat.designs.covering_design.best_known_covering_design_www
    [49 tests, 2 failures, 0.42 s]
sage -t --long --warn-long 80.6 src/sage/combinat/designs/design_catalog.py
**********************************************************************
File "src/sage/combinat/designs/design_catalog.py", line 22, in sage.combinat.designs.design_catalog
Failed example:
    C = designs.best_known_covering_design_from_LJCR(7, 3, 2)   # optional - internet
Exception raised:
    Traceback (most recent call last):
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 659, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1070, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.combinat.designs.design_catalog[1]>", line 1, in <module>
        C = designs.best_known_covering_design_from_LJCR(Integer(7), Integer(3), Integer(2))   # optional - internet
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/combinat/designs/covering_design.py", line 503, in best_known_covering_design_www
        f = urlopen(url)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 154, in urlopen
        return opener.open(url, data, timeout)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 435, in open
        response = meth(req, response)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 548, in http_response
        'http', request, response, code, msg, hdrs)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 467, in error
        result = self._call_chain(*args)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 407, in _call_chain
        result = func(*args)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 654, in http_error_302
        return self.parent.open(new, timeout=req.timeout)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 435, in open
        response = meth(req, response)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 548, in http_response
        'http', request, response, code, msg, hdrs)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 473, in error
        return self._call_chain(*args)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 407, in _call_chain
        result = func(*args)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 556, in http_error_default
        raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
    HTTPError: HTTP Error 404: Not Found
**********************************************************************
File "src/sage/combinat/designs/design_catalog.py", line 23, in sage.combinat.designs.design_catalog
Failed example:
    C                            # optional - internet
Exception raised:
    Traceback (most recent call last):
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 659, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1070, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.combinat.designs.design_catalog[2]>", line 1, in <module>
        C                            # optional - internet
    NameError: name 'C' is not defined
**********************************************************************
File "src/sage/combinat/designs/design_catalog.py", line 28, in sage.combinat.designs.design_catalog
Failed example:
    C.incidence_structure()      # optional - internet
Exception raised:
    Traceback (most recent call last):
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 659, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1070, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.combinat.designs.design_catalog[3]>", line 1, in <module>
        C.incidence_structure()      # optional - internet
    NameError: name 'C' is not defined
**********************************************************************
1 item had failures:
   3 of   5 in sage.combinat.designs.design_catalog
    [4 tests, 3 failures, 0.25 s]
----------------------------------------------------------------------
sage -t --long --warn-long 80.6 src/sage/combinat/designs/covering_design.py  # 2 doctests failed
sage -t --long --warn-long 80.6 src/sage/combinat/designs/design_catalog.py  # 3 doctests failed
----------------------------------------------------------------------
Total time for all tests: 0.8 seconds
    cpu time: 0.1 seconds
    cumulative wall time: 0.7 seconds

Change History (9)

comment:1 Changed 14 months ago by slelievre

  • Branch set to u/slelievre/failing_optional_internet_doctests_in_sage_combinat_designs

comment:2 Changed 14 months ago by slelievre

  • Authors set to Samuel Lelièvre
  • Cc slelievre added
  • Commit set to 464f23356842382253173ef520dd17dff9b290fc
  • Description modified (diff)
  • Milestone changed from sage-8.4 to sage-8.5
  • Status changed from new to needs_review

The math databases and papers of CCR La Jolla have moved from http://www.ccrwest.org to https://math.ccrwest.org.


New commits:

464f233Update URLs for CCR La Jolla math databases and papers

comment:3 Changed 14 months ago by chapoton

  • Reviewers set to Frédéric Chapoton
  • Status changed from needs_review to positive_review

ok

comment:4 Changed 14 months ago by vbraun

  • Branch changed from u/slelievre/failing_optional_internet_doctests_in_sage_combinat_designs to 464f23356842382253173ef520dd17dff9b290fc
  • Resolution set to fixed
  • Status changed from positive_review to closed

comment:5 Changed 14 months ago by slabbe

  • Commit 464f23356842382253173ef520dd17dff9b290fc deleted

With 8.5.beta0, on another machine, I am now getting failures on the same file at the same place for another reason (SSL?) :

sage -t --long --warn-long 80.6 --optional=sage,optional,external src/sage/combinat/designs/design_catalog.py src/sage/combinat/designs/covering_design.py
**********************************************************************
File "src/sage/combinat/designs/design_catalog.py", line 22, in sage.combinat.designs.design_catalog
Failed example:
    C = designs.best_known_covering_design_from_LJCR(7, 3, 2)   # optional - internet
Exception raised:
    Traceback (most recent call last):
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 671, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1086, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.combinat.designs.design_catalog[1]>", line 1, in <module>
        C = designs.best_known_covering_design_from_LJCR(Integer(7), Integer(3), Integer(2))   # optional - internet
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/combinat/designs/covering_design.py", line 503, in best_known_covering_design_www
        f = urlopen(url)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 154, in urlopen
        return opener.open(url, data, timeout)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 429, in open
        response = self._open(req, data)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 447, in _open
        '_open', req)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 407, in _call_chain
        result = func(*args)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 1241, in https_open
        context=self._context)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/urllib2.py", line 1198, in do_open
        raise URLError(err)
    URLError: <urlopen error [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:726)>
**********************************************************************

...

----------------------------------------------------------------------
sage -t --long --warn-long 80.6 src/sage/combinat/designs/design_catalog.py  # 3 doctests failed
sage -t --long --warn-long 80.6 src/sage/combinat/designs/covering_design.py  # 2 doctests failed
----------------------------------------------------------------------

comment:6 Changed 14 months ago by slabbe

I was able to reproduce the issue with 8.5.beta1. I created #26592.

comment:7 Changed 9 months ago by slabbe

The errors fixed in this ticket are now back in 8.7.beta5. Did the url changed again?

comment:8 Changed 9 months ago by slelievre

It seems the database is now on Dan Gordon's webpage at

comment:9 Changed 9 months ago by slelievre

Let's fix that at #26592.

Note: See TracTickets for help on using tickets.