← Back to team overview

canonical-hw-cert team mailing list archive

[Merge] ~kevinyeh/hwcert-jenkins-jobs:add-carlsbad-job into hwcert-jenkins-jobs:master

 

Kevin Yeh has proposed merging ~kevinyeh/hwcert-jenkins-jobs:add-carlsbad-job into hwcert-jenkins-jobs:master.

Commit message:
Add: add carlsbad for snap-testing

Requested reviews:
  hwcert-jenkins (hwcert-jenkins)

For more details, see:
https://code.launchpad.net/~kevinyeh/hwcert-jenkins-jobs/+git/hwcert-jenkins-jobs/+merge/430365
-- 
Your team hwcert-jenkins is requested to review the proposed merge of ~kevinyeh/hwcert-jenkins-jobs:add-carlsbad-job into hwcert-jenkins-jobs:master.
diff --git a/jobs/snap-testing/configs/checkbox.conf.carlsbad b/jobs/snap-testing/configs/checkbox.conf.carlsbad
new file mode 100644
index 0000000..e109da7
--- /dev/null
+++ b/jobs/snap-testing/configs/checkbox.conf.carlsbad
@@ -0,0 +1,33 @@
+# Please keep the indents below, for yaml formatting/templating
+        [environment]
+        WIFI_INTERFACE=wlan0
+        OPEN_N_SSID=cert-n-open-tel-l3-01
+        OPEN_BG_SSID=cert-bg-open-tel-l3-01
+        OPEN_AC_SSID=cert-ac-open-tel-l3-01
+        WPA_N_SSID=cert-n-wpa-tel-l3-01
+        WPA_BG_SSID=cert-bg-wpa-tel-l3-01
+        WPA_AC_SSID=cert-ac-wpa-tel-l3-01
+        WPA_N_PSK=insecure
+        WPA_BG_PSK=insecure
+        WPA_AC_PSK=insecure
+        OBEX_TARGET=00:02:72:C5:F9:1F
+        WWAN_APN=internet.iot
+        WWAN_NET_IF=wwan0
+        WWAN_CONTROL_IF=cdc-wdm0
+        STRESS_BOOT_ITERATIONS=30
+        STRESS_S3_ITERATIONS=30
+        STRESS_S4_ITERATIONS=100
+        TEST_TARGET_IPERF=10.101.51.151
+        STRESS_S4_WAIT_DELAY=120
+        STRESS_S4_SLEEP_DELAY=60
+        STRESS_S3_SLEEP_DELAY=60
+        STRESS_BOOT_WAKEUP_DELAY=60
+        STRESS_S3_WAIT_DELAY=120
+        STRESS_BOOT_WAIT_DELAY=120
+        WIFI_AP_SETUPTIME=30
+        WWAN_SETUPTIME=30
+        TPM2TOOLS_TCTI_NAME=device
+        TPM2TOOLS_DEVICE_FILE=/dev/tpm0
+        STORE_ID=xXJojO3mHEkSLBuM62FA
+        SERIAL_FPGA_PORT=/dev/ttyUSB0
+        SERIAL_PORTS_STATIC=/dev/ttyS4
diff --git a/jobs/snap-testing/launchers/carlsbad-automated b/jobs/snap-testing/launchers/carlsbad-automated
new file mode 100644
index 0000000..d371409
--- /dev/null
+++ b/jobs/snap-testing/launchers/carlsbad-automated
@@ -0,0 +1,19 @@
+# Please keep the indents below, for yaml formatting/templating
+        [launcher]
+        app_id = com.canonical.qa.carlsbad:checkbox
+        launcher_version = 1
+        stock_reports = text, submission_files, certification
+        
+        [test plan]
+        unit = com.canonical.qa.carlsbad::carlsbad-automated
+        forced = yes
+        
+        [test selection]
+        exclude = com.canonical.certification::tpm2.*
+        forced = yes
+        
+        [ui]
+        type = silent
+        auto_retry = yes
+        max_attempts = 4
+        delay_before_retry = 30
diff --git a/jobs/snap-testing/manifests/carlsbad_manifest.conf b/jobs/snap-testing/manifests/carlsbad_manifest.conf
new file mode 100644
index 0000000..31b6870
--- /dev/null
+++ b/jobs/snap-testing/manifests/carlsbad_manifest.conf
@@ -0,0 +1,15 @@
+# keep formatting
+        [manifest]
+        com.canonical.certification::has_audio_playback = true
+        com.canonical.certification::has_audio_capture = true
+        com.canonical.certification::has_bt_adapter = false
+        com.canonical.certification::has_ethernet_adapter = true
+        com.canonical.certification::has_i2c = false
+        com.canonical.certification::has_card_reader = false
+        com.canonical.certification::has_thunderbolt3 = false
+        com.canonical.certification::has_usb_type_c = false
+        com.canonical.certification::has_usb_storage = true
+        com.canonical.certification::has_hardware_watchdog = false
+        com.canonical.certification::has_wlan_adapter = false
+        com.canonical.certification::has_wwan_module = false
+        com.canonical.certification::has_tpm2_chip = true
diff --git a/jobs/snap-testing/projects/carlsbad.yaml b/jobs/snap-testing/projects/carlsbad.yaml
new file mode 100644
index 0000000..dbaf4fa
--- /dev/null
+++ b/jobs/snap-testing/projects/carlsbad.yaml
@@ -0,0 +1,46 @@
+- project:
+    name: carlsbad
+    queue: carlsbad
+    email: ce-certification-qa@xxxxxxxxxxxxxxxxxxx
+    arch: amd64
+    store: xXJojO3mHEkSLBuM62FA
+    checkbox_snap: checkbox-carlsbad
+    launcher: ''
+    provision_data: |
+      provision_data:
+            distro: core20-latest-stable
+    custom_launcher:
+        !include-raw-escape: jobs/snap-testing/launchers/carlsbad-automated
+    extra_setup_cmds: |
+      declare -A snap_track_map
+              snap_track_map=( ["network-manager"]="20" ["iot-kernel"]="20" )
+    has-serial-assertion: True
+    snap_reset_needed: True
+    track: latest
+    user: service
+    test_data: |
+          # user and password for conroe
+                test_username: service
+                test_password: dnaallthewayallday
+    checkbox_track: latest
+    checkbox_conf:
+      !include-raw-escape: jobs/snap-testing/configs/checkbox.conf.carlsbad
+    manifest:
+      !include-raw-escape: jobs/snap-testing/manifests/carlsbad_manifest.conf
+    jobs:
+      - '{prefix}-{name}-{snap}-{channel}':
+          snap: checkbox-carlsbad
+          channel: edge
+          extra_args: --devmode
+      - '{prefix}-{name}-{snap}-{channel}':
+          snap: checkbox20
+      - '{prefix}-{name}-{snap}-{channel}':
+          snap: core20
+      - '{prefix}-{name}-{snap}-{track}-{channel}':
+          snap: network-manager
+          track: 20
+      - '{prefix}-{name}-{snap}-{track}-{channel}':
+          snap: iot-kernel
+          track: 20
+      - '{prefix}-{name}-{snap}-{channel}':
+          snap: snapd

Follow ups