FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Travis CI: documentation job fails in library/nntplib.rst with random network issue on news.gmane.io · Issue #83524 · python/cpython · GitHub

Repository navigation

Travis CI: documentation job fails in library/nntplib.rst with random network issue on news.gmane.io #83524

Closed

Description

BPO 39343
Nosy @terryjreedy, @ned-deily, @cjerdonek, @corona10
PRs
  • bpo-39343: Skip doctest in library/nntplib.rst #18013
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2020-01-15.10:22:54.720>
    labels = ['tests', '3.9']
    title = 'Travis CI: documentation job fails in library/nntplib.rst with random network issue on news.gmane.io'
    updated_at = <Date 2020-06-01.19:08:06.992>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2020-06-01.19:08:06.992>
    actor = 'vstinner'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Tests']
    creation = <Date 2020-01-15.10:22:54.720>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39343
    keywords = ['patch']
    message_count = 10.0
    messages = ['360039', '360052', '360054', '360058', '360060', '360061', '360062', '360216', '369694', '370343']
    nosy_count = 4.0
    nosy_names = ['terry.reedy', 'ned.deily', 'chris.jerdonek', 'corona10']
    pr_nums = ['18013']
    priority = 'normal'
    resolution = None
    stage = 'resolved'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue39343'
    versions = ['Python 3.9']

    Activity

    1. vstinner commented on Jan 15, 2020

      MemberAuthor

      Should we disable documentation test on nntplib? It's surprising that test_nntplib test on the other Travis CI jobs.

      https://travis-ci.org/python/cpython/jobs/637325027

      Warning, treated as error:


      File "library/nntplib.rst", line ?, in default

      Failed example:

          s = NNTP('news.gmane.io')

      Exception raised:

          Traceback (most recent call last):
        File "/home/travis/build/python/cpython/Lib/doctest.py", line 1329, in __run
      
          exec(compile(example.source, filename, "single",
      
        File "<doctest default[0]>", line 1, in <module>
      
              s = NNTP('news.gmane.io')
        File "/home/travis/build/python/cpython/Lib/nntplib.py", line 1045, in __init__
      
              self.sock = self._create_socket(timeout)
        File "/home/travis/build/python/cpython/Lib/nntplib.py", line 1062, in _create_socket
      
              return socket.create_connection((self.host, self.port), timeout)
        File "/home/travis/build/python/cpython/Lib/socket.py", line 843, in create_connection
      
              raise err
        File "/home/travis/build/python/cpython/Lib/socket.py", line 831, in create_connection
      
              sock.connect(sa)
      ConnectionRefusedError: [Errno 111] Connection refused
      
    2. corona10 commented on Jan 15, 2020

      Member

      Same for news.gmane.org

      >>> s = nntplib.NNTP('news.gmane.org')
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/Users/corona10/oss/cpython/Lib/nntplib.py", line 1045, in __init__
          self.sock = self._create_socket(timeout)
        File "/Users/corona10/oss/cpython/Lib/nntplib.py", line 1062, in _create_socket
          return socket.create_connection((self.host, self.port), timeout)
        File "/Users/corona10/oss/cpython/Lib/socket.py", line 843, in create_connection
          raise err
        File "/Users/corona10/oss/cpython/Lib/socket.py", line 831, in create_connection
          sock.connect(sa)
      ConnectionRefusedError: [Errno 61] Connection refused
    3. corona10 commented on Jan 15, 2020

      Member
      s = nntplib.NNTP('nntp.perl.org')
      s = nntplib.NNTP('news.mozilla.org')

      I 've checked a few servers list to use.
      But I don't know that they are proper to use.

    4. corona10 commented on Jan 15, 2020

      Member

      But for now on, IMHO skip is better choice.

    5. ned-deily commented on Jan 15, 2020

      Member

      FYI, gmane.io is down for a server move today. It should be back in service by 2100 GMT.

    6. vstinner commented on Jan 15, 2020

      MemberAuthor

      FYI, gmane.io is down for a server move today. It should be back in service by 2100 GMT.

      I propose to do nothing and wait. Travis CI is not currently preventing to merge a PR.

    7. ned-deily commented on Jan 15, 2020

      Member

      I should have checked first. The move was completed ahead of schedule and it's now back in service. The tests should no loner fail.

      https://lars.ingebrigtsen.no/2020/01/15/news-gmane-org-is-now-news-gmane-io/

    8. vstinner commented on Jan 17, 2020

      MemberAuthor

      It seems like the GMANE server has been fixed.

    9. cjerdonek commented on May 23, 2020

      Member
    10. terryjreedy commented on May 29, 2020

      Member

      gmane was down for maybe a day early this week. We should expect this to continue happening on and off, as it has for years (I use it daily). I suggest that we run the test when we can and skip (or connect elsewhere) when we cannot.

      try:
      s = NNTP('news.gmane.io')
      except ConnectionRefusedError as e:
      self.skipTest(f'Gmane down: {e}')

    11. transferred this issue fromon Apr 10, 2022
    12. hugovk commented on Apr 11, 2022

      Member

      Note the nntplib module is deprecated in 3.11 and set for removal in 3.13.

      See PEP 594 – Removing dead batteries from the standard library and #91217.

    13. AlexWaygood commented on Apr 12, 2022

      Member

      Note the nntplib module is deprecated in 3.11 and set for removal in 3.13.

      See PEP 594 – Removing dead batteries from the standard library and #91217.

      Additionally, Travis is no longer used for CPython's CI.

    14. kumaraditya303 commented on Apr 18, 2022

      Contributor

      Closed as Travis is no longer used.

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

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.9 (EOL)end of lifetestsTests in the Lib/test dir

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions


        Back | FazBrowse Home | New Git URL