diff --git a/Jenkinsfile b/Jenkinsfile index 0bb3a8b..b4a7e40 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -99,6 +99,11 @@ pipeline { [ arch: "x86_64", os: [ compose: "${config.compose}" ], + tmt: [ + context: [ + profile: "${config.profile_name}" + ] + ] variables: [ PROFILE_NAME: "${config.profile_name}", TASK_ID: "${getIdFromArtifactId(artifactId: artifactId)}", diff --git a/installability.fmf b/installability.fmf index 7e8b2d5..a8f465d 100644 --- a/installability.fmf +++ b/installability.fmf @@ -4,6 +4,13 @@ description: Runs installability tests in Fedora CI — https://github.com/fedor provision: how: virtual +adjust: + - when: profile == fedora + prepare+: + - script: dnf -y install nosync + environment+: + LD_PRELOAD: /usr/lib64/nosync/nosync.so + discover: how: shell tests: diff --git a/prepare.sh b/prepare.sh index bb24ce7..28bf74d 100755 --- a/prepare.sh +++ b/prepare.sh @@ -14,6 +14,12 @@ dnf -y copr enable @osci/mini-tps dnf -y install mini-tps dnf -y copr disable @osci/mini-tps +# Use nosync to speed up dnf +if grep -q fedora <<< "${PROFILE_NAME}"; then + dnf -y install nosync + export LD_PRELOAD=/usr/lib64/nosync/nosync.so +fi + # make sure mini-tps can find Koji # TODO: can mini-tps RPM package provide this configuration automatically? mkdir -p /var/tmp/mini-tps/ /usr/local/libexec/mini-tps/