The kernel rebuild test has been broken since the beginning and is
hard to debug due to CI's limitations when dealing with larger logs.
Fortunately, a better replacement has been introduced by mcermak
in commits 044ff51 and 49b89d9 that renders the broken test case
pointless.
Replace fedora-ci.koji-build.tier0.functional with
baseos-qe.koji-build.scratch-build.validation.
The former testcase, fedora-ci.koji-build.tier0.functional, aims to
perform the kernel rebuild on a fedora CI test system, not in koji.
The latter, baseos-qe.koji-build.scratch-build.validation is supposed
to run a kernel rebuild in a side-tag koji buildroot, which is closer
to a real kernel rebuild.
This commit sets baseos-qe.koji-build.scratch-build.validation as
the default kernel rebuild gating test for binutils.
Introduce baseos-qe.koji-build.scratch-build.validation as a new
gating test for binutils. The test makes sure that the binutils
update under test doesn't break the kernel build process. The
testing kernel build happens in koji in a side-tag buildroot
containing the binutils build under test.
The source code of this new testcase lives here:
https://github.com/fedora-ci/scratch-build-test
In case of a failure that is considered a false positive, the test
result can be waived using Bodhi this way:
https://docs.fedoraproject.org/en-US/ci/gating/#_waive
The only present test case rebuilt, installed and booted the kernel.
Now let's make the install and boot steps optional, just on explicit
request. Skipping these steps will be the default behaviour, at least
for now.
You can override the default by setting variable "JUST_BUILD" in the
environment the test runs in. The variable defaults to "yes" which
means the test will just build the kernel. If you use JUST_BUILD=no
(or JUST_BUILD=false or JUST_BUILD=0) then the test will not only
build but install and boot the kernel, too.
Note that the acceptable values of JUST_BUILD are case insensitive.
* Remove code related to RHEL versions and not interesting in Fedora.
* Remove or simplify some architecture-specific code because Fedora CI
aims at x86_64 only.
* Remove some older and commented out experiments.
Sanity/rebuild-kernel-and-reboot is imported from RHEL's
tests/binutils/Sanity/rebuild-kernel-and-reboot (as of commit c5bc77c).
It needs some adaptations first before running in Fedora.