Repository navigation
🐛 fix(seed): skip special metadata on reseed - #3640
Merged
gaborbernat merged 1 commit intoNov 20, 2026
Merged
Conversation
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.
On reseed, the old metadata reads opened an existing
top_level.txtorRECORDwithout checking its file type. A FIFO at either path could leavevirtualenvwaiting for a writer. The seeder now skips non-regular metadata and finishes replacing the seed package. Fixes #3627.Existing metadata could block replacement
The old
top_level.txtcheck andRECORDcheck usedPath.exists(). That method accepts an existing FIFO, while opening a FIFO for reading waits for a writer. Both reads now use one file-type check before opening metadata.Path.is_file()follows symlinks, so metadata linked to a regular file remains readable.Behavior changes
The app-data seeder warns and skips
top_level.txtorRECORDwhen the path is a FIFO, device, directory, or link to one. It still replaces the old seed package. A large regular metadata file remains subject to the existing full-file read.Reported by oss-scanner:
ANT-2026-GY26H3A6.