-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Respect rate-limits during integration tests #941
Comments
I'll have a look at it tomorrow. |
The rate limits are currently not enforced on .net 👍 |
@raphael0202 Oops, I thought it was just about The thing is that the TEST env in unreliable. We cannot realistically switch our tests to TEST env as it is. Are there plans to make it more stable? I've just run the tests in 3 minutes and there are:
The requirements you refer to are:
That means the unit tests would take at least 57/10=5 more minutes, which is acceptable. |
Rate-limits are per-ip, so as long as it's different IPs (which is very likely considering the tests are run on Github VMs), it should be fine. |
Dart SDK integration tests seem to perform search queries (User-Agent: 'off-dart integration tests'), and these queries are above our rate limits (https://openfoodfacts.github.io/openfoodfacts-server/api/#rate-limits): 10req/s for search queries.
We're going to enforce the rate-limits soon using a rate-limiter, so these queries will fail in a near future.
We can either:
The text was updated successfully, but these errors were encountered: