-
Notifications
You must be signed in to change notification settings - Fork 3
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
refactor: improve error message during weval pull failure #12
refactor: improve error message during weval pull failure #12
Conversation
Signed-off-by: Victor Adossi <[email protected]>
Thanks Victor for investigating this - this has been an ongoing issue for Weval when GitHub decides to ratelimit API requests. |
Yeahhh I figured it was something like that -- it turns out most of the changes could go in one level up @ |
I think the better fix that would be preferable would to be use token authentication with the GitHub API. The problem is that the If that was supported then we could run the CI with this environment variable set to the secret of the same name in GitHub CI without hitting the ratelimiting issues. @vados-cosmonic I do think an upstream fix in Weval like the above is preferable to a downstream workaround. |
Actually, it looks like the direct file downloads have predictable URLs (e.g. Happy to take a PR if someone wants to take an attempt at that... |
It sounds like that could work well too. |
Thanks for the notes ya'll -- I agree, both of those solutions would be preferable -- I'll try and do both! I think the average person won't actually have In other projects we certainly use the direct URLs (but who's to say someday those won't be rate-limited as well!). [EDIT] There's also the thought that we should probably start enforcing checksums possibly baked into the code for this -- this way if we ever run into some sort of issue we could stand up alternative delivery mechanisms and be able to trust them a little bit more/avoid compromise. |
Hey all, did a little bit of refactoring to get a slightly better (I think!) error message in for when weval has to be fetched.