[SSSD] [PATCH] CI: Run mock under PTY to workaround DNF bug

Lukas Slebodnik lslebodn at redhat.com
Mon Oct 12 08:59:32 UTC 2015


On (12/10/15 11:55), Nikolai Kondrashov wrote:
>On 10/12/2015 11:52 AM, Lukas Slebodnik wrote:
>>On (12/10/15 11:41), Nikolai Kondrashov wrote:
>>>Hi everyone,
>>>
>>>Attached is a patch which tries to workaround a DNF bug [1] which prevents us
>>>from running CI on Fedora Rawhide.
>>>
>>>It seems to work, however Fedora Rawhide repos seem to have some other issue
>>>at the moment, which manifests in dependency installation failures [2],
>>>including standalone builds of SSSD.
>>>
>>>Nick
>>>
>>>[1] https://bugzilla.redhat.com/show_bug.cgi?id=1269665
>>>[2] http://sssd-ci.duckdns.org/logs/job/30/10/fedora_rawhide/ci-build-debug/ci-mock-build.log
>>
>>>From a5efaa7c010c472cb31c0028dd6166a5d8e04d2e Mon Sep 17 00:00:00 2001
>>>From: Nikolai Kondrashov <Nikolai.Kondrashov at redhat.com>
>>>Date: Mon, 12 Oct 2015 09:48:38 +0300
>>>Subject: [PATCH] CI: Run mock under PTY to workaround DNF bug
>>>
>>>Run mock on a pseudo-TTY with the help of "unbuffer" from the "expect"
>>>package to workaround a bug in DNF.
>>>---
>>I would prefer till dnf is fixed and do not add workarounds.
>
>Weell, I don't believe it will be fixed soon, but if we're OK with that, no
>problem.
>
>>BTW the problem with using yum in mock for fedora >= 23
>>should be fixed within a days.
>>There is already bugfix in upstream
>>http://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=9c082fb8689efdaa5a595d3043e67ccec4ed930c
>
>Ah, good. But then, wouldn't we need to add a workaround to ask mock to run
>yum instead of dnf?
>
We alredy has non-default mock configuration files due to tmpfs.
So it would be just a temporary change on server side.
BTW yum is used for installation of chroot for fedora <=23.
So it would not be huge change.

And maybe dnf bug would be fixed by updated rpm :-)

LS


More information about the sssd-devel mailing list