-
Notifications
You must be signed in to change notification settings - Fork 95
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
Add extra builds to test for reproducible builds #3129
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1425,6 +1425,17 @@ def create_adi_project(self, name, use_frozenlinks=False, src_prj=None): | |
<arch>x86_64</arch> | ||
</repository>""" | ||
|
||
reproducible_builds_repos = f""" | ||
<repository name="rb_future1y"> | ||
<path project="{name}" repository="standard"/> | ||
<arch>x86_64</arch> | ||
</repository> | ||
<repository name="rb_j1"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so that's testing with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://rb.zq1.de/compare.factory/reproducible.json has
and for bash
However, nothing needs to block on this build to finish. |
||
<path project="{name}" repository="standard"/> | ||
<arch>x86_64</arch> | ||
</repository> | ||
""" | ||
|
||
meta = f""" | ||
<project name="{name}"> | ||
<title></title> | ||
|
@@ -1441,6 +1452,7 @@ def create_adi_project(self, name, use_frozenlinks=False, src_prj=None): | |
<path project="{self.cstaging}" repository="standard"/> | ||
<path project="{self.project}" repository="standard"/> | ||
</repository> | ||
{reproducible_builds_repos} | ||
{images_repo} | ||
{containerfile_repo} | ||
</project>""" | ||
|
@@ -1456,6 +1468,27 @@ def create_adi_project(self, name, use_frozenlinks=False, src_prj=None): | |
# put twice because on first put, the API adds useless maintainer | ||
http_PUT(url, data=meta) | ||
|
||
prjconf = textwrap.dedent(""" | ||
# prjconf for testing reproducible builds: | ||
BuildFlags: nodisturl | ||
Release: 1.1 | ||
|
||
%if %_repository == "rb_future1y" | ||
Support: reproducible-faketools-futurepost | ||
%endif | ||
|
||
%if %_repository == "rb_j1" | ||
Support: reproducible-faketools-j1 | ||
%endif | ||
|
||
Macros: | ||
%distribution reproducible | ||
:Macros | ||
# end of reproducible builds part | ||
""") | ||
url = make_meta_url('prjconf', name, self.apiurl) | ||
http_PUT(url, data=prjconf) | ||
|
||
self.register_new_staging_project(name) | ||
|
||
if use_frozenlinks: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what would be the most descriptive name? maybe
standard_1yinfuture
?