Issue 8263: regrtest stops prematurately on FreeBSD buildbot, with "success" result. (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/52510

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:59 admin set github: 52510
2010-04-22 00:58:50 r.david.murray set status: open -> closedversions: + Python 3.2messages: + resolution: fixedstage: test needed -> resolved
2010-04-20 20:31:53 skrah set nosy: + skrahmessages: +
2010-04-17 23:35:47 vstinner set nosy: + vstinnermessages: +
2010-04-17 23:25:36 r.david.murray set messages: +
2010-04-17 05:37:28 r.david.murray set nosy: + r.david.murraymessages: +
2010-03-30 17:00:33 flox set messages: +
2010-03-30 16:58:59 flox set files: - issue8263_regtest_SIGINT_v2.diff
2010-03-30 13:39:27 flox set files: + issue8263_regtest_SIGINT_v2.diffmessages: +
2010-03-30 13:38:24 flox set files: - issue8263_regtest_SIGINT.diff
2010-03-30 12:50:57 michael.foord set messages: +
2010-03-30 12:44:47 flox set files: + issue8263_regtest_SIGINT.diffkeywords: + patchmessages: +
2010-03-30 10:51:03 michael.foord set messages: +
2010-03-30 10:16:13 flox create