Merge ~rjschwei/cloud-init:reproducibleBuild into cloud-init:master
| Status: | Rejected |
|---|---|
| Rejected by: | Scott Moser on 2017-12-08 |
| Proposed branch: | ~rjschwei/cloud-init:reproducibleBuild |
| Merge into: | cloud-init:master |
| Diff against target: |
17 lines (+5/-1) 1 file modified
setup.py (+5/-1) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Scott Moser | 2017-11-27 | Needs Information on 2017-11-28 | |
| Server Team CI bot | continuous-integration | Approve on 2017-11-28 | |
|
Review via email:
|
|||
Description of the Change
Make the package build for distributions reproducible, [1] [2]
[1] https:/
[2] http://
| Scott Moser (smoser) wrote : | # |
What does "reproducible" mean in this context.
I fully understand the value of of the output of a build being identical if all inputs are identical.
The code here uses a tmpdir and at least attempts to remove that temporary directory
at exit, the output of the build *should* still be the same.
Is the 'atext.
| Ryan Harper (raharper) wrote : | # |
I suspect the setup.py generates the SOURCES.txt before running atexit stuff.
Maybe there is an ignore setting for SOURCES.txt ?
| Robert Schweikert (rjschwei) wrote : | # |
Yes, it is related to SOURCES.txt.
I did not investigate how atext.register and generation of SOURCES.txt relate.
| Scott Moser (smoser) wrote : | # |
looking at it, found this was about all i could do.
http://
i really do not want to include the rendered files in the SOURCES.txt, which
is what Robert's suggestion does. They're *not* SOURCE files.
| Robert Schweikert (rjschwei) wrote : | # |
I am not attached to the proposed changes of simply making the directory name for the rendered files predictable. Excluding them from SOURCES.txt is probably the more appropriate approach.
| Scott Moser (smoser) wrote : | # |
Robert,
Can you test that that works for you?
The other thing i'd check is that it builds in centos6 (ie, older python).
I can do the centos6 check. But i'd lke to know that my patch actually
works for you.
then i'll submit a MP myself.
thanks.
On Tue, Dec 5, 2017 at 8:46 AM, Robert Schweikert <email address hidden> wrote:
> I am not attached to the proposed changes of simply making the directory
> name for the rendered files predictable. Excluding them from SOURCES.txt is
> probably the more appropriate approach.
>
>
> --
> https:/
> cloud-init/
> You are reviewing the proposed merge of ~rjschwei/
> into cloud-init:master.
>
| Robert Schweikert (rjschwei) wrote : | # |
> Robert,
> Can you test that that works for you?
I added the patch to our package build and asked the person working on reproducible builds for feedback.
| Scott Moser (smoser) wrote : | # |
https:/
I think that will work.
I'm going to mark *this* merge proposal as rejected, and just follow over there.
Unmerged commits
- 3292754... by Robert Schweikert on 2017-11-27


PASSED: Continuous integration, rev:3292754b6aa 52b43150edf3dbe 28a470da44d7f1 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 551/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 551/rebuild
https:/