cirrus-ci: get testing working again
v2 cover cirrus-ci: get testing working again
Hello,
The following series fixes Cirrus-CI testing so it's fully working again. I request a release-ack to get those committed (once reviewed). The risk is very low, since they only modify Cirrus-CI code, so Gitlab-CI is not changed at all.
Roger Pau Monne (3):
cirrus-ci: install libinotify for FreeBSD
cirrus-ci: fix bashism in the test_script code
cirrus-ci: bump FreeBSD version
.cirrus.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Signature · 1 line
2.51.0
PATCH v2 1/3 cirrus-ci: install libinotify for FreeBSD
FreeBSD QEMU build requires libinotify, otherwise the build fails with:
./qemu-xen-dir-remote/meson.build:2535:15: ERROR: C shared or static library 'inotify' not found
Install the package and add the /usr/local include and libs paths explicitly as QEMU configure options.
--- .cirrus.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
.cirrus.yml +2 -1
@@ -51,11 +51,12 @@ task: install_script: pkg install -y seabios gmake ninja bash pkgconf bison perl5 yajl lzo2 pixman argp-standalone - libxml2 glib git python3 + libxml2 glib git python3 libinotify configure_script: - cc --version - ./configure --with-system-seabios=/usr/local/share/seabios/bios.bin + --with-extra-qemuu-configure-args="--extra-ldflags=-L${APPEND_LIB} --extra-cflags=-I${APPEND_INCLUDES}" - gmake -j`sysctl -n hw.ncpu` -C xen clang=y defconfig << : *FREEBSD_CONFIGURE_ARTIFACTS
Signature · 1 line
2.51.0
PATCH v2 2/3 cirrus-ci: fix bashism in the test_script code
In reply to Roger Pau MonneThe default shell in FreeBSD is plain sh, which doesn't support the usage of the '|&' operator:
./automation/scripts/console.exp |& sed 's/\r\+$//' /tmp/scripts34c427adc6599db29cb91221a0939d85.sh: 16: Syntax error: "&" unexpected
Fix this by using a redirection of stderr into stdout, and then a pipe.
--- .cirrus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.cirrus.yml +1 -1
@@ -167,7 +167,7 @@ task: export TEST_LOG="serial-${FREEBSD_BUILD}-${XTF_ARCH}.txt" export PASSED="Test result: SUCCESS" export TEST_TIMEOUT=120 - ./automation/scripts/console.exp |& sed 's/\r\+$//' + ./automation/scripts/console.exp 2>&1 | sed 's/\r\+$//' always: serial_artifacts:
Signature · 1 line
2.51.0
PATCH v2 3/3 cirrus-ci: bump FreeBSD version
In reply to Roger Pau MonneUpdate to latest 14.3.
--- .cirrus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.cirrus.yml +1 -1
@@ -2,7 +2,7 @@ freebsd_versions: &FREEBSD_VERSIONS env: FREEBSD_LEGACY: freebsd-13-5 - FREEBSD_PRODUCTION: freebsd-14-2 + FREEBSD_PRODUCTION: freebsd-14-3 FREEBSD_CURRENT: freebsd-15-0-snap # Build jobs
Signature · 1 line
2.51.0
Hello Roger,
Quoted 6 lines · Roger Pau Monne
Hello,
The following series fixes Cirrus-CI testing so it's fully working again. I request a release-ack to get those committed (once reviewed). The risk is very low, since they only modify Cirrus-CI code, so Gitlab-CI is not changed at all.
Thanks.
~ Oleksii
Quoted 8 lines
Roger Pau Monne (3):
cirrus-ci: install libinotify for FreeBSD
cirrus-ci: fix bashism in thetest_scriptcode
cirrus-ci: bump FreeBSD version.cirrus.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)