terascope / teraslice

Scalable data processing pipelines in JavaScript
https://terascope.github.io/teraslice/
Apache License 2.0
50 stars 13 forks source link

CI Tests Failing Due to Docker Hub Rate Limiting on Image Pulls #3676

Open sotojn opened 4 days ago

sotojn commented 4 days ago

Recently we've had issues with with CI throwing an error on tests that depend on docker to pull images of services the test depends on. The problem is most likely due to the excessive amount of pulling services for each test environment. For example e2e tests will need to pull at minimum 3 images (kafka, elasticsearch, and zookeeper). This is multiplied by the matrix that will test different versions of node and then multiplied again with different versions of elasticsearch.

Error:

toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit

Link: https://github.com/terascope/teraslice/actions/runs/9784466833/job/27015404404

Quoted from docker itself: https://www.docker.com/increase-rate-limits/

The rate limits of 100 container image requests per six hours for anonymous usage, and 200 container image requests per six hours for free Docker accounts are now in effect. Image requests exceeding these limits will be denied until the six hour window elapses.

Will look into this more and add potential solutions soon.

busma13 commented 4 days ago

List of images that teraslice CI tests will pull:

terascope/node-base:18.19.1 terascope/node-base:20.11.1 terascope/node-base:22.2.0 elasticsearch:6.8.6 elasticsearch:7.9.3 opensearchproject/opensearch:1.3.10 opensearchproject/opensearch:2.8.0 confluentinc/cp-kafka:7.1.9 confluentinc/cp-zookeeper:7.1.9 minio/minio:RELEASE.2020-02-07T23-28-16Z