Open ipeirotis opened 2 years ago
I've seen these and was never able to reproduce this locally. These seem specific to Github Actions which are making it extremely difficult to find and fix.
On Windows runners, writing and reading files appears problematic which causes an issue with download_mandates_csv
. Resolving it by skipping the test on Windows only.
The paper title mismatches is likely due to old caches on the machines. There's no way for us to force cache clearing, and Github automatically clears them after 7 days of not being used. https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy. I suggest we reduce the frequency of cron jobs to be run once a week to not be impacted by this caching.
Repurposing this issue to fix the tests we currently skip so we don't have to skip them.
The tests that passed during the merge are failing again. I propose we use CircleCI in addition to Github Actions for now to see if we can reproduce the failures and potentially debug them, which is not possible in Github Actions. https://circleci.com/docs2/2.0/ssh-access-jobs
ScraperAPI increased the price to $50 per month and I canceled my subscription. Perhaps this is the reason for the failures.
No, I'm pretty sure that's not the reason. The tests are failing because the fetched values are not what they are expected to be. This is restricted to GHAs alone since I can't reproduce this locally. But good to know that the tests are otherwise robust with freeproxies
I think the ScraperAPI key still works, but only for a limited number of queries.
Btw, perhaps the issue appears due to proxies caching the requests for longer than they should?
ScraperAPI increased the price to $50 per month and I canceled my subscription.
To make matters worse, ScraperAPI is charging 25 credits per request for pages in Google domain. https://www.scraperapi.com/documentation/#curl-CreditsAndRequests
This means we can only make 40 requests for Google Scholar per month with the free plan.
Describe the bug We have a few issues with the tests, causing the builds to fail.
To Reproduce Taking a look at the build logs, we see the following errors:
Ubuntu
Mac
Windows
It is a bit confusing what causes the issues, especially the issues associated with the mandates calls