You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CI: Refine Linux boot script for new feature verification
The Linux boot script previously tested both booting and VirtIO block
access simultaneously. This commit refines the boot script to test each
guest Linux feature independently. In addition, a new color (yellow) is
introduced to clearly indicate which test is currently running in the
CI, improving debugging capabilities. For future VirtIO device tests or
other new features, TEST_OPTIONS and EXPECT_CMDS can be easily updated
to extend the tests, enhancing the overall flexibility of the script.
The VirtIO block device image or loop device is prepared by the
.ci/boot-linux-prepare.sh script which decouples data and control for
system emulation validation in .ci/boot-linux.sh. This script can be
extended in the future to support additional VirtIO devices by preparing
their associated data prior to Linux boot validation.
The system validation flow is abstracted into a variable called
BOOT_LINUX_TEST which uses sudo only for data preparation and does not
use sudo to run .ci/boot-linux.sh, enhancing security when launching
the system VM.
- name: fetch artifact first to reduce HTTP requests
70
77
env:
71
78
CC: ${{ steps.install_cc.outputs.cc }}
@@ -265,15 +272,15 @@ jobs:
265
272
CC: ${{ steps.install_cc.outputs.cc }}
266
273
run: |
267
274
make distclean && make INITRD_SIZE=32 ENABLE_SYSTEM=1 $PARALLEL && make ENABLE_SYSTEM=1 artifact $PARALLEL
268
-
.ci/boot-linux.sh
275
+
bash -c "${BOOT_LINUX_TEST}"
269
276
make ENABLE_SYSTEM=1 clean
270
277
if: ${{ always() }}
271
278
- name: boot Linux kernel test (JIT)
272
279
env:
273
280
CC: ${{ steps.install_cc.outputs.cc }}
274
281
run: |
275
282
make distclean && make INITRD_SIZE=32 ENABLE_SYSTEM=1 ENABLE_JIT=1 ENABLE_T2C=0 ENABLE_MOP_FUSION=0 $PARALLEL && make ENABLE_SYSTEM=1 artifact $PARALLEL
276
-
.ci/boot-linux.sh
283
+
bash -c "${BOOT_LINUX_TEST}"
277
284
make ENABLE_SYSTEM=1 ENABLE_JIT=1 ENABLE_T2C=0 ENABLE_MOP_FUSION=0 clean
0 commit comments