Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
Bug report
configure with--enable-optimizations and thenmake run_profile_task, fail occurred.
./python -m test --pgo --timeout=1200 0:00:00 load avg: 3.02 Run tests sequentially (timeout: 20 min)0:00:00 load avg: 3.02 [ 1/44] test_array0:00:01 load avg: 3.02 [ 2/44] test_base640:00:02 load avg: 3.02 [ 3/44] test_binascii0:00:02 load avg: 3.02 [ 4/44] test_binop0:00:02 load avg: 3.02 [ 5/44] test_bisect0:00:02 load avg: 3.02 [ 6/44] test_bytes0:00:10 load avg: 2.71 [ 7/44] test_bz20:00:11 load avg: 2.71 [ 8/44] test_cmath0:00:12 load avg: 2.71 [ 9/44] test_codecs0:00:14 load avg: 2.65 [10/44] test_collections0:00:17 load avg: 2.65 [11/44] test_complex0:00:17 load avg: 2.65 [12/44] test_dataclasses0:00:18 load avg: 2.65 [13/44] test_datetime0:00:24 load avg: 2.44 [14/44] test_decimaltest test_decimal failed0:00:32 load avg: 2.22 [15/44] test_difflib -- test_decimal failed (1 failure)0:00:35 load avg: 2.12 [16/44] test_embed0:00:35 load avg: 2.12 [17/44] test_float......Total duration: 2 min 13 secTests result: FAILUREAfter then I tried to reproduce the error.
I foundmake buildbottest TESTOPTS="-j4 -uall,-cpu test_decimal" success! The specific commands it executes are:
./python -u -W default -bb -E -m test -r -w -j 1 -u all -W --slowest --fail-env-changed --timeout=1200 -j4 -uall,-cpu test_decimal...======================================================================FAIL: test_from_tuple (test.test_decimal.CWhitebox.test_from_tuple)----------------------------------------------------------------------Traceback (most recent call last): File "/data/self/code/mine/Lib/test/test_decimal.py", line 5538, in test_from_tuple self.assertEqual(str(c.create_decimal(x)), '-0E-1000007') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^AssertionError: '-0E-1000026' != '-0E-1000007'- -0E-1000026? ^^+ -0E-1000007? ^^......1 test OK.10 slowest tests:- test_decimal: 11.3 sec1 re-run test: test_decimalTotal duration: 11.7 secTests result: FAILURE then SUCCESSBecausepgo mode does not have the-w parameter, it will not re-run after fail.
Finally, I reset commit and locate thatgh-91291 causing the problem.