#31 Fix the setup in tests/Sanity/testsuite
Opened a month ago by vkadlcik. Modified 12 days ago
rpms/ vkadlcik/binutils rawhide  into  rawhide

@@ -38,6 +38,7 @@ 

  BUILT_BY="${BUILT_BY:-$(which built-by)}"

  

  PACKAGE="${PACKAGE:-$(rpm --qf '%{name}\n' -qf $(which $LD) | head -1)}"

+ NVR="$(rpm -q --qf='%{NAME}-%{VERSION}-%{RELEASE}' $PACKAGE)"

  GCC_PACKAGE="${GCC_PACKAGE:-$(rpm --qf '%{name}\n' -qf $(which $GCC) | head -1)}"

  ANNOBIN_PACKAGE="${ANNOBIN_PACKAGE:-$(rpm --qf '%{name}\n' -qf $(which $BUILT_BY) | head -1)}"

  
@@ -50,6 +51,7 @@ 

          rlLogInfo "REQUIRES=$REQUIRES"

          rlLogInfo "COLLECTIONS=$COLLECTIONS"

          rlLogInfo "PACKAGE=$PACKAGE"

+         rlLogInfo "NVR=$NVR"

          rlLogInfo "LD=$LD"

          rlLogInfo "GCC=$GCC"

          rlLogInfo "SKIP_COLLECTION_METAPACKAGE_CHECK=$SKIP_COLLECTION_METAPACKAGE_CHECK"
@@ -80,9 +82,9 @@ 

          rlRun "LOGDIR=$TmpDir/LOGS"

  

          # fetch'n'build the source

-         rlRun "koji download-build --arch=src $(rpm -q binutils)"

-         rlRun "dnf builddep -y *.src.rpm"

-         rlRun "rpm -i *.src.rpm"

+         rlRun "dnf download --disablerepo='*' --enablerepo=test-artifacts --source $NVR || cp /var/share/test-artifacts/$NVR.src.rpm ."

+         rlRun "dnf builddep -y $NVR.src.rpm"

+         rlRun "rpm -i $NVR.src.rpm"

          export SPECDIR=`rpm --eval=%_specdir`

          export BUILDDIR=`rpm --eval=%_builddir`

          export CURRENT_BUILD=${BUILDDIR}/binutils-`rpmquery $PACKAGE --queryformat=%{VERSION}`

"koji download-build" is a wrong tool to download artifacts being
tested. They are freshly scratch-built and hosted in a local repo
called "test-artifacts" unknown to koji. Using "dnf download"
directly and limited to that specific repo is a correct way to
reach them.

I'm adding a fallback using the repo's local files just in case
"dnf" suffers some temporary hiccup.

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

The only dist-git failure is this: https://bugzilla.redhat.com/show_bug.cgi?id=2008203

It's not caused by this PR.

rebased onto a8d3e72835dfb7ec124c151695cdfc3ffaed72b4

14 days ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

rebased onto c21ea8d

12 days ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

Metadata