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

Fix Google Drive downloads #140

Merged
merged 1 commit into from
Jan 21, 2024
Merged

Fix Google Drive downloads #140

merged 1 commit into from
Jan 21, 2024

Conversation

RunDevelopment
Copy link
Member

The confirm=1 trick to get direct downloads even for large files recently (like a week ago) stopped working. So instead of downloading the file, Google Drive will give us a warning page "File too large to scan for viruses. Download Anyway?". So our automatic model downloading for tests will download those warning pages instead of models.

Luckily, this warning page is very simple. No JS. Just simple HTML forms. So I just parse the form and piece together the real download link. This seems to work without problems.

Why hasn't this been a problem in recent PRs? Since our CI uses a cache, we weren't affected by this problem right away. The next time the cache gets evicted, we would be in trouble though because most Google Drive downloads will fail.

@joeyballentine joeyballentine merged commit 6f17937 into main Jan 21, 2024
7 checks passed
@joeyballentine joeyballentine deleted the fix-gdrive-dl branch January 21, 2024 23:57
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.

2 participants