Repository navigation
Measure the deep member's staged name, not the tmp path in front of it - #227
Merged
Merged
Conversation
The staging test checked that the whole staged path of a deeply nested member was under 200 characters. That length includes pytest's temp folder, so it failed on an unmodified main once the macOS temp path reached 200 characters (a four-digit pytest run counter was enough). The test now takes the path relative to the case's staged folder and checks it has the documented <slug>/<2 hex>/<sha1>.<ext> shape: three parts and at most 113 characters (slug 60, 2, 40, extension 9, two separators). The is_file() check stays. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Fixes a test that failed on an unmodified main when pytest's temp folder got long.
test_media_is_staged_registered_and_processed_when_stagedchecked the deep member's full staged path was under 200 characters, which counted pytest's temp prefix.<slug>/<2 hex>/<sha1>.<ext>) and at most 113 characters.is_file()stays.Passes with a 417-character
--basetemp. Fails when staging is patched to keep the member's deep path, or to keep three parts with a long name.Co-Authored-By: Claude Opus 5.5 [email protected]
🤖 Generated with Claude Code