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

Function hash needs to consider environment #23

Closed
joeduffy opened this issue Sep 19, 2017 · 4 comments
Closed

Function hash needs to consider environment #23

joeduffy opened this issue Sep 19, 2017 · 4 comments
Assignees
Milestone

Comments

@joeduffy
Copy link
Member

At the moment, we only consider the function text when we hash closures. See https://github.com/pulumi/pulumi-aws/blob/master/overlays/serverless/function.ts#L60. This means that functions with the same text but different closure environments may collide and share a hash, which will result in us serializing only one copy and binding all references to that one copy. This is clearly wrong.

Good catch from @CyrusNajmabadi.

@lukehoban lukehoban self-assigned this Oct 3, 2017
@lukehoban lukehoban added this to the 0.7 milestone Oct 3, 2017
@lukehoban
Copy link
Member

Actually just hit this in practice for the first time today. Assigning to myself to fix in 0.7.

@joeduffy
Copy link
Member Author

joeduffy commented Oct 9, 2017

I know @lukehoban is out for a couple days, @CyrusNajmabadi, do you have time to take a whack at fixing this one?

@joeduffy joeduffy assigned CyrusNajmabadi and unassigned lukehoban Oct 9, 2017
@joeduffy joeduffy modified the milestones: 0.7, 0.8 Oct 9, 2017
@joeduffy
Copy link
Member Author

@CyrusNajmabadi fixed this in pulumi/pulumi@556345c, closing out.

@CyrusNajmabadi
Copy link
Contributor

Sorry, was going to close this when i got in. Will be more vigilant about doing that when i merge PRs in.

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

No branches or pull requests

3 participants