Skip to content
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

failing optional internet doctests in sage/combinat/designs #26502

Closed
seblabbe opened this issue Oct 18, 2018 · 14 comments
Closed

failing optional internet doctests in sage/combinat/designs #26502

seblabbe opened this issue Oct 18, 2018 · 14 comments

Comments

@seblabbe
Copy link
Contributor

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

CC: @slel

Component: doctest coverage

Author: Samuel Lelièvre

Branch: 464f233

Reviewer: Frédéric Chapoton

Issue created by migration from https://trac.sagemath.org/ticket/26502

@seblabbe seblabbe added this to the sage-8.4 milestone Oct 18, 2018
@slel
Copy link
Member

slel commented Oct 18, 2018

@slel
Copy link
Member

slel commented Oct 18, 2018

comment:2

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

@slel
Copy link
Member

slel commented Oct 18, 2018

Author: Samuel Lelièvre

@slel
Copy link
Member

slel commented Oct 18, 2018

Commit: 464f233

@slel

This comment has been minimized.

@slel slel modified the milestones: sage-8.4, sage-8.5 Oct 18, 2018
@fchapoton
Copy link
Contributor

Reviewer: Frédéric Chapoton

@fchapoton
Copy link
Contributor

comment:3

ok

@vbraun
Copy link
Member

vbraun commented Oct 20, 2018

@seblabbe
Copy link
Contributor Author

Changed commit from 464f233 to none

@seblabbe
Copy link
Contributor Author

comment:5

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
----------------------------------------------------------------------

@seblabbe
Copy link
Contributor Author

comment:6

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

@seblabbe
Copy link
Contributor Author

comment:7

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

@slel
Copy link
Member

slel commented Feb 28, 2019

comment:8

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

@slel
Copy link
Member

slel commented Feb 28, 2019

comment:9

Let's fix that at #26592.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants