Skip to content

gh-132185: Speed up expanduser() test with large password database#132231

Merged
serhiy-storchaka merged 6 commits into
python:mainfrom
serhiy-storchaka:test_expanduser_pwd2
Apr 12, 2025
Merged

gh-132185: Speed up expanduser() test with large password database#132231
serhiy-storchaka merged 6 commits into
python:mainfrom
serhiy-storchaka:test_expanduser_pwd2

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Apr 7, 2025

Copy link
Copy Markdown
Member

Use only random selected entries if the "cpu" resource is not enabled.

Use only random selected entries if the "cpu" resource is not enabled.
@serhiy-storchaka

Copy link
Copy Markdown
Member Author

@itamaro, how much it takes to test 1000 entries? 10000 entries?

@itamaro

itamaro commented Apr 7, 2025

Copy link
Copy Markdown
Contributor

@itamaro, how much it takes to test 1000 entries? 10000 entries?

let me test with these limits

@itamaro

itamaro commented Apr 7, 2025

Copy link
Copy Markdown
Contributor

@itamaro, how much it takes to test 1000 entries? 10000 entries?

about a minute for 10k, under 5sec for 1k

@serhiy-storchaka

Copy link
Copy Markdown
Member Author

Thank you. This is much slower than on normal Linux PC, so I would be wrong without your data.

Comment thread Lib/test/test_posixpath.py Outdated
Comment thread Lib/test/test_posixpath.py Outdated
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@hugovk hugovk removed the needs backport to 3.12 only security fixes label Apr 9, 2025
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) April 12, 2025 15:50
@serhiy-storchaka
serhiy-storchaka merged commit 842ab81 into python:main Apr 12, 2025
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 12, 2025
…ase (pythonGH-132231)

Use only a limited number of randomly selected entries.
(cherry picked from commit 842ab81)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app

bedevere-app Bot commented Apr 12, 2025

Copy link
Copy Markdown

GH-132443 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Apr 12, 2025
serhiy-storchaka added a commit that referenced this pull request Apr 12, 2025
…base (GH-132231) (GH-132443)

Use only a limited number of randomly selected entries.
(cherry picked from commit 842ab81)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@serhiy-storchaka
serhiy-storchaka deleted the test_expanduser_pwd2 branch July 1, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants