This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: regrtest stops prematurately on FreeBSD buildbot, with "success" result.
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.2, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: flox, michael.foord, r.david.murray, skrah, vstinner
Priority: normal Keywords: buildbot, patch

Created on 2010-03-30 10:16 by flox, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (11)
msg101926 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-03-30 10:16
The regrtest returns "success", even if the test suite is not run completely.
The last running test is "test_unittest".


http://www.python.org/dev/buildbot/all/builders/x86%20FreeBSD%20trunk/builds/171
...
51 tests OK.
2 tests skipped:
    test_ascii_formatd test_py3kwarn
1 skip unexpected on freebsd6:
    test_ascii_formatd
[294584 refs]
program finished with exit code 0
elapsedTime=1082.949696

http://www.python.org/dev/buildbot/all/builders/x86%20FreeBSD%20trunk/builds/168
...
37 tests OK.
5 tests skipped:
    test_bsddb185 test_macostools test_py3kwarn test_startfile
    test_winreg
1 skip unexpected on freebsd6:
    test_bsddb185
[184731 refs]
program finished with exit code 0
elapsedTime=507.756584
msg101927 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2010-03-30 10:51
I wonder if unittest.test.test_break runs and the signals.SIGINT it sends terminates a process early? Do you have access to this platform to try it Florent?
msg101936 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-03-30 12:44
Sorry, but I don't have such environment.

Proposed patch will add a notice if the regrtest is interrupted (Ctrl+C).
And the exitcode is set to 1, meaning test failed for the buildbot.
msg101937 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2010-03-30 12:50
That sounds very useful from a diagnostic point of view. If it does turn out to be the problem then we will have to disable the test for that platform. At the moment test_break runs on all platforms that have os.kill(...).
msg101938 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-03-30 13:39
Slightly different, with a count of omitted tests
And removed "All .. tests OK" is there's some tests omitted.
msg101947 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-03-30 17:00
Regrtest.py fixed with r79497 to report keyboard interrupt as a "failure".
msg103390 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-04-17 05:37
I can reliably reproduce the SIGINT problem on a FreeBSD 6.3 box, if (and so far only if) some test that uses threading is run first (see also issue 3864).  So I suspect this is a freebsd6 specific problem and just needs a skip added.
msg103452 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-04-17 23:25
The test_break unit test is now skipped for freebsd6 on trunk in r80155.  I suspect this affects py3k as well on freebsd6.
msg103454 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-04-17 23:35
See also issue #8432.
msg103747 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2010-04-20 20:31
Confirmed on FreeBSD-6.4/py3k. Threading causes the problem, the skip
works here, too.
msg103935 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-04-22 00:58
Skip committed to py3k in r80331.
History
Date User Action Args
2022-04-11 14:56:59adminsetgithub: 52510
2010-04-22 00:58:50r.david.murraysetstatus: open -> closed
versions: + Python 3.2
messages: + msg103935

resolution: fixed
stage: test needed -> resolved
2010-04-20 20:31:53skrahsetnosy: + skrah
messages: + msg103747
2010-04-17 23:35:47vstinnersetnosy: + vstinner
messages: + msg103454
2010-04-17 23:25:36r.david.murraysetmessages: + msg103452
2010-04-17 05:37:28r.david.murraysetnosy: + r.david.murray
messages: + msg103390
2010-03-30 17:00:33floxsetmessages: + msg101947
2010-03-30 16:58:59floxsetfiles: - issue8263_regtest_SIGINT_v2.diff
2010-03-30 13:39:27floxsetfiles: + issue8263_regtest_SIGINT_v2.diff

messages: + msg101938
2010-03-30 13:38:24floxsetfiles: - issue8263_regtest_SIGINT.diff
2010-03-30 12:50:57michael.foordsetmessages: + msg101937
2010-03-30 12:44:47floxsetfiles: + issue8263_regtest_SIGINT.diff
keywords: + patch
messages: + msg101936
2010-03-30 10:51:03michael.foordsetmessages: + msg101927
2010-03-30 10:16:13floxcreate