From: Heiko Schocher <hs@denx.de>
To: U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Heiko Schocher <hs@nabladev.com>, Heiko Schocher <hs@denx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Jerome Forissier <jerome.forissier@linaro.org>,
Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>
Subject: [PATCH v1 7/8] .gitlab-ci.yml: add tbot-lab
Date: Sat, 5 Apr 2025 20:46:25 +0200 [thread overview]
Message-ID: <20250405184626.22377-8-hs@denx.de> (raw)
In-Reply-To: <20250405184626.22377-1-hs@denx.de>
From: Heiko Schocher <hs@nabladev.com>
add testing real hardware with tbot.
Signed-off-by: Heiko Schocher <hs@nabladev.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
---
.gitlab-ci.yml | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 74 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 46226eb2fc..f5c24ca30c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,6 +27,7 @@ stages:
- testsuites
- test.py
- sjg-lab
+ - tbot-lab
- world build
.buildman_and_testpy_template: &buildman_and_testpy_dfn
@@ -693,3 +694,76 @@ vf2:
variables:
ROLE: vf2
<<: *lab_dfn
+
+tbottest-test-all-boards:
+ stage: tbot-lab
+ before_script:
+ # install tbot dependencies
+ - python -m pip install --upgrade pip
+ - pip3 install --user pytest mypy paramiko termcolor2 pyserial coverage pytest-cov
+ - pip3 list
+ - python3 --version
+ # configure ssh
+ - mkdir -p ~/.ssh
+ - chmod 700 ~/.ssh
+ - echo "$SSH_UB_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/staging.key
+ - chmod 600 ~/.ssh/staging.key
+ - git config --global user.email "hs@nabladev.com"
+ - git config --global user.name "Heiko Schocher"
+ - |
+ cat >>~/.ssh/config <<END
+ Host $SSH_UB_HOST
+ HostName $SSH_UB_HOST
+ User $SSH_UB_USER
+ IdentityFile ~/.ssh/staging.key
+ StrictHostKeyChecking no
+
+ Host ubtestinglab
+ HostName ubtestinglab
+ User $SSH_UB_USER
+ ProxyJump $SSH_UB_HOST
+ IdentityFile ~/.ssh/staging.key
+ StrictHostKeyChecking no
+
+ END
+ - export COLUMNS=160
+ - export PYTHONPATH=/home/uboot/.local/lib/python3.10/site-packages
+ script:
+ # install tbot dependencies
+ - python -m pip install --upgrade pip
+ - pip3 install --user pytest mypy paramiko termcolor2 pyserial coverage pytest-cov
+ - pip3 list
+ # Fix warning:
+ # The scripts coverage, coverage-3.10 and coverage3 are installed in '/home/uboot/.local/bin' which is not on PATH.
+ - export PATH=~/.local/bin:$PATH
+ # Fix warning
+ # fatal: detected dubious ownership in repository at '/builds/u-boot/custodians/u-boot-i2c'
+ - git config --global --add safe.directory /builds/u-boot/custodians/u-boot-i2c
+ # now start testing
+ - cd tbottesting
+ - echo "--------------------- test boards ------------------"
+ # set link to tbotconfig data
+ - ln -s tbotconfig-hs tbotconfig
+ # correct path to keyfile
+ - sed -i "s|~/.ssh/id_rsa|~/.ssh/staging.key|g" tbotconfig/hs/tbot.ini
+ # setup tbot
+ - ./preparetbot.sh
+ - returncode=0
+ - set +e
+ - python3 boardtests.py --usetbotflags
+ - exitcode="$?"
+ - echo "exitcode ${exitcode}"
+ - |
+ if [[ "${exitcode}" != "0" ]];then
+ echo "boardtests failed with exitcode ${exitcode}"
+ returncode=1
+ fi
+ exit "${returncode}"
+ artifacts:
+ when: always
+ paths:
+ - "./results/*"
+ reports:
+ # TODO how to report more than one board
+ junit: ./results/cxg3/results.xml
+ expire_in: 1 week
--
2.20.1
next prev parent reply other threads:[~2025-04-05 18:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-05 18:46 [PATCH v1 0/8] This series introduces U-Boot tests with tbot on real hardware Heiko Schocher
2025-04-05 18:46 ` [PATCH v1 1/8] test/py/requirements.txt: update coverage Heiko Schocher
2025-04-05 18:46 ` [PATCH v1 2/8] tools/buildman/requirements.txt: " Heiko Schocher
2025-04-05 18:46 ` [PATCH v1 3/8] test/py/requirements.txt: increase filelock version Heiko Schocher
2025-04-05 18:46 ` [PATCH v1 4/8] test/py/requirements.txt: remove unittest2 and testtools Heiko Schocher
2025-04-05 18:46 ` [PATCH v1 5/8] test: increase timeouts Heiko Schocher
2025-04-05 18:46 ` [PATCH v1 6/8] [RFC] CI: add U-Boot testing on real HW with tbot Heiko Schocher
2025-04-05 18:46 ` Heiko Schocher [this message]
2025-04-05 18:46 ` [PATCH v1 8/8] scripts: add helper for getting infos from your patchwork ToDo list Heiko Schocher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250405184626.22377-8-hs@denx.de \
--to=hs@denx.de \
--cc=hs@nabladev.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jerome.forissier@linaro.org \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox