Skip to content

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