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 make cloud_function build step hashing deterministic #448

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

Conversation

elwinarens
Copy link

@elwinarens elwinarens commented May 8, 2019

ctx.imports is an unsorted dictionary, causing unnecessary updates of the cloud function resource when the order arbitrarily changes.

Additionally, the return value of StringIO.getvalue() contains timestamp information that causes the md5 hexdigest to change every second.

elwinarens added 2 commits May 8, 2019 14:00
ctx.imports is an unsorted dictionary, causing unnecessary updates when the order arbitrarily changes.
The zipfile contains extra attributes like the timestamp that are included in the return value of getvalue(), causing a different md5 hash every second.
@elwinarens elwinarens changed the title Fix sort context imports in cloud_function example Fix make cloud_function build step deterministic May 9, 2019
@elwinarens elwinarens changed the title Fix make cloud_function build step deterministic Fix make cloud_function build step hashing deterministic May 9, 2019
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