Skip to content
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

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant