Hello community,

here is the log from the commit of package python3 for openSUSE:Factory checked 
in at 2018-01-21 15:47:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3 (Old)
 and      /work/SRC/openSUSE:Factory/.python3.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3"

Sun Jan 21 15:47:34 2018 rev:82 rq:567661 version:3.6.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3/python3-base.changes     2018-01-06 
18:46:45.126064281 +0100
+++ /work/SRC/openSUSE:Factory/.python3.new/python3-base.changes        
2018-01-21 15:47:36.993729528 +0100
@@ -1,0 +2,5 @@
+Thu Jan 18 12:31:47 UTC 2018 - [email protected]
+
+- Add skip_random_failing_tests.patch only for PowerPC
+
+-------------------------------------------------------------------
python3-doc.changes: same change
python3.changes: same change

New:
----
  skip_random_failing_tests.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python3-base.spec ++++++
--- /var/tmp/diff_new_pack.W8MiQx/_old  2018-01-21 15:47:42.533469576 +0100
+++ /var/tmp/diff_new_pack.W8MiQx/_new  2018-01-21 15:47:42.541469201 +0100
@@ -161,6 +161,8 @@
 Patch21:        0001-allow-for-reproducible-builds-of-python-packages.patch
 # PATCH-FEATURE-OPENSUSE order files for compilation until the underlying 
cause of bsc#1049186 is resolved
 Patch22:        distutils-reproducible-compile.patch
+# skip some tests only for PowerPC
+Patch23:        skip_random_failing_tests.patch
 ### COMMON-PATCH-END ###
 
 %description
@@ -253,6 +255,9 @@
 %patch15 -p1
 %patch21 -p1
 %patch22 -p1
+%ifarch ppc ppc64 ppc64le
+%patch23 -p1
+%endif
 
 # drop Autoconf version requirement
 sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac

python3-doc.spec: same change
python3.spec: same change


++++++ skip_random_failing_tests.patch ++++++
From: Michel Normand <[email protected]>
Subject: skip random failing tests
Date: Thu, 18 Jan 2018 15:48:52 +0100

skip random failing tests:
in _test_multiprocessing.py:
    test_async_timeout
    test_waitfor_timeout
    test_wait_integer
in test_events.py:
    test_run_until_complete
    test_signal_handling_args

Reported to fail on ppc64le host on multiple osc build trials:
(all failed for ppc64le, except one for ppc)
===
[michel@abanc:~/work/home:michel_mno:branches:devel:languages:python:Factory/python3]
$idx=1; while test 1; do echo "trial $idx:"; osc build \
--vm-type kvm -j 8 --threads 4 openSUSE_Factory_PowerPC  ppc64le \
>/tmp/python3_trialx_${idx}.log 2>&1 || break; ((idx++)); done
===
FAIL: test_async_timeout (test.test_multiprocessing_fork.WithProcessesTestPool)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/abuild/rpmbuild/BUILD/Python-3.6.4/Lib/test/_test_multiprocessing.py", 
line 2017, in test_async_timeout
      self.assertRaises(multiprocessing.TimeoutError, get, timeout=TIMEOUT2)
      AssertionError: TimeoutError not raised by 
<test._test_multiprocessing.TimingWrapper object at 0x7fff89b45f28>
===
FAIL: test_waitfor_timeout 
(test.test_multiprocessing_spawn.WithManagerTestCondition)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/abuild/rpmbuild/BUILD/Python-3.6.4/Lib/test/_test_multiprocessing.py", 
line 1169, in test_waitfor_timeout
    self.assertTrue(success.value)
AssertionError: False is not true
===
FAIL: test_run_until_complete 
(test.test_asyncio.test_events.SelectEventLoopTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/abuild/rpmbuild/BUILD/Python-3.6.4/Lib/test/test_asyncio/test_events.py",
 line 285, in test_run_until_complete
    self.assertTrue(0.08 <= t1-t0 <= 0.8, t1-t0)
AssertionError: False is not true : 3.966844968999993
===
FAIL: test_signal_handling_args 
(test.test_asyncio.test_events.SelectEventLoopTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/abuild/rpmbuild/BUILD/Python-3.6.4/Lib/test/test_asyncio/test_events.py",
 line 566, in test_signal_handling_args
    self.assertEqual(caught, 1)
AssertionError: 0 != 1
=== (ppc)
FAIL: test_wait_integer (test.test_multiprocessing_spawn.TestWait)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/abuild/rpmbuild/BUILD/Python-3.6.4/Lib/test/_test_multiprocessing.py", 
line 3762, in test_wait_integer
    self.assertLess(delta, expected + 2)
AssertionError: 5.576360702514648 not less than 5
===

Signed-off-by: Michel Normand <[email protected]>
---
 Lib/test/_test_multiprocessing.py    |    2 ++
 Lib/test/test_asyncio/test_events.py |    2 ++
 2 files changed, 4 insertions(+)

Index: Python-3.6.4/Lib/test/_test_multiprocessing.py
===================================================================
--- Python-3.6.4.orig/Lib/test/_test_multiprocessing.py
+++ Python-3.6.4/Lib/test/_test_multiprocessing.py
@@ -1145,6 +1145,7 @@ class _TestCondition(BaseTestCase):
                 success.value = True
 
     @unittest.skipUnless(HAS_SHAREDCTYPES, 'needs sharedctypes')
+    @unittest.skip("transient failure on PowerPC")
     def test_waitfor_timeout(self):
         # based on test in test/lock_tests.py
         cond = self.Condition()
@@ -2011,6 +2012,7 @@ class _TestPool(BaseTestCase):
         self.assertEqual(get(), 49)
         self.assertTimingAlmostEqual(get.elapsed, TIMEOUT1)
 
+    @unittest.skip("transient failure on PowerPC")
     def test_async_timeout(self):
         res = self.pool.apply_async(sqr, (6, TIMEOUT2 + 1.0))
         get = TimingWrapper(res.get)
@@ -3738,6 +3740,7 @@ class TestWait(unittest.TestCase):
         sem.release()
         time.sleep(period)
 
+    @unittest.skip("transient failure on PowerPC")
     def test_wait_integer(self):
         from multiprocessing.connection import wait
 
Index: Python-3.6.4/Lib/test/test_asyncio/test_events.py
===================================================================
--- Python-3.6.4.orig/Lib/test/test_asyncio/test_events.py
+++ Python-3.6.4/Lib/test/test_asyncio/test_events.py
@@ -278,6 +278,7 @@ class EventLoopTestsMixin:
     # Note: because of the default Windows timing granularity of
     # 15.6 msec, we use fairly long sleep times here (~100 msec).
 
+    @unittest.skip("transient failure on PowerPC")
     def test_run_until_complete(self):
         t0 = self.loop.time()
         self.loop.run_until_complete(asyncio.sleep(0.1, loop=self.loop))
@@ -549,6 +550,7 @@ class EventLoopTestsMixin:
         self.assertEqual(caught, 1)
 
     @unittest.skipUnless(hasattr(signal, 'SIGALRM'), 'No SIGALRM')
+    @unittest.skip("transient failure on PowerPC")
     def test_signal_handling_args(self):
         some_args = (42,)
         caught = 0

Reply via email to