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

Implement RFC0043: Expanding the Criteria for Reproducible Builds #165

Closed
31 tasks done
ryanmoran opened this issue Mar 21, 2022 · 7 comments · Fixed by #187
Closed
31 tasks done

Implement RFC0043: Expanding the Criteria for Reproducible Builds #165

ryanmoran opened this issue Mar 21, 2022 · 7 comments · Fixed by #187

Comments

@ryanmoran
Copy link
Member

ryanmoran commented Mar 21, 2022

RFC

Summary

Given the same set of inputs and without leveraging caching, Paketo buildpacks should reproducibly build images.

Many of the buildpacks contain behavior that results in non-reproducible images due to how they treat layer metadata. Specifically, they include a built_at metadata field that includes a timestamp for the instant that this layer was built.

Non-Conforming Buildpacks

Go

Node.js

Python

.NET Core

Web Servers

Ruby

PHP

Utilities

@sophiewigmore
Copy link
Member

@ryanmoran should PHP Nginx be added here?

@robdimsdale
Copy link
Member

@ryanmoran should PHP Nginx be added here?

My understanding is this is the list of outstanding (and existing), non-conformant buildpacks. php-nginx doesn't yet have code so it's not yet non-conformant :)

It should obey the RFC once it is created!

@robdimsdale
Copy link
Member

@paketo-buildpacks/ruby-maintainers please could you assign all the ruby issues to me? I'm not a ruby contributor so I can't assign them to myself

@robdimsdale
Copy link
Member

also @paketo-buildpacks/php-maintainers could you assign the php issues to me too? Again, I'm not a php contributor so I can't assign them to myself.

@robdimsdale
Copy link
Member

@ryanmoran is there any prior art for the concept of obtaining and checking the SHA of a layer? I don't see any buildpacks doing that currently.

Relatedly, do you have opinions on the value of validating layer reuse? Should we keep the existing tests or remove them entirely?

@ryanmoran
Copy link
Member Author

@ryanmoran is there any prior art for the concept of obtaining and checking the SHA of a layer? I don't see any buildpacks doing that currently.

I don't know of any offhand, but occam is already providing the layer SHAs through this API: https://github.com/paketo-buildpacks/occam/blob/c0f313627bfd6cb9bb52394fd68ce1c13a1bc438/image.go#L20.

Relatedly, do you have opinions on the value of validating layer reuse? Should we keep the existing tests or remove them entirely?

I think keeping the tests is important. They've caught bugs.

@robdimsdale
Copy link
Member

For anyone else implementing this RFC - this is an example for the CPython buildpack: paketo-buildpacks/cpython#322.

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 a pull request may close this issue.

3 participants