Skip to content

Fix zero-sized files (and some warnings) #252

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

Merged
merged 2 commits into from
May 22, 2025

Conversation

redrun45
Copy link
Collaborator

@redrun45 redrun45 commented Jan 7, 2025

The first fixes #119, by removing the Validator code that would fetch MP3 files from remote servers. A bad fetch (from a typo) would often result in a zero-sized file in the Validator folder.
This 'fetch' feature was handy before Uploader became prevalent, but is no longer used. Better to remove than to fix. Admin discussion:
https://forum.librivox.org/viewtopic.php?p=2409190#p2409190

The next fixes #31 on dev, where mere warnings still cause a hang. In prod, the only cause I see for hanging is those zero-sized files we just addressed. We can consider this fixed as well, until we hear otherwise.

Future-musings:
This does look ripe for a re-factor (now _local_file and _copy_file can be merged, for example), but I'll leave that be for now. I wouldn't mind removing the test_* functions either (they don't look to automate well), but we might as well keep them in sync while they remain.

@redrun45 redrun45 changed the title Fix zero-sized files (and some warnings) [WIP] Fix zero-sized files (and some warnings) Jan 7, 2025
@redrun45
Copy link
Collaborator Author

redrun45 commented Jan 7, 2025

Found a new failure mode! Best not merge until that's addressed. I'll post again, or remove and re-submit the PR, once it is.

redrun45 added 2 commits May 21, 2025 10:02
Fixes LibriVox#119, by removing the Validator code that would fetch MP3 files
from remote servers.  This was useful before Uploader became prevalent,
but we no longer need the feature now.
This data, when returned by this endpoint, is never used in the js
client[1].  It also causes server-side warnings!
A little bit of progress for LibriVox#153.

[1]: https://github.com/LibriVox/librivox-catalog/blob/master/public_html/js/private/validator/index.js#L29
@redrun45 redrun45 changed the title [WIP] Fix zero-sized files (and some warnings) Fix zero-sized files (and some warnings) May 21, 2025
@redrun45
Copy link
Collaborator Author

This little fix is ready now. Had a variable scoping issue before, which I can now see after circling back to it. 🐑

Priority on this one is low - not at all pressing. Something for me to do while we wait for the other bot-shoe to drop. Apart from that, I do hope to have some other improvements headed this way relatively soon.
Thank you for your time. 😄

Copy link
Member

@notartom notartom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love me anything that removes code :)

@notartom notartom merged commit d295f91 into LibriVox:master May 22, 2025
1 check passed
@redrun45 redrun45 deleted the fix-zero-files branch May 22, 2025 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve handling of incorrect paths in validator in progress icon hangs when adding from section compiler on validator screen
2 participants