Skip to content
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

up-to-date/base-image: cache dockerhub image listing #47447

Conversation

alafanechere
Copy link
Contributor

@alafanechere alafanechere commented Oct 28, 2024

What

  • Problems:up-to-date: to find the latest base image we have to list all the base images available and fetch their digest. If this operation is not cached it can easily lead to DockerHub rate limiting issue.
  • Solution: Add a cache_ttl_seconds parameters to cache the interaction with the crane client. In up-to-date we set this cache TTL to 1 day.

This pull request introduces a caching mechanism to avoid DockerHub rate limiting and updates various files to support this new feature. The most important changes include adding a cache TTL for base image listings, updating the CraneClient and related methods to accept a cache TTL, and adding logging for digest fetching.

Caching Mechanism:

Logging Enhancements:

Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Oct 28, 2024 10:57am

Copy link
Contributor Author

alafanechere commented Oct 28, 2024

@alafanechere alafanechere force-pushed the augustin/10-28-airbyte-ci/base-image_cache_dockerhub_image_listing branch from 3f90b17 to f9990c2 Compare October 28, 2024 09:56
@alafanechere alafanechere changed the title airbyte-ci/base-image: cache dockerhub image listing up-to-date/base-image: cache dockerhub image listing and fix build Oct 28, 2024
@alafanechere alafanechere force-pushed the augustin/10-28-airbyte-ci/base-image_cache_dockerhub_image_listing branch 2 times, most recently from 197eba5 to f129252 Compare October 28, 2024 10:19
@alafanechere alafanechere changed the title up-to-date/base-image: cache dockerhub image listing and fix build up-to-date/base-image: cache dockerhub image listing Oct 28, 2024
@alafanechere alafanechere marked this pull request as ready for review October 28, 2024 10:25
@alafanechere alafanechere requested a review from a team as a code owner October 28, 2024 10:25
Copy link
Contributor Author

alafanechere commented Oct 28, 2024

Merge activity

  • Oct 28, 6:54 AM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Oct 28, 6:57 AM EDT: Graphite rebased this pull request as part of a merge.
  • Oct 28, 6:58 AM EDT: A user merged this pull request with Graphite.

@alafanechere alafanechere changed the base branch from augustin/10-28-up-to-date_fix_quote_escape_in_workflow to graphite-base/47447 October 28, 2024 10:55
@alafanechere alafanechere changed the base branch from graphite-base/47447 to master October 28, 2024 10:55
@alafanechere alafanechere force-pushed the augustin/10-28-airbyte-ci/base-image_cache_dockerhub_image_listing branch from f129252 to 4929d76 Compare October 28, 2024 10:56
@alafanechere alafanechere merged commit b4496f0 into master Oct 28, 2024
27 of 30 checks passed
@alafanechere alafanechere deleted the augustin/10-28-airbyte-ci/base-image_cache_dockerhub_image_listing branch October 28, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant