-
Notifications
You must be signed in to change notification settings - Fork 314
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
Fix file size handling for the contents drive #1530
Conversation
Interestingly, at least #1508 doesn't reproduce on the latest main branch deployment but does on my own one, which uses jupyterlite v0.4.4 as well but uses Pyodide v27 (dev). So perhaps this is an issue that will only materialise with the next Pyodide release? |
I did some quick testing with the ReadTheDocs version and uploading large PDFs and notebooks seems to still work |
Thanks @juntyr for this! I'll try to have a look soon. cc @martinRenou who may also be interested |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks good to me!
Agreed with Jeremy it would be great to add a simple test
If you want the test to be added in this PR, I'll need your help as I've never written a UI test before |
I guess it would be fine to do it separately too, since it may need some time. And also since this PR fixes a few issues it would be great to make it available to users sooner. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
What’s your current timeline for the next path release? If the fix could be released sometime next week it would be fantastic (I’m trying to publish a release of my project before the holidays) |
I think we can make a new release now from |
Starting the |
Released: https://github.com/jupyterlite/jupyterlite/releases/tag/v0.4.5 Thanks @juntyr for your fixes! Feel free to report more issues if you find any during your testing. |
Thanks @jtpio for the quick release! I think the pyodide-kernel needs a release as well (with the jupyterlite deps bumped) since its workers bundle the drive contents. Since I can only test the combination of new jupyterlite + old pyodide-kernel right now, the file size issues appear fixed (this one seems to be in the "inner" layer that the kernel workers call but don't inline), but the file truncation logic doesn't run yet (this one seems to be in the "outer" layer that is inlined in the kernel workers) |
I've opened jupyterlite/pyodide-kernel#146 |
References
Fixes #1472
Fixes #1508
Fixes #1529
Supersedes #1511
Code changes
setattr size
by getting, truncating or extending, and writing back the content fileUser-facing changes
Bug fixes
Backwards-incompatible changes
None