Change in osmo-ci[master]: jobs: Introduce a tester using "virtual" tests

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Holger Freyther gerrit-no-reply at lists.osmocom.org
Thu Feb 21 16:04:55 UTC 2019


Holger Freyther has submitted this change and it was merged. ( https://gerrit.osmocom.org/12993 )

Change subject: jobs: Introduce a tester using "virtual" tests
......................................................................

jobs: Introduce a tester using "virtual" tests

With mobile, virtphy, osmo-bts-virtual we can run e2e tests without
the need of any hardware. Create a dedicated job for it. This avoids
having to share resources (e.g. lock state/ip allocations) with other
builds.

Change-Id: I19993b287cc948dbdfba9d375f80a7904f96ff4a
---
M jobs/osmo-gsm-tester-runner.yml
1 file changed, 57 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Holger Freyther: Verified



diff --git a/jobs/osmo-gsm-tester-runner.yml b/jobs/osmo-gsm-tester-runner.yml
index cfb32e2..e0cfe40 100644
--- a/jobs/osmo-gsm-tester-runner.yml
+++ b/jobs/osmo-gsm-tester-runner.yml
@@ -8,6 +8,7 @@
       - 'osmo-gsm-tester_run-{stage}'
       - 'osmo-gsm-tester_gerrit'
       - 'osmo-gsm-tester_ttcn3'
+      - 'osmo-gsm-tester_virtual'
 
 - scm:
     name: osmo-gsm-tester-gerrit
@@ -195,3 +196,59 @@
       - junit:
           results: 'trial-*/last_run/trial-*.xml'
           allow-empty-results: true
+
+# virtual tester job
+- job:
+    name: 'osmo-gsm-tester_virtual'
+    defaults: runner
+    node: 'osmocom-master-debian9'
+    scm:
+      - 'osmo-gsm-tester-repo'
+    triggers:
+      - timed: "H H/2 * * *"
+      - pollscm:
+          cron: "H/5 * * * *"
+    builders:
+      - shell: |
+          # make sure no bin artifacts from a previous run remain
+          rm -f *.tgz *.md5
+      - copy_artifact_all
+      - copy_artifact:
+         repo: osmo-gsm-tester_build-osmocom-bb
+      - shell: >
+            unlink osmo-gsm-tester/example/resources.conf || true
+
+            ln -s resources.conf.virtual osmo-gsm-tester/example/resources.conf
+
+            # TODO: We (want to) grant CAP_SYS_NICE for osmo-bts-virtual
+            # but with newer cgroup support and the --cpu-rt-runtime/--ulimit
+            # rtprio=99 flags we can limit the damage a job can do.
+
+            docker run --rm=true \
+              -e HOME=/build \
+              -e JOB_NAME="$JOB_NAME" \
+              -e OSMO_GSM_TESTER_CONF="/build/osmo-gsm-tester/example" \
+              -e OSMO_GSM_TESTER_OPTS="$OSMO_GSM_TESTER_OPTS" \
+              -e BUILD_NUMBER="$BUILD_NUMBER" \
+              -w /build -i \
+              -v "$PWD:/build" \
+              -v "$HOME/bin:/build_bin" \
+              -v "$HOME/.ssh:/home/build/.ssh:ro" \
+              --cap-add=sys_nice \
+              osmocom:deb9_amd64 /bin/bash -c 'LANG="en_US.utf8" LC_ALL="en_US.UTF-8" LC_LANG="en_US.UTF-8" PATH="$PWD/osmo-gsm-tester/src:${PATH}" ./osmo-gsm-tester/contrib/jenkins-run.sh'
+    publishers:
+      - archive:
+          artifacts: '*-run.tgz, *-bin.tgz'
+          default-excludes: false
+      - junit:
+          results: 'trial-*/last_run/trial-*.xml'
+          allow-empty-results: true
+    parameters:
+      - string:
+          name: "OSMO_GSM_TESTER_OPTS"
+          default: "-s nitb_netreg_mass"
+          description: "pass additional command line options to osmo-gsm-tester.py, e.g. to select specific suites:scenarios. Default: leave empty."
+      - string:
+          name: "OSMO_GSM_TESTER_BRANCH"
+          default: "origin/master"
+          description: "Which branch/sha should be used for testing"

-- 
To view, visit https://gerrit.osmocom.org/12993
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I19993b287cc948dbdfba9d375f80a7904f96ff4a
Gerrit-Change-Number: 12993
Gerrit-PatchSet: 2
Gerrit-Owner: Holger Freyther <holger at freyther.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Holger Freyther <holger at freyther.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190221/72d69ada/attachment.htm>


More information about the gerrit-log mailing list