#31 Fix the setup in tests/Sanity/testsuite
Merged 2 years ago by mcermak. Opened 2 years ago by vkadlcik.
Unknown source 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

2 years ago

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

rebased onto c21ea8d

2 years ago

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

rebased onto 5dbfbba

2 years ago

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

Pull-Request has been merged by mcermak

2 years ago
Metadata