Skip to content

Fix make cloud_function build step hashing deterministic#448

Closed
ghost wants to merge 2 commits intomasterfrom
unknown repository
Closed

Fix make cloud_function build step hashing deterministic#448
ghost wants to merge 2 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost 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.

Elwin Arens 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.
@ghost ghost changed the title Fix sort context imports in cloud_function example Fix make cloud_function build step deterministic May 9, 2019
@ghost ghost changed the title Fix make cloud_function build step deterministic Fix make cloud_function build step hashing deterministic May 9, 2019
@ghost ghost closed this by deleting the head repository Mar 2, 2026
This pull request was closed.
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.

0 participants