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

fix: false positive pyodide build cache hits #838

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

peter-gy
Copy link
Collaborator

Previously we used the built Pyodide package version as the cache key exclusively.

This yielded false positive cache hits when only the source code of a module changed (the sha256 signature), but not its version, as no official release took place. Therefore, we kept reusing built modules even though they were obsolete.

This PR introduces a fix by using {version}@{sha256} as the hash key.
Technically, {sha256} would be sufficient as a key, but including the version aids debugging.

@domoritz
Copy link
Member

Is this still relevant?

@peter-gy
Copy link
Collaborator Author

peter-gy commented Aug 20, 2024

It is. I will need to dramatically simplify the pyodide build flow.

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.

2 participants