konflux: enable hermetic builds#3723
Conversation
ef7b013 to
c1a33f6
Compare
a6fd835 to
5514868
Compare
|
/retest |
bc74fdb to
c226e34
Compare
|
/test fedora-coreos-testing-devel-on-pull-request |
b2f34fd to
af8d40c
Compare
3105692 to
ca82cec
Compare
|
requires coreos/fedora-coreos-pipeline#1245 |
41de3e3 to
7698e16
Compare
|
See c0abc9c#r171804321 the glib2 URL in coreos/coreos-assembler#4381 should fix the issue we are hitting |
7698e16 to
2f2bc40
Compare
|
/retest |
ffe764a to
0b210f8
Compare
This commit should be removed as we'll rebase this PR on top of coreos#3723
|
/retest |
1 similar comment
|
/retest |
b2ec755 to
154b5fc
Compare
|
/retest |
0a69b36 to
694c80f
Compare
|
/retest |
1 similar comment
|
/retest |
5771d25 to
8a475ae
Compare
In hermetic builds there is no access to the network. Detect this by looking for the `cachi2.repo` that is injected by konflux during the build. In this case we make sure to not use any of our own repo and rely on the repo created by hermeto.
8a475ae to
09d754c
Compare
| # cachi2 is the repo Konflux injects when hermetic build is enabled and | ||
| # is self-sufficient to pull all the required RPMs. | ||
| if [ ! -f "/etc/yum.repos.d/cachi2.repo" ]; then | ||
| cp /src/fedora-coreos-continuous.repo /etc/yum.repos.d | ||
| fi |
There was a problem hiding this comment.
not copying the fedora-coreos-continuous repo here means the step below with --repo fedora-coreos-continuous will fail.
I wonder if the buildroot-prep stuff is just never going to work with hermetic?
OR - better, let's just fold calling buildroot-prep into build-rootfs as a another function that gets called (which shells out to the script). This means it can run after we call inject_yumrepos() and can use the hermeto repo to pull the RPM from if we want.
There was a problem hiding this comment.
Good point, let's give a try.
But note that the line -repo fedora-coreos-continuous is not run at all since a while now. Actually, the whole script is noop at the moment. But we still need to support what you proposed for future need.
Using coreos/coreos-assembler#4298