[ci][github] Fix CI stability

* Sometimes apt-get install qemu fails with fetch error, run apt-get
update first to mitigate
* unittest.py often fails due to app shell not started in 0.5s, increase
  timeout
This commit is contained in:
Kelvin Zhang
2025-05-28 15:40:48 -07:00
committed by Kelvin Zhang
parent 15e3cca123
commit 91a65fd20d
2 changed files with 2 additions and 1 deletions

View File

@@ -72,6 +72,7 @@ jobs:
if: ${{ matrix.project == 'qemu-virt-arm64-test' }}
shell: bash
run: |
env -i DEBIAN_FRONTEND=noninteractive sudo apt-get update
env -i DEBIAN_FRONTEND=noninteractive sudo apt-get install -y qemu-system-arm
- name: unittest
if: ${{ matrix.project == 'qemu-virt-arm64-test' }}

View File

@@ -66,7 +66,7 @@ def main():
try:
os.set_blocking(p.stdout.fileno(), False)
condition_met, output = wait_for_output(
p.stdout, lambda l: "starting app shell" in l, 0.5)
p.stdout, lambda l: "starting app shell" in l, 1)
assert condition_met, "Did not see 'starting app shell', stdout: {}".format(
"".join(output))
p.stdin.write("uefi_load virtio0\n")