#1202 disable mock's root cache on copr builders
Closed: MIGRATED a year ago by nikromen. Opened 4 years ago by praiskup.

To speedup the build, we should stop producting root cache because it is
never re-used, from random build:

$ curl --silent https://copr-be.cloud.fedoraproject.org/results/xxmitsu/mesa-git/fedora-31-i386/01144986-mesa/builder-live.log.gz | gunzip | grep root\ cache
INFO: enabled root cache
Start: creating root cache
Finish: creating root cache
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache

... so we only create it, and unpack it.

Slightly related: https://pagure.io/copr/copr/issue/787


From cfcbcab07dea2ec03e584fa7db5c42e62728daaf Mon Sep 17 00:00:00 2001
From: Pavel Raiskup <praiskup@redhat.com>
Date: Sun, 23 Feb 2020 21:58:05 +0100
Subject: [PATCH] copr: builders: disable root_cache

It is not used nowadays, we only generate unnecessary I/O.
---
 roles/copr/backend/files/provision/files/mock/site-defaults.cfg | 1 -
 1 file changed, 1 deletion(-)

diff --git a/roles/copr/backend/files/provision/files/mock/site-defaults.cfg b/roles/copr/backend/files/provision/files/mock/site-defaults.cfg
index 9e1d1698e..818bb6067 100644
--- a/roles/copr/backend/files/provision/files/mock/site-defaults.cfg
+++ b/roles/copr/backend/files/provision/files/mock/site-defaults.cfg
@@ -3,7 +3,6 @@
 config_opts['plugin_conf']['package_state_enable'] = False
 config_opts['plugin_conf']['ccache_enable'] = False

-config_opts['plugin_conf']['root_cache_enable'] = True
 # when used build ignores additional buildroot packages, reason unknown
 # config_opts['plugin_conf']['root_cache_opts']['age_check'] = False
 config_opts['plugin_conf']['bind_mount_enable'] = False
-- 
2.24.1

No-one replied, so I plan to apply this right before the next beaker test run.

Metadata Update from @praiskup:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Metadata Update from @praiskup:
- Issue status updated to: Open (was: Closed)

4 years ago

After some experiments, I observed that we actually use the root_cache. We
1. build the src.rpm from sources stored in distgit, and
2. in the same chroot we build rpms

We should update mock to be able to build from the sources directly.

Metadata Update from @praiskup:
- Issue untagged with: question
- Issue tagged with: RFE

4 years ago

Metadata Update from @nikromen:
- Issue close_status updated to: MIGRATED
- Issue status updated to: Closed (was: Open)

a year ago

Login to comment on this ticket.

Metadata