You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI: frequent, intermittent failures to download testing data #8685
Successful downloads of the testing data have been intermittent among these failures, so that re-running a test will sometimes work on the second, third, or fourth attempt. I tried downloading the v0.112 testing data manually through my browser 5 times, and it failed 4 of those times. No obvious difference between codeload.github.com links versus regular github .../archive/filename.tar.gz links.
Based on observation this seems to randomly happen from time to time, and I've just assumed that GitHub just has some bad download days / brown-outs. FYI when I started 5 simultaneous downloads, the first four failed right when I started the fifth. When I just ran two downloads in parallel at a time, I got 6 of 6 downloaded (in pairs) correctly with no failures. So maybe your 4-of-5 failure is the same as mine? If so, I'm guessing that GitHub detects it as spam and kills them when it gets too many identical requests from the same client.
I wonder if we're by chance happening to hit some limit like this on CIs, too, where it thinks what we're doing is spam and kills it. Maybe we're doing something suboptimal in terms of the HTTP request or something and pooch will magically fix it...
I put in a "fix" for this for CircleCI just by trying twice, and it did seem to decrease the number of problems we've had there. Maybe the "fix" here can be similar, just try twice or a few times.
pooch does have an auto-retry param. Hopefully that will be a good enough work-around. FWIW, when I tried manual downloads 5 times and failed 4 of them, that was serial, not parallel, so the attempts were about a minute apart, thus I don't think it's likely that it was some kind of server-side anti-bot or anti-spam thing
thinking more about this... could it be that it coincides with our switch away from Travis? i.e., the github workflows seem to trigger all jobs at once (alongside the azure jobs) so it may be that we're sending ~5-10 download requests in very quick succession.
would be nice if the data fetching part of testing could just connect to a storage bucket somewhere, instead of making a bunch of HTTP calls
Activity
larsoner commentedon Dec 30, 2020
Based on observation this seems to randomly happen from time to time, and I've just assumed that GitHub just has some bad download days / brown-outs. FYI when I started 5 simultaneous downloads, the first four failed right when I started the fifth. When I just ran two downloads in parallel at a time, I got 6 of 6 downloaded (in pairs) correctly with no failures. So maybe your 4-of-5 failure is the same as mine? If so, I'm guessing that GitHub detects it as spam and kills them when it gets too many identical requests from the same client.
I wonder if we're by chance happening to hit some limit like this on CIs, too, where it thinks what we're doing is spam and kills it. Maybe we're doing something suboptimal in terms of the HTTP request or something and pooch will magically fix it...
I put in a "fix" for this for CircleCI just by trying twice, and it did seem to decrease the number of problems we've had there. Maybe the "fix" here can be similar, just try twice or a few times.
drammock commentedon Dec 30, 2020
pooch does have an auto-retry param. Hopefully that will be a good enough work-around. FWIW, when I tried manual downloads 5 times and failed 4 of them, that was serial, not parallel, so the attempts were about a minute apart, thus I don't think it's likely that it was some kind of server-side anti-bot or anti-spam thing
drammock commentedon Dec 30, 2020
thinking more about this... could it be that it coincides with our switch away from Travis? i.e., the github workflows seem to trigger all jobs at once (alongside the azure jobs) so it may be that we're sending ~5-10 download requests in very quick succession.
would be nice if the data fetching part of testing could just connect to a storage bucket somewhere, instead of making a bunch of HTTP calls
agramfort commentedon Jan 4, 2021
cbrnr commentedon Jan 4, 2021
Caching should be possible: https://docs.github.com/en/free-pro-team@latest/actions/guides/caching-dependencies-to-speed-up-workflows
agramfort commentedon Jan 4, 2021
GuillaumeFavelier commentedon Jan 4, 2021
I would like to try if you don't mind.
I read that the total size of all caches in a repository is limited to 5 GB. That should be enough for Github Actions right?
larsoner commentedon Jan 4, 2021
our testing dataset is ~1GB so we should be good
drammock commentedon Jul 27, 2022
We're caching datasets in CIs nowadays, right? So this can be closed?
larsoner commentedon Jul 27, 2022
Yep!