Skip to content

gh-102184: Test os.sync() only if the "walltime" resource is enabled - #155448

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-102184-sync-walltime
Aug 10, 2026
Merged

gh-102184: Test os.sync() only if the "walltime" resource is enabled#155448
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-102184-sync-walltime

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 9, 2026

Copy link
Copy Markdown
Member

sync() was called unconditionally in testNoArgFunctions(), so a plain make test flushed every filesystem buffer on the machine. It is now a separate test gated on walltime, the resource for tests that are slow by the clock -- largefile, as proposed in #102185, and cpu describe the wrong cost.

…abled

Calling sync() flushes all filesystem buffers and can block for a long
time, so it should not run in the default test suite.

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
@bedevere-app bedevere-app Bot added tests Tests in the Lib/test dir awaiting core review labels Aug 9, 2026
@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Aug 9, 2026
@serhiy-storchaka
serhiy-storchaka merged commit e45d456 into python:main Aug 10, 2026
59 checks passed
@miss-islington-app

Copy link
Copy Markdown

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

@serhiy-storchaka
serhiy-storchaka deleted the gh-102184-sync-walltime branch August 10, 2026 06:49
@bedevere-app

bedevere-app Bot commented Aug 10, 2026

Copy link
Copy Markdown

GH-155461 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 10, 2026
@bedevere-app

bedevere-app Bot commented Aug 10, 2026

Copy link
Copy Markdown

GH-155462 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Aug 10, 2026
@bedevere-app

bedevere-app Bot commented Aug 10, 2026

Copy link
Copy Markdown

GH-155463 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 Aug 10, 2026
serhiy-storchaka added a commit that referenced this pull request Aug 10, 2026
…nabled (GH-155448) (GH-155463)

Calling sync() flushes all filesystem buffers and can block for a long
time, so it should not run in the default test suite.
(cherry picked from commit e45d456)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
serhiy-storchaka added a commit that referenced this pull request Aug 10, 2026
…nabled (GH-155448) (GH-155462)

Calling sync() flushes all filesystem buffers and can block for a long
time, so it should not run in the default test suite.
(cherry picked from commit e45d456)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
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.

1 participant