-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Add Seek fallback for zip files
#2320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
88024f5 to
a608a9d
Compare
|
Somewhat torn on merging this. It's good behavior but it does add complexity, and |
ff9a92b to
bd727ba
Compare
|
Eh, ultimately, this is a good thing to do. |
|
All these Windows tests are randomly overflowing their stacks is confusing to me. This shouldn't have changed the stack at all? |
bd727ba to
3eaca9b
Compare
## Summary Improves consistency and helps with the kinds of failures seen in #2320.
3eaca9b to
6faddd2
Compare
Every local variable increases the stack frame size 😭 |
|
Nooooo |
|
It must be so marginal |
|
debug is just super inefficient with stack space, this never happens on release |
Summary
Some zip files can't be streamed; in particular,
rs-async-zipdoesn't support data descriptors right now (though it may in the future). This PR adds a fallback path for such zips that downloads the entire zip file to disk, then unzips it from disk (which gives usSeek).Closes #2216.
Test Plan
cargo run pip install --extra-index-url https://buf.build/gen/python hashb_foxglove_protocolbuffers_python==25.3.0.1.20240226043130+465630478360 --force-reinstall -n