Skip to content

Commit 418391c

Browse files
authored
Merge pull request #73 from KKoukiou/run-anaconda-master
tests: pull anaconda-core from COPR build from master and include firefox dependencies
2 parents 77485d5 + 4be7581 commit 418391c

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

test/build-rpms

+8-6
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ import sys
1111
BOTS_DIR = os.path.realpath(f'{__file__}/../../bots')
1212
sys.path.append(BOTS_DIR)
1313

14-
# libvpx is a firefox dependency, but it is not available in the boot.iso
15-
# https://bugzilla.redhat.com/show_bug.cgi?id=2242446
14+
missing_packages = "cockpit-ws cockpit-bridge cockpit-storaged fedora-logos"
15+
# Install missing firefox dependencies.
1616
# Resolving all dependencies with dnf download is possible,
1717
# but it packs to many packages to updates.img
18-
missing_packages = "cockpit-ws cockpit-bridge cockpit-storaged firefox dbus-glib libvpx fedora-logos"
18+
missing_packages_incl_deps = "firefox"
1919

2020
from machine.machine_core import machine_virtual # NOQA: imported through parent.py
2121

2222

2323
def build_rpms(srpm, image, verbose, quick):
2424
subprocess.check_call([os.path.join(BOTS_DIR, "image-download"), image])
2525
machine = machine_virtual.VirtMachine(image=image)
26-
packages_to_download = missing_packages
26+
packages_to_download = missing_packages + " anaconda-core";
2727
try:
2828
machine.start()
2929
machine.wait_boot()
@@ -41,16 +41,18 @@ def build_rpms(srpm, image, verbose, quick):
4141
if scenario.startswith("cockpit-pr-"):
4242
cockpit_pr = scenario.split("-")[-1]
4343
machine.execute(f"dnf copr enable -y packit/cockpit-project-cockpit-{cockpit_pr}", stdout=sys.stdout)
44-
elif scenario.startswith("anaconda-pr-"):
44+
if scenario.startswith("anaconda-pr-"):
4545
anaconda_pr = scenario.split("-")[-1]
4646
machine.execute(f"dnf copr enable -y packit/rhinstaller-anaconda-{anaconda_pr}", stdout=sys.stdout)
47-
packages_to_download += " anaconda-core"
47+
else:
48+
machine.execute(f"dnf copr enable @rhinstaller/Anaconda ", stdout=sys.stdout)
4849

4950
# download cockpit rpms
5051
# FIXME boot.iso on rawhide does not currently contain the new cockpit dependencies
5152
# This will change once we include this changes upstream and start building boot.iso with the new dependencies
5253
# Then we can move this to the /cockpit-pr scenario above
5354
machine.execute(f"dnf download --destdir /var/tmp/build/ {packages_to_download}", stdout=sys.stdout, timeout=300)
55+
machine.execute(f"dnf download --resolve --destdir /var/tmp/build/ {missing_packages_incl_deps}", stdout=sys.stdout, timeout=300)
5456

5557
# download rpms
5658
vm_rpms = machine.execute("find /var/tmp/build -name '*.rpm' -not -name '*.src.rpm'").strip().split()

test/machine_install.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def start(self):
144144
f"{boot_arg} "
145145
f"--name {self.label} "
146146
f"--os-variant=detect=on "
147-
"--memory 2048 "
147+
"--memory 4096 "
148148
"--noautoconsole "
149149
f"--graphics vnc,listen={self.ssh_address} "
150150
"--extra-args "

0 commit comments

Comments
 (0)