← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Merge] qa-jenkins-jobs:robot-framework-jobs-refactor into qa-jenkins-jobs:master

 

Tim Andersson has proposed merging qa-jenkins-jobs:robot-framework-jobs-refactor into qa-jenkins-jobs:master.

Requested reviews:
  Canonical Platform QA Team (canonical-platform-qa)

For more details, see:
https://code.launchpad.net/~canonical-platform-qa/qa-jenkins-jobs/+git/qa-jenkins-jobs/+merge/490019

Modify jenkins jobs after RF test cases have moved to a different repository
-- 
Your team Canonical Platform QA Team is requested to review the proposed merge of qa-jenkins-jobs:robot-framework-jobs-refactor into qa-jenkins-jobs:master.
diff --git a/jobs/robot-framework-iso-testing/jobs.yaml b/jobs/robot-framework-iso-testing/jobs.yaml
index 46f80b4..3bcba7e 100644
--- a/jobs/robot-framework-iso-testing/jobs.yaml
+++ b/jobs/robot-framework-iso-testing/jobs.yaml
@@ -25,14 +25,13 @@
         - 'noble'
         - 'questing'
     test_case:
-        - 'tpm-fde-not-available'
-        - 'tpm-fde-no-passphrase'
-        # - 'tpm-fde-pin-code'
-        - 'tpm-fde-with-passphrase'
-        - 'entire-disk'
-        - 'entire-disk-with-zfs'
-        - 'entire-disk-with-zfs-plus-encryption'
-        - 'entire-disk-with-lvm-and-encryption'
+        - "Tpm-Fde-Not-Available"
+        - "Tpm-Fde-No-Passphrase"
+        - "Tpm-Fde-With-Passphrase"
+        - "Entire-Disk"
+        - "Entire-Disk-With-Zfs"
+        - "Entire-Disk-With-Zfs-Plus-Encryption"
+        - "Entire-Disk-With-Lvm-And-Encryption"
     jobs:
         - 'robot-framework-{release}-desktop-{test_case}'
 
@@ -49,6 +48,10 @@
           name: RF_BRANCH
           default: 'main'
           description: branch of RF to run tests from
+      - string:
+          name: UGT_BRANCH
+          default: 'main'
+          description: branch of UGT to run tests from
     node: 'rf-iso-testing'
     triggers:
         - pollurl:
@@ -110,6 +113,7 @@
                 cache_dir="/srv/data/.rf_image_cache/{release}/"
                 retry -t 3 -d 180 -- git clone -b "$HIT_BRANCH" https://oauth2:"$GH_PAT"@github.com/canonical/hardware-installer-testing.git
                 retry -t 3 -d 180 -- git clone -b "$RF_BRANCH" https://oauth2:"$GH_PAT"@github.com/canonical/yarf.git
+                retry -t 3 -d 180 -- git clone -b "$UGT_BRANCH" https://oauth2:"$GH_PAT"@github.com/canonical/ubuntu-gui-testing.git
                 DEBIAN_FRONTEND=noninteractive sudo apt-get install -y clang libxkbcommon-dev tesseract-ocr
                 ISO_PATH="${{cache_dir}}{release}-desktop-amd64.iso"
                 cd yarf/
@@ -118,19 +122,19 @@
                 uv sync
                 . .venv/bin/activate
                 uv pip install .[develop] -r ../hardware-installer-testing/requirements.txt
-                cd ../hardware-installer-testing
+                series="{release}"
                 if [[ "{test_case}" == *"tpm-fde"* ]]; then
                     if [[ "{release}" == "noble" ]]; then
                         echo "We do not run tpm fde testing for noble at this point in time."
                         exit 2
                     fi
-                    if [[ "{test_case}" == "tpm-fde-not-available" ]]; then
-                        ./runner/spawn_and_run_test_suite.py --test-suite robot/test-cases/{release}/{test_case} --iso "$ISO_PATH" --qemu-args-json ./runner/qemu-args.json --cleanup-storage --storage-prefix /srv/data
+                    if [[ "{test_case}" == "Tpm-Fde-Not-Available" ]]; then
+                        ./hardware-installer-testing/runner/spawn_and_run_test_suite.py --test-suite ubuntu-gui-testing/tests/desktop-installer --iso "$ISO_PATH" --qemu-args-json ./runner/qemu-args.json --cleanup-storage --storage-prefix /srv/data --suite "${{series^}}.{test_case}"
                     else
-                        ./runner/spawn_and_run_test_suite.py --test-suite robot/test-cases/{release}/{test_case} --iso "$ISO_PATH" --qemu-args-json ./runner/qemu-args.json --cleanup-storage --storage-prefix /srv/data --tpm
+                        ./hardware-installer-testing/runner/spawn_and_run_test_suite.py --tpm --test-suite ubuntu-gui-testing/tests/desktop-installer --iso "$ISO_PATH" --qemu-args-json ./runner/qemu-args.json --cleanup-storage --storage-prefix /srv/data --suite "${{series^}}.{test_case}"
                     fi
                 else
-                    ./runner/spawn_and_run_test_suite.py --test-suite robot/test-cases/{release}/{test_case} --iso "$ISO_PATH" --qemu-args-json ./runner/qemu-args.json --cleanup-storage --storage-prefix /srv/data
+                    ./hardware-installer-testing/runner/spawn_and_run_test_suite.py --test-suite ubuntu-gui-testing/tests/desktop-installer --iso "$ISO_PATH" --qemu-args-json ./runner/qemu-args.json --cleanup-storage --storage-prefix /srv/data --suite "${{series^}}.{test_case}"
                 fi
             unstable-return: 2
     publishers:

Follow ups