GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — regrtest can reports false SUCCESS and skip tests when a -j worker dies · Issue #101634 · python/cpython

regrtest can reports false SUCCESS and skip tests when a -j worker dies #101634

New issue
Copy link
New issue
Copy link
Closed
Closed
regrtest can reports false SUCCESS and skip tests when a -j worker dies#101634
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@gpshead
gpshead
opened on Feb 7, 2023
Issue body actions

See in https://buildbot.python.org/all/#/builders/424/builds/3407/steps/5/logs/stdio (Raspbian)

...
0:04:46 load avg: 7.28 [ 48/434] test_isinstance passed -- running: test_largefile (2 min 54 sec)
0:05:03 load avg: 7.39 [ 49/434] test_utf8source passed -- running: test_largefile (3 min 11 sec), test_unittest (38.7 sec)
Warning -- regrtest worker thread failed: Traceback (most recent call last):
Warning --   File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/libregrtest/runtest_mp.py", line 342, in run
Warning --     mp_result = self._runtest(test_name)
Warning --                 ^^^^^^^^^^^^^^^^^^^^^^^^
Warning --   File "/var/lib/buildbot/workers/3.x.gps-raspbian.nondebug/build/Lib/test/libregrtest/runtest_mp.py", line 301, in _runtest
Warning --     stdout = stdout_fh.read().strip()
Warning --              ^^^^^^^^^^^^^^^^
Warning --   File "<frozen codecs>", line 322, in decode
Warning -- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa9 in position 35: invalid start byte
Kill <TestWorkerProcess #1 running test=test_tempfile pid=7836 time=21.8 sec> process group
Kill <TestWorkerProcess #2 running test=test_largefile pid=7700 time=3 min 32 sec> process group

== Tests result: SUCCESS ==

385 tests omitted:
    test___all__ test__locale test__opcode test__osx_support
    test__xxinterpchannels test__xxsubinterpreters test_abc test_aifc
    test_argparse test_array test_asdl_parser test_ast test_asyncgen
    test_asyncio test_atexit test_audioop test_audit test_base64
...

This might be an infrastructure issue or an actual issue with real non utf-8 data making it through the mp sockets. Regardless, it should've triggered an error and exit 1 instead of a false SUCCESS exit 0.

Linked PRs

  • gh-101634: regrtest reports decoding error as failed test #106169
  • [3.12] gh-101634: regrtest reports decoding error as failed test (GH-106169) #106174
  • [3.11] gh-101634: regrtest reports decoding error as failed test (#106169) #106175

Activity

  1. gpshead
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    testsTests in the Lib/test dirTests in the Lib/test dir
    on Feb 7, 2023
  2. gpshead
    changed the title [-]regrtest can reports false SUCCESS and skips tests when a -j worker dies[/-] [+]regrtest can reports false SUCCESS and skip tests when a -j worker dies[/+] on Feb 7, 2023
  3. vstinner
    added a commit that references this issue on Jun 28, 2023

    pythongh-101634: regrtest reports decoding error as failed test

    47f1e64
  4. vstinner commented on Jun 28, 2023

    @vstinner
    vstinner
    on Jun 28, 2023
    Member
    More actions

    I wrote PR #106169 to fix this bug.

  5. vstinner
    added 3 commits that reference this issue on Jun 28, 2023

    pythongh-101634: regrtest reports decoding error as failed test

    8fdac41

    pythongh-101634: regrtest reports decoding error as failed test

    0fbf770

    gh-101634: regrtest reports decoding error as failed test (#106169)

    2ac3eec
  6. miss-islington
    added a commit that references this issue on Jun 28, 2023

    pythongh-101634: regrtest reports decoding error as failed test (pyth…

    d1c5d11
  7. vstinner
    added 2 commits that reference this issue on Jun 28, 2023

    [3.12] gh-101634: regrtest reports decoding error as failed test (GH-…

    c1c6738

    [3.11] gh-101634: regrtest reports decoding error as failed test (#10…

    d5418e9
  8. vstinner
    added 3 commits that reference this issue on Sep 2, 2023

    Revert "[3.11] pythongh-101634: regrtest reports decoding error as fa…

    a4e5e7b

    pythongh-101634: regrtest reports decoding error as failed test (pyth…

    f848b2b

    [3.11] gh-108822: Backport libregrtest changes from the main branch (#…

    79f7a4c
  9. hugovk commented on Nov 10, 2023

    @hugovk
    hugovk
    on Nov 10, 2023
    Member
    More actions

    Thanks!

  10. hugovk
    closed this as completedon Nov 10, 2023
  11. vstinner commented on Nov 13, 2023

    @vstinner
    vstinner
    on Nov 13, 2023
    Member
    More actions

    The fix will not be backported to Python 3.11 and 3.12 branches: see #111950 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.