Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
21de4c54
Commit
21de4c54
authored
Jun 10, 2020
by
Jason Madden
Committed by
GitHub
Jun 10, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1640 from gevent/issue1623
Run on Ubuntu Bionic
parents
35981c5d
f5e8061b
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
142 additions
and
128 deletions
+142
-128
.travis.yml
.travis.yml
+9
-9
docs/changes/1623.feature
docs/changes/1623.feature
+2
-0
src/gevent/testing/patched_tests_setup.py
src/gevent/testing/patched_tests_setup.py
+17
-1
src/gevent/testing/sysinfo.py
src/gevent/testing/sysinfo.py
+11
-0
src/gevent/tests/test__close_backend_fd.py
src/gevent/tests/test__close_backend_fd.py
+4
-3
src/gevent/tests/test__socket_dns.py
src/gevent/tests/test__socket_dns.py
+99
-115
No files found.
.travis.yml
View file @
21de4c54
...
...
@@ -7,7 +7,7 @@
# python: one day so making the migration simpler). "shell" and
# "minimal" are aliases.
language
:
shell
dist
:
xenial
dist
:
bionic
group
:
travis_latest
os
:
-
linux
...
...
@@ -31,11 +31,11 @@ env:
-
CCACHE_SLOPPINESS=file_macro,time_macros,include_file_ctime,include_file_mtime
-
CCACHE_NOHASHDIR=true
-
BUILD_LIBS=$HOME/.libs
-
GEVENTSETUP_EV_VERIFY=
2
-
GEVENTSETUP_EV_VERIFY=
1
# Disable some warnings produced by libev especially and also some Cython generated code.
# Note that changing the value of these variables invalidates configure caches
-
CFLAGS="-Ofast -pipe -Wno-strict-aliasing -Wno-comment"
-
CPPFLAGS="-I$BUILD_LIBS/include -DEV_VERIFY=
3
"
-
CPPFLAGS="-I$BUILD_LIBS/include -DEV_VERIFY=
1
"
-
LDFLAGS="-L$BUILD_LIBS/lib"
-
LD_LIBRARY_PATH="$BUILD_LIBS/lib"
# Uploading built wheels for releases.
...
...
@@ -64,7 +64,7 @@ env:
-
TRAVIS_PYTHON_VERSION=3.9
-
TRAVIS_PYTHON_VERSION=pypy2.7
-
TRAVIS_PYTHON_VERSION=pypy3.6
-
TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=
3
-
TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=
1
cache
:
pip
:
true
...
...
@@ -161,7 +161,7 @@ jobs:
-
os
:
osx
env
:
TRAVIS_PYTHON_VERSION=pypy3.6
-
os
:
osx
env
:
TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=
3
env
:
TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=
1
include
:
-
&build-gevent
...
...
@@ -218,7 +218,7 @@ jobs:
os
:
osx
-
<<
:
*build-gevent
env
:
TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=
3
env
:
TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=
1
install
:
# Install the Python runtime
-
*build-gevent-python
...
...
@@ -362,14 +362,14 @@ jobs:
-
<<
:
*test-ares-jobs
# This job exercises both the non-embedded ares resolver
# and the non-embedded Cython libev loop.
env
:
TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=
3
env
:
TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=
1
name
:
c-ares resolver, external (Python 2.7)
# These exercise the CFFI versions.
-
<<
:
*test-libuv-jobs
env
:
TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=
3
env
:
TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=
1
name
:
libuv backend, external (Python 2.7)
-
<<
:
*test-libev-jobs
env
:
TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=
3
env
:
TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=
1
name
:
libev backend, external (Python 2.7)
# PyPy 2.7
...
...
docs/changes/1623.feature
0 → 100644
View file @
21de4c54
gevent's
C
I
is now tested on Ubuntu 18.04 (Bionic), an upgrade from
16.04
(Xenial).
src/gevent/testing/patched_tests_setup.py
View file @
21de4c54
...
...
@@ -1076,6 +1076,9 @@ if PY35:
# RT_CONSISTENT' failed!" and fail.
disabled_tests
+=
[
'test_threading.ThreadTests.test_is_alive_after_fork'
,
# This has timing constraints that are strict and do not always
# hold.
'test_selectors.PollSelectorTestCase.test_timeout'
,
]
if
TRAVIS
:
...
...
@@ -1230,7 +1233,7 @@ if PY37:
disabled_tests
+=
[
# This sometimes produces ``self.assertEqual(1, len(s.select(0))): 1 != 0``.
# Probably needs to spin the loop once.
'test_selectors.
Default
SelectorTestCase.test_timeout'
,
'test_selectors.
Base
SelectorTestCase.test_timeout'
,
]
if
PY38
:
...
...
@@ -1312,6 +1315,19 @@ if PY39:
'test_subprocess.POSIXProcessTestTest.test_send_signal_race'
,
]
if
TRAVIS
:
disabled_tests
+=
[
# These tests frequently break when we try to use newer Travis CI images,
# due to different versions of OpenSSL being available. See above for some
# specific examples. Usually the tests catch up, eventually (e.g., at this writing,
# the 3.9b1 tests are fine on Ubuntu Bionic, but all other versions fail).
'test_ssl.ContextTests.test_options'
,
'test_ssl.ThreadedTests.test_alpn_protocols'
,
'test_ssl.ThreadedTests.test_default_ecdh_curve'
,
'test_ssl.ThreadedTests.test_shared_ciphers'
,
]
# Now build up the data structure we'll use to actually find disabled tests
# to avoid a linear scan for every file (it seems the list could get quite large)
# (First, freeze the source list to make sure it isn't modified anywhere)
...
...
src/gevent/testing/sysinfo.py
View file @
21de4c54
...
...
@@ -176,3 +176,14 @@ def libev_supports_linux_aio():
from
platform
import
release
return
system
()
==
'Linux'
and
LooseVersion
(
release
()
or
'0'
)
>=
LooseVersion
(
'4.19'
)
def
libev_supports_linux_iouring
():
# libev requires kernel XXX to be able to support linux io_uring.
# It fails with the kernel in fedora rawhide (4.19.76) but
# works (doesn't fail catastrophically when asked to create one)
# with kernel 5.3.0 (Ubuntu Bionic)
from
distutils.version
import
LooseVersion
from
platform
import
system
from
platform
import
release
return
system
()
==
'Linux'
and
LooseVersion
(
release
()
or
'0'
)
>=
LooseVersion
(
'5.3'
)
src/gevent/tests/test__close_backend_fd.py
View file @
21de4c54
...
...
@@ -32,10 +32,11 @@ class Test(unittest.TestCase):
)
BACKENDS_THAT_WILL_FAIL_TO_CREATE_AT_RUNTIME
=
(
# This fails on the Ubuntu Bionic image, and on
# the Fedora Rawhide 33 image. It's not clear why; needs
# investigated.
# This fails on the Fedora Rawhide 33 image. It's not clear
# why; needs investigated.
'linux_iouring'
,
)
if
not
sysinfo
.
libev_supports_linux_iouring
()
else
(
)
BACKENDS_THAT_WILL_FAIL_TO_CREATE_AT_RUNTIME
+=
(
...
...
src/gevent/tests/test__socket_dns.py
View file @
21de4c54
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment