Skip to contentSkip to conversation

gitlab-ci: Check building KVM-only aarch64 target

PATCH In review Philippe Mathieu-Daudé 2 participants 2 messages Jan 20, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gitlab-ci: Check building KVM-only aarch64 target

Add a manual new job to cross-build the aarch64 target with only the KVM accelerator enabled (in particular, no TCG).

Re-enable running the similar job on the project Aarch64 custom runner.

---
Based-on: <[email protected]>
target/arm: CONFIG_TCG=n part 1

Successful job:
https://gitlab.com/philmd/qemu/-/jobs/3630178191
Duration: 15 minutes 25 seconds

Since v1:
- mark job as manual (Alex)
- re-enable on custom runner

---
 .gitlab-ci.d/crossbuilds.yml                         | 11 +++++++++++
 .gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml |  4 ----
 2 files changed, 11 insertions(+), 4 deletions(-)
.gitlab-ci.d/crossbuilds.yml +11 -0
index 8dbbb8f881..2d47a5dec3 100644
@@ -210,3 +210,14 @@ cross-arm64-xen-only:
     IMAGE: debian-arm64-cross
     ACCEL: xen
     EXTRA_CONFIGURE_OPTS: --disable-tcg --disable-kvm
+
+# Similar job is run by qemu-project's custom runner by default
+cross-arm64-kvm-only:
+  extends: .cross_accel_build_job
+  needs:
+    job: arm64-debian-cross-container
+  variables:
+    QEMU_JOB_OPTIONAL: 1
+    IMAGE: debian-arm64-cross
+    ACCEL: kvm
+    EXTRA_CONFIGURE_OPTS: --disable-tcg --disable-xen --without-default-devices
.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml +0 -4
index abeb33eaff..40ed011f29 100644
@@ -115,11 +115,7 @@ ubuntu-22.04-aarch64-notcg:
  - aarch64
  rules:
  - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH =~ /^staging/'
-   when: manual
-   allow_failure: true
  - if: "$AARCH64_RUNNER_AVAILABLE"
-   when: manual
-   allow_failure: true
  script:
  - mkdir build
  - cd build
Signature · 1 line
2.38.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 15 lines · Philippe Mathieu-Daudé

Add a manual new job to cross-build the aarch64 target with only the KVM accelerator enabled (in particular, no TCG).

Re-enable running the similar job on the project Aarch64 custom runner.

---
Based-on: <[email protected]>
target/arm: CONFIG_TCG=n part 1

Successful job:
https://gitlab.com/philmd/qemu/-/jobs/3630178191
Duration: 15 minutes 25 seconds

Quoted 7 lines

Since v1:
- mark job as manual (Alex)
- re-enable on custom runner

---
  .gitlab-ci.d/crossbuilds.yml                         | 11 +++++++++++
  .gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml |  4 ----
  2 files changed, 11 insertions(+), 4 deletions(-)