Skip to content

Python 3.13: test_sqlite3 fails. TESTFN_UNDECODABLE in test/support/os_helper.py is broken on zfs. #125117

Closed as not planned

Description

@satmandu

Bug report

Bug description:

Fails in both i686 and x86_64 containers on an Ubuntu 24.04 host with a zfs filesystem with utf8only = on and normalization = formD, succeeds in armv7l container on a debian host with an ext4 filesystem on ChromeOS/Chromebrew.

0:03:42 load avg: 1.48 [37/44] test_sqlite3                                                                                                   
test test_sqlite3 failed                                                                                                                      
0:03:44 load avg: 1.44 [38/44] test_statistics -- test_sqlite3 failed (4 errors)                                                              
0:04:13 load avg: 1.29 [39/44] test_str                                                                                                       
0:04:21 load avg: 1.24 [40/44] test_struct                                                                                                    
0:04:24 load avg: 1.22 [41/44] test_tabnanny                                                                                                  
0:04:25 load avg: 1.22 [42/44] test_time                                                                                                      
0:04:28 load avg: 1.22 [43/44] test_xml_etree                                                                                                 
0:04:31 load avg: 1.21 [44/44] test_xml_etree_c  
LD_LIBRARY_PATH=/usr/local/tmp/crew/py
thon3.20241008135741.dir/Python-3.13.0/builddir:/usr/local/lib64:/lib64 ./python ../Lib/test/test_sqlite3/                                    
test_sqlite3: testing with SQLite version 3.46.1                                                                                              
..............................................................................................................................................
..........................................................EE....EE............................................................................
.........................................................................................................................s.s..................
.....................................s.s.................                                                                                     
======================================================================                                                                        
ERROR: test_open_undecodable_uri (test.test_sqlite3.test_dbapi.OpenTests.test_open_undecodable_uri)                                           
----------------------------------------------------------------------                                                                        
Traceback (most recent call last):                                                                                                            
  File "/usr/local/tmp/crew/python3.20241008135741.dir/Python-3.13.0/Lib/test/test_sqlite3/test_dbapi.py", line 729, in test_open_undecodable_
uri                                                                                                                                           
    with contextlib.closing(sqlite.connect(uri, uri=True)) as cx:                                                                             
                            ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^                                                                                     
sqlite3.OperationalError: unable to open database file                                                                                        
                                                                                                                                              
======================================================================                                                                        
ERROR: test_open_undecodable_uri (test.test_sqlite3.test_dbapi.OpenTests.test_open_undecodable_uri)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/tmp/crew/python3.20241008135741.dir/Python-3.13.0/Lib/test/support/os_helper.py", line 345, in unlink
    _unlink(filename)
    ~~~~~~~^^^^^^^^^^
OSError: [Errno 84] Invalid or incomplete multibyte or wide character: b'@test_10783_tmp\xe7w\xf0'

======================================================================
ERROR: test_open_with_undecodable_path (test.test_sqlite3.test_dbapi.OpenTests.test_open_with_undecodable_path)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/tmp/crew/python3.20241008135741.dir/Python-3.13.0/Lib/test/test_sqlite3/test_dbapi.py", line 682, in test_open_with_undecod
able_path
    with contextlib.closing(sqlite.connect(path)) as cx:
                            ~~~~~~~~~~~~~~^^^^^^
sqlite3.OperationalError: unable to open database file

======================================================================
ERROR: test_open_with_undecodable_path (test.test_sqlite3.test_dbapi.OpenTests.test_open_with_undecodable_path)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/tmp/crew/python3.20241008135741.dir/Python-3.13.0/Lib/test/support/os_helper.py", line 345, in unlink
    _unlink(filename)
    ~~~~~~~^^^^^^^^^^
OSError: [Errno 84] Invalid or incomplete multibyte or wide character: b'@test_10783_tmp\xe7w\xf0'

----------------------------------------------------------------------
Ran 481 tests in 1.226s

FAILED (errors=4, skipped=4)

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Activity

  1. satmandu commented on Oct 8, 2024

    @satmandu
    Author

    This might be related to #81765 as this is on an OpenZFS filesystem...

  2. changed the title [-]Python 3.13 build test_sqlite3 fails[/-] [+]Python 3.13: test_sqlite3 fails with builds on zfs filesystem[/+] on Oct 8, 2024
  3. changed the title [-]Python 3.13: test_sqlite3 fails with builds on zfs filesystem[/-] [+]Python 3.13: test_sqlite3 fails. TESTFN in test/support/os_helper.py is broken on zfs?[/+] on Oct 8, 2024
  4. changed the title [-]Python 3.13: test_sqlite3 fails. TESTFN in test/support/os_helper.py is broken on zfs?[/-] [+]Python 3.13: test_sqlite3 fails. TESTFN_UNDECODABLE in test/support/os_helper.py is broken on zfs.[/+] on Oct 8, 2024
  5. erlend-aasland commented on Oct 8, 2024

    @erlend-aasland
    Contributor

    This might be related to #81765 as this is on an OpenZFS filesystem...

    Yes, it does look suspiciously similar. Consider closing this as a duplicate.

  6. satmandu commented on Oct 8, 2024

    @satmandu
    Author

    This might be related to #81765 as this is on an OpenZFS filesystem...

    Yes, it does look suspiciously similar. Consider closing this as a duplicate.

    As per #81765 (comment) is there a good way to tag this (or that 5 year old issue with a confirmation 3 years ago) as a bug for the test suite?

  7. erlend-aasland commented on Oct 8, 2024

    @erlend-aasland
    Contributor

    Suspecting #120191 is related (or a duplicate).

  8. satmandu commented on Oct 9, 2024

    @satmandu
    Author

    Suspecting #120191 is related (or a duplicate).

    That would now be confirmed.

  9. erlend-aasland commented on Oct 10, 2024

    @erlend-aasland
    Contributor

    Thanks, @satmandu! Marking this as a duplicate of #81765.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions