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

chore: Cache files downloaded from cache #10950

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

spalladino
Copy link
Collaborator

To avoid a roundtrip to S3 to re-download every artifact on cache_download, we store a local file with the file prefix that points to the latest downloaded file version (ie hash), so we don't re-donwload it we already have it.

This required changing the arity of the cache_download and cache_upload scripts, so they accept the key and version for each artifact separately.

In addition, to avoid issues with the nargo show-program-hash being indeterministic, we also store "symlink" files in the cache for each circuit and vk. These are text files named after the entire hash of the circuits folder, that contain the nargo-computed hash of the circuit. This acts as another key for the same artifact.

@spalladino spalladino marked this pull request as ready for review December 23, 2024 21:19
To avoid a roundtrip to S3 to re-download every artifact on
cache_download, we store a local file with the file prefix that points
to the latest downloaded file version (ie hash), so we don't re-donwload
it we already have it.

This required changing the arity of the cache_download and cache_upload
scripts, so they accept the key and version for each artifact
separately.

In addition, to avoid issues with the nargo `show-program-hash` being
indeterministic, we also store "symlink" files in the cache for each
circuit and vk. These are text files named after the entire hash of the
circuits folder, that contain the nargo-computed hash of the circuit.
This acts as another key for the same artifact.
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