python / python/cpython

`make test` fails on Linux (Ubuntu20.04) ext4 with mounted ntfs

Open
#121,712 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

tests
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

I have a dual-boot setup, where my Ubuntu 20.04 is on a ext4 FS and I have a data partition that is ntfs (for compat with Windows).
When I check out and build cpython on the data partition a bunch of tests fail with an OSError.
It seems to be related to the fact that the test suite creates the filenames as bytes assuming "utf-8" but ntfs uses "utf-16".

I have attached the log of the test run, which shows the failing tests.

P.S.: I also have encrypted the data partition with Veracrypt but I don't expect this to be relevant for this issue (but one never knows)
test_log.txt

cc @encukou

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the attached test_log.txt and the failing tests from a make test run on Ubuntu 20.04 with the CPython checkout on an NTFS partition. Compare the failures with a checkout on ext4 and determine which filesystem assumptions are involved. Done means the affected test cases no longer fail in the reported NTFS setup without regressing the ext4 run.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
operating-systems, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.