Skip to content

Commit c21348f

Browse files
authored
Merge pull request #192 from pcdubs/ansible-dep
fix(tests): ansible deprecation fix and CI improvements
2 parents 63b4761 + 27ed486 commit c21348f

10 files changed

Lines changed: 22 additions & 10 deletions

.github/workflows/comment-ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
container:
4949
image: quay.io/centos/centos:stream9
5050
steps:
51+
- name: Install git for checkout
52+
run: dnf install -y git
53+
5154
- name: Checkout PR code
5255
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5356
with:

.github/workflows/greenboot-ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
container:
4949
image: quay.io/centos/centos:stream9
5050
steps:
51+
- name: Install git for checkout
52+
run: dnf install -y git
53+
5154
- name: Checkout PR code
5255
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5356
with:

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ vendor:
6060
[ -z "$$vendor_filterer_cmd" ] || rm -f $${vendor_filterer_cmd}; \
6161
. /etc/os-release; \
6262
if [[ "$$ID" = "fedora" ]] || [[ "$$ID" = "centos" ]]; then \
63-
sudo dnf install -y pkgconf-pkg-config openssl-devel; \
63+
if [ "$$(id -u)" -eq 0 ]; then \
64+
dnf install -y pkgconf-pkg-config openssl-devel; \
65+
else \
66+
sudo dnf install -y pkgconf-pkg-config openssl-devel; \
67+
fi; \
6468
fi; \
6569
cargo install --quiet cargo-vendor-filterer@0.5.16; \
6670
for platform in $(PLATFORMS); do \

tests/greenboot-bootc-anaconda-iso.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ ISO_LABEL=$(blkid -o value -s LABEL /var/lib/libvirt/images/install.iso)
330330
greenprint "ISO label: ${ISO_LABEL}"
331331
sudo virt-install --name="${TEST_UUID}-uefi"\
332332
--disk path="${LIBVIRT_IMAGE_PATH_UEFI}",format=qcow2 \
333-
--ram 3072 \
333+
--ram 8192 \
334334
--vcpus 2 \
335335
--network network=integration,mac=34:49:22:B0:83:30 \
336336
--os-type linux \

tests/greenboot-bootc-qcow2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ sudo restorecon -Rv /var/lib/libvirt/images/
319319

320320
sudo virt-install --name="${TEST_UUID}-uefi"\
321321
--disk path="${LIBVIRT_IMAGE_PATH_UEFI}",format=qcow2 \
322-
--ram 3072 \
322+
--ram 8192 \
323323
--vcpus 2 \
324324
--network network=integration,mac=34:49:22:B0:83:30 \
325325
--os-type linux \

tests/greenboot-bootc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
tasks:
1010
# current target host's IP address
11-
- debug: var=ansible_all_ipv4_addresses
11+
- debug: var=ansible_facts['all_ipv4_addresses']
1212
- debug: var=ansible_facts['distribution_version']
1313
- debug: var=ansible_facts['distribution']
1414
- debug: var=ansible_facts['architecture']

tests/greenboot-fedora-iot-raw.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ sudo kpartx -dv "${LIBVIRT_IMAGE_PATH}"
249249
greenprint "🚀 Installing VM from raw image"
250250
sudo virt-install --name="${IMAGE_KEY}"\
251251
--disk path="${LIBVIRT_IMAGE_PATH}",format=raw \
252-
--ram 4096 \
252+
--ram 8192 \
253253
--vcpus 2 \
254254
--network network=integration,mac=34:49:22:B0:83:30 \
255255
--os-variant ${OS_VARIANT} \

tests/greenboot-ostree.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ sudo virt-install --name="${IMAGE_KEY}"\
432432
--initrd-inject="${KS_FILE}" \
433433
--extra-args="inst.ks=file:/ks.cfg console=ttyS0,115200" \
434434
--disk path="${LIBVIRT_IMAGE_PATH}",format=qcow2 \
435-
--ram 4096 \
435+
--ram 8192 \
436436
--vcpus 2 \
437437
--network network=integration,mac=34:49:22:B0:83:30 \
438438
--os-variant ${OS_VARIANT} \

tests/greenboot-ostree.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
tasks:
99
# current target host's IP address
10-
- debug: var=ansible_all_ipv4_addresses
10+
- debug: var=ansible_facts['all_ipv4_addresses']
1111
- debug: var=ansible_facts['distribution_version']
1212
- debug: var=ansible_facts['distribution']
1313
- debug: var=ansible_facts['architecture']
@@ -146,7 +146,7 @@
146146

147147
- name: waits until instance is reachable
148148
wait_for:
149-
host: "{{ ansible_all_ipv4_addresses[0] }}"
149+
host: "{{ ansible_facts['all_ipv4_addresses'][0] }}"
150150
port: 22
151151
search_regex: OpenSSH
152152
delay: 10

tmt/plans/greenboot-test.fmf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ provision:
99
virtualization:
1010
is-supported: true
1111
cpu:
12-
processors: ">= 2"
13-
memory: ">= 6 GB"
12+
processors: ">= 4"
13+
memory: ">= 16 GB"
14+
disk:
15+
- size: ">= 40 GB"
1416

1517
/bootc-qcow2:
1618
summary: Test greenboot with bootc qcow2 image

0 commit comments

Comments
 (0)