[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-12-17 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 718bf1a7a1a39ca6f2381a299d00d8318732104a by Miss Islington (bot) 
in branch '3.8':
bpo-41804: Enhance test_epoll.test_control_and_wait() (GH-23795) (GH-23814)
https://github.com/python/cpython/commit/718bf1a7a1a39ca6f2381a299d00d8318732104a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-12-17 Thread miss-islington


miss-islington  added the comment:


New changeset e962e3ad225a211b9f9689742db6e9771d07c505 by Miss Islington (bot) 
in branch '3.9':
bpo-41804: Enhance test_epoll.test_control_and_wait() (GH-23795)
https://github.com/python/cpython/commit/e962e3ad225a211b9f9689742db6e9771d07c505


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-12-16 Thread STINNER Victor


STINNER Victor  added the comment:

Oh, test_epoll failed on 3.9. So I backported my change to 3.8 and 3.9, to see 
if it helps or not.

s390x RHEL8 Refleaks 3.9:
https://buildbot.python.org/all/#builders/326/builds/159

Traceback (most recent call last):
  File 
"/home/dje/cpython-buildarea/3.9.edelsohn-rhel8-z.refleak/build/Lib/test/test_epoll.py",
 line 199, in test_control_and_wait
self.assertEqual(events, expected)
AssertionError: Lists differ: [(5, 5)] != [(4, 5), (5, 5)]

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-12-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +22675
pull_request: https://github.com/python/cpython/pull/23814

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-12-16 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 1.0 -> 2.0
pull_requests: +22674
pull_request: https://github.com/python/cpython/pull/23813

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-12-16 Thread STINNER Victor


STINNER Victor  added the comment:

I failed to reproduce the issue. Let's hope that replacing send() with 
sendall() is enough to fix the issue.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10 -Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-12-16 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 79782fe4f8cf73d7fdf8db02073bbadf7ff817b6 by Victor Stinner in 
branch 'master':
bpo-41804: Enhance test_epoll.test_control_and_wait() (GH-23795)
https://github.com/python/cpython/commit/79782fe4f8cf73d7fdf8db02073bbadf7ff817b6


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-12-16 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +22651
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/23795

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-10-01 Thread STINNER Victor


STINNER Victor  added the comment:

The test also fails on aarch64 RHEL7 Refleaks 3.x:
https://buildbot.python.org/all/#/builders/131/builds/46

FAIL: test_control_and_wait (test.test_epoll.TestEPoll)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-09-17 Thread STINNER Victor


STINNER Victor  added the comment:

I managed to reproduce the failure in 50 seconds using the command:

$ ./python -m test test_epoll -F -v -j20
(...)
0:00:49 load avg: 4.81 [257/1] test_epoll failed
test_add (test.test_epoll.TestEPoll) ... ok
test_badcreate (test.test_epoll.TestEPoll) ... ok
test_close (test.test_epoll.TestEPoll) ... ok
test_context_manager (test.test_epoll.TestEPoll) ... ok
test_control_and_wait (test.test_epoll.TestEPoll) ... FAIL
test_create (test.test_epoll.TestEPoll) ... ok
test_errors (test.test_epoll.TestEPoll) ... ok
test_fd_non_inheritable (test.test_epoll.TestEPoll) ... ok
test_fromfd (test.test_epoll.TestEPoll) ... ok
test_unregister_closed (test.test_epoll.TestEPoll) ... ok

==
FAIL: test_control_and_wait (test.test_epoll.TestEPoll)
--
Traceback (most recent call last):
  File "/home/vstinner/python/master/Lib/test/test_epoll.py", line 199, in 
test_control_and_wait
self.assertEqual(events, expected)
AssertionError: Lists differ: [(5, 5)] != [(4, 5), (5, 5)]

First differing element 0:
(5, 5)
(4, 5)

Second list contains 1 additional elements.
First extra element 1:
(5, 5)

- [(5, 5)]
+ [(4, 5), (5, 5)]

--

Ran 10 tests in 2.120s

FAILED (failures=1)
test test_epoll failed
(...)
Total duration: 49.3 sec
Tests result: FAILURE

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-09-17 Thread STINNER Victor


STINNER Victor  added the comment:

Code of the test with a comment on the line which fails:

def test_control_and_wait(self):
client, server = self._connected_pair()

ep = select.epoll(16)
ep.register(server.fileno(),
select.EPOLLIN | select.EPOLLOUT | select.EPOLLET)
ep.register(client.fileno(),
select.EPOLLIN | select.EPOLLOUT | select.EPOLLET)

now = time.monotonic()
events = ep.poll(1, 4)
then = time.monotonic()
self.assertFalse(then - now > 0.1, then - now)

events.sort()
expected = [(client.fileno(), select.EPOLLOUT),
(server.fileno(), select.EPOLLOUT)]
expected.sort()

self.assertEqual(events, expected)

events = ep.poll(timeout=2.1, maxevents=4)
self.assertFalse(events)

client.send(b"Hello!")
server.send(b"world!!!")

now = time.monotonic()
events = ep.poll(1, 4)
then = time.monotonic()
self.assertFalse(then - now > 0.01)

events.sort()
expected = [(client.fileno(), select.EPOLLIN | select.EPOLLOUT),
(server.fileno(), select.EPOLLIN | select.EPOLLOUT)]
expected.sort()

self.assertEqual(events, expected) # <== FAIL HERE

ep.unregister(client.fileno())
ep.modify(server.fileno(), select.EPOLLOUT)
now = time.monotonic()
events = ep.poll(1, 4)
then = time.monotonic()
self.assertFalse(then - now > 0.01)

expected = [(server.fileno(), select.EPOLLOUT)]
self.assertEqual(events, expected)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41804] test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 Refleaks 3.9

2020-09-17 Thread STINNER Victor


New submission from STINNER Victor :

test_epoll.test_control_and_wait() failed once on aarch64 RHEL8 Refleaks 3.9:
https://buildbot.python.org/all/#/builders/247/builds/32

This buildbot runs test_epoll 6 times in a row and the system load was quite 
high (10.39).

0:03:01 load avg: 10.39 [ 97/425/1] test_epoll failed -- running: 
test_multiprocessing_fork (3 min), test_gdb (46.3 sec), test_peg_generator (1 
min 25 sec), test_capi (2 min 26 sec), test_weakref (2 min 1 sec), 
test_statistics (1 min 6 sec), test_multiprocessing_spawn (2 min 44 sec), 
test_io (1 min 53 sec)
beginning 6 repetitions
123456
...test test_epoll failed -- Traceback (most recent call last):
  File 
"/home/buildbot/buildarea/3.9.cstratak-RHEL8-aarch64.refleak/build/Lib/test/test_epoll.py",
 line 199, in test_control_and_wait
self.assertEqual(events, expected)
AssertionError: Lists differ: [(5, 5)] != [(4, 5), (5, 5)]

First differing element 0:
(5, 5)
(4, 5)

Second list contains 1 additional elements.
First extra element 1:
(5, 5)

- [(5, 5)]
+ [(4, 5), (5, 5)]

--
components: Tests
messages: 377059
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_epoll fails test_control_and_wait() randomly on aarch64 RHEL8 
Refleaks 3.9
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com