Repository navigation
Run CI's Python suite under eatmydata - #3243
Merged
Merged
Conversation
Leaf fsyncs every file a revision stages and every file `replace_bytes` writes, so each `serve` publish and `page init` syncs the vendored layer file by file. No test can observe that durability short of a crash, yet on the runner's disk the syncs cost about a sixth of a pull request's worker time: py-spy put `_write` (`revision_artifact.py`) and `replace_bytes` as the innermost frame for 2.7 of 16.2 worker-minutes in run 39370118607. eatmydata preloads a library that turns fsync into a no-op for the suite's processes, leaving product code unchanged. Python-level patches of `os.fsync` that tests make still see each call. The suite's basetemp stays on the same ext4 disk, so filesystem behavior such as hard-link limits is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 20, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 20, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Leaf fsyncs every file a revision stages (
revision_artifact._write) and every filereplace_byteswrites, so eachservepublish andpage initsyncs the vendored layer file by file. No test can observe that durability short of a crash. This runs the Python suite undereatmydata, which preloads a library that turns fsync into a no-op in every process the suite starts. Product code is unchanged; tests that patchos.fsyncin Python still see each call, and the suite's temp files stay on the same ext4 disk, so filesystem behavior such as hard-link limits is unchanged. A tmpfs basetemp would also remove the cost, but it would hold the whole run's temp files in the runner's memory._writeunlinkreplace_bytesFrame columns are py-spy minutes from
leaf-dev suite-profile. The fsync frames are gone, and theunlinkin the page pool's reset fell with them, which fits ext4 metadata operations waiting on journal commits that other workers' fsyncs forced. Worker time fell by 0.5 to 1.6 minutes, less than the roughly 3 minutes the frames held, and CPU-minutes rose by 1 to 2 on both runs. The syncs were waits rather than CPU; whether the CPU rise is runner variance or work that waiting used to hide (three workers on four vCPUs, beside the website build) two runs can't tell. Per file,test_interact_document.pyfell from 1.4 to 0.9–1.0 minutes andtest_interact_server.pyfrom 1.6–1.7 to 1.3–1.5.