canonical-hw-cert team mailing list archive
-
canonical-hw-cert team
-
Mailing list archive
-
Message #40291
[Merge] ~pgentili/hwcert-jenkins-jobs:zapper-snap-refresh into hwcert-jenkins-jobs:master
Paolo Gentili has proposed merging ~pgentili/hwcert-jenkins-jobs:zapper-snap-refresh into hwcert-jenkins-jobs:master.
Commit message:
Change: refresh zapper snap from edge channel before launching checkbox testplan
Requested reviews:
Sylvain Pineau (sylvain-pineau)
For more details, see:
https://code.launchpad.net/~pgentili/hwcert-jenkins-jobs/+git/hwcert-jenkins-jobs/+merge/433573
New version of Zapper Control is shipped as a snap. Our Jenkins Job for CI/CD should snap refresh it before launching the zapper test plan.
Successful run here: http://10.102.156.15:8080/job/cert-zapper-hp-probook-440-g9/113
NOTE:
snap refresh command is called over SSH: ZAPPER must have authorized DUT's SSH key. Hence, during setup in the lab, "ssh-copy-id ZAPPER-HOST" is required.
--
Your team hwcert-jenkins is subscribed to branch hwcert-jenkins-jobs:master.
diff --git a/jobs/zapper/run-zapper.sh b/jobs/zapper/run-zapper.sh
index 6a550bf..f7934c6 100644
--- a/jobs/zapper/run-zapper.sh
+++ b/jobs/zapper/run-zapper.sh
@@ -46,6 +46,9 @@ cat > job.yaml <<EOF
_run sudo pip3 install rpyc==5.0.0
_run sudo apt-get -qq upgrade -y
+ echo "preparing zapper host..."
+ _run ssh -t \$SSH_OPTS \$ZAPPER_IP sudo snap refresh --edge zapper
+
echo Starting
# DISPLAY=:0 to make sure graphic test jobs were tested expectedly (not necessary in remote)
PYTHONUNBUFFERED=1 checkbox-cli remote \$DEVICE_IP checkbox-launcher
Follow ups