Change in osmo-ci[master]: jobs: osmo-gsm-tester-runner: Add ttcn3 job

2018-05-19 Thread Pau Espin Pedrol
Pau Espin Pedrol has posted comments on this change. ( 
https://gerrit.osmocom.org/9225 )

Change subject: jobs: osmo-gsm-tester-runner: Add ttcn3 job
..


Patch Set 2: Verified+1


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

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
Gerrit-Change-Number: 9225
Gerrit-PatchSet: 2
Gerrit-Owner: Pau Espin Pedrol 
Gerrit-Reviewer: Harald Welte 
Gerrit-Reviewer: Pau Espin Pedrol 
Gerrit-Reviewer: lynxis lazus 
Gerrit-Comment-Date: Sat, 19 May 2018 12:06:25 +
Gerrit-HasComments: No
Gerrit-HasLabels: Yes


Change in osmo-ci[master]: jobs: osmo-gsm-tester-runner: Add ttcn3 job

2018-05-19 Thread Pau Espin Pedrol
Pau Espin Pedrol has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/9225 )

Change subject: jobs: osmo-gsm-tester-runner: Add ttcn3 job
..

jobs: osmo-gsm-tester-runner: Add ttcn3 job

Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
---
M jobs/osmo-gsm-tester-runner.yml
A jobs/osmo-gsm-tester_ttcn3.sh
2 files changed, 41 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Pau Espin Pedrol: Verified



diff --git a/jobs/osmo-gsm-tester-runner.yml b/jobs/osmo-gsm-tester-runner.yml
index 5e1ff92..f6774b7 100644
--- a/jobs/osmo-gsm-tester-runner.yml
+++ b/jobs/osmo-gsm-tester-runner.yml
@@ -7,6 +7,7 @@
 jobs:
   - 'osmo-gsm-tester_run-{stage}'
   - 'osmo-gsm-tester_gerrit'
+  - 'osmo-gsm-tester_ttcn3'

 - scm:
 name: osmo-gsm-tester-gerrit
@@ -166,3 +167,29 @@
   - junit:
   results: 'trial-*/last_run/trial-*.xml'
   allow-empty-results: true
+
+# ttcn3 job
+- job:
+name: 'osmo-gsm-tester_ttcn3'
+defaults: runner
+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: !include-raw: osmo-gsm-tester_ttcn3.sh
+publishers:
+  - archive:
+  artifacts: '*-run.tgz, *-bin.tgz'
+  default-excludes: false
+  - junit:
+  results: 'trial-*/last_run/trial-*.xml'
+  allow-empty-results: true
diff --git a/jobs/osmo-gsm-tester_ttcn3.sh b/jobs/osmo-gsm-tester_ttcn3.sh
new file mode 100644
index 000..f2b974f
--- /dev/null
+++ b/jobs/osmo-gsm-tester_ttcn3.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+set -e -x
+
+# On our hardware, we actually use the example configuration as-is.
+export OSMO_GSM_TESTER_CONF="$PWD/osmo-gsm-tester/ttcn3"
+
+# debug: provoke a failure
+#export OSMO_GSM_TESTER_OPTS="-s debug -t fail"
+
+unlink osmo-gsm-tester/ttcn3/resources.conf || true
+ln -s resources.conf.prod osmo-gsm-tester/ttcn3/resources.conf
+
+PATH="$PWD/osmo-gsm-tester/src:$PATH" \
+  ./osmo-gsm-tester/ttcn3/jenkins-run.sh

--
To view, visit https://gerrit.osmocom.org/9225
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: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
Gerrit-Change-Number: 9225
Gerrit-PatchSet: 2
Gerrit-Owner: Pau Espin Pedrol 
Gerrit-Reviewer: Harald Welte 
Gerrit-Reviewer: Pau Espin Pedrol 
Gerrit-Reviewer: lynxis lazus 


Change in osmo-ci[master]: jobs: osmo-gsm-tester-runner: Add ttcn3 job

2018-05-19 Thread Harald Welte
Harald Welte has posted comments on this change. ( 
https://gerrit.osmocom.org/9225 )

Change subject: jobs: osmo-gsm-tester-runner: Add ttcn3 job
..


Patch Set 2: Code-Review+2


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

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
Gerrit-Change-Number: 9225
Gerrit-PatchSet: 2
Gerrit-Owner: Pau Espin Pedrol 
Gerrit-Reviewer: Harald Welte 
Gerrit-Reviewer: Pau Espin Pedrol 
Gerrit-Reviewer: lynxis lazus 
Gerrit-Comment-Date: Sat, 19 May 2018 07:57:17 +
Gerrit-HasComments: No
Gerrit-HasLabels: Yes


Change in osmo-ci[master]: jobs: osmo-gsm-tester-runner: Add ttcn3 job

2018-05-18 Thread Pau Espin Pedrol
Hello lynxis lazus,

I'd like you to reexamine a change. Please visit

https://gerrit.osmocom.org/9225

to look at the new patch set (#2).

Change subject: jobs: osmo-gsm-tester-runner: Add ttcn3 job
..

jobs: osmo-gsm-tester-runner: Add ttcn3 job

Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
---
M jobs/osmo-gsm-tester-runner.yml
A jobs/osmo-gsm-tester_ttcn3.sh
2 files changed, 41 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/25/9225/2
--
To view, visit https://gerrit.osmocom.org/9225
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
Gerrit-Change-Number: 9225
Gerrit-PatchSet: 2
Gerrit-Owner: Pau Espin Pedrol 
Gerrit-Reviewer: Pau Espin Pedrol 
Gerrit-Reviewer: lynxis lazus 


Change in osmo-ci[master]: jobs: osmo-gsm-tester-runner: Add ttcn3 job

2018-05-18 Thread Pau Espin Pedrol
Pau Espin Pedrol has posted comments on this change. ( 
https://gerrit.osmocom.org/9225 )

Change subject: jobs: osmo-gsm-tester-runner: Add ttcn3 job
..


Patch Set 1:

> pip install --pre ...
 >
 > still not released yet even I'm using jjb 2.0 for other reason. I'm
 > not sure if it's worth to do a workaround in our receipts?!

It seems I required to pass "--upgrade" after install in order to get a newer 
version. Now I have 2.0 and it works fine. I'm pushing a new version of this 
patch soon, so no need to merge it yet.

Thanks for your support!


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

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
Gerrit-Change-Number: 9225
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol 
Gerrit-Reviewer: Pau Espin Pedrol 
Gerrit-Reviewer: lynxis lazus 
Gerrit-Comment-Date: Fri, 18 May 2018 12:29:10 +
Gerrit-HasComments: No
Gerrit-HasLabels: No


Change in osmo-ci[master]: jobs: osmo-gsm-tester-runner: Add ttcn3 job

2018-05-18 Thread lynxis lazus
lynxis lazus has posted comments on this change. ( 
https://gerrit.osmocom.org/9225 )

Change subject: jobs: osmo-gsm-tester-runner: Add ttcn3 job
..


Patch Set 1:

pip install --pre ...

still not released yet even I'm using jjb 2.0 for other reason. I'm not sure if 
it's worth to do a workaround in our receipts?!


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

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
Gerrit-Change-Number: 9225
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol 
Gerrit-Reviewer: Pau Espin Pedrol 
Gerrit-Reviewer: lynxis lazus 
Gerrit-Comment-Date: Fri, 18 May 2018 12:02:11 +
Gerrit-HasComments: No
Gerrit-HasLabels: No


Change in osmo-ci[master]: jobs: osmo-gsm-tester-runner: Add ttcn3 job

2018-05-18 Thread Pau Espin Pedrol
Pau Espin Pedrol has posted comments on this change. ( 
https://gerrit.osmocom.org/9225 )

Change subject: jobs: osmo-gsm-tester-runner: Add ttcn3 job
..


Patch Set 1:

> works for me. I'm using jjb 2.0

Thanks for the info, I'll try updating my jjb and see if it fixes the issue. I 
already tried doing pip --upgrade yesterday but it told me it was up to date.


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

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
Gerrit-Change-Number: 9225
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol 
Gerrit-Reviewer: Pau Espin Pedrol 
Gerrit-Reviewer: lynxis lazus 
Gerrit-Comment-Date: Fri, 18 May 2018 10:18:47 +
Gerrit-HasComments: No
Gerrit-HasLabels: No


Change in osmo-ci[master]: jobs: osmo-gsm-tester-runner: Add ttcn3 job

2018-05-17 Thread lynxis lazus
lynxis lazus has posted comments on this change. ( 
https://gerrit.osmocom.org/9225 )

Change subject: jobs: osmo-gsm-tester-runner: Add ttcn3 job
..


Patch Set 1:

works for me. I'm using jjb 2.0


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

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
Gerrit-Change-Number: 9225
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol 
Gerrit-Reviewer: Pau Espin Pedrol 
Gerrit-Reviewer: lynxis lazus 
Gerrit-Comment-Date: Thu, 17 May 2018 18:34:45 +
Gerrit-HasComments: No
Gerrit-HasLabels: No


Change in osmo-ci[master]: jobs: osmo-gsm-tester-runner: Add ttcn3 job

2018-05-17 Thread Pau Espin Pedrol
Pau Espin Pedrol has posted comments on this change. ( 
https://gerrit.osmocom.org/9225 )

Change subject: jobs: osmo-gsm-tester-runner: Add ttcn3 job
..


Patch Set 1: Code-Review-1

Don't merge this one, I couldn't verify it yet since current master of 
osmo-gsm-tester-runner.yml is broken, fails with error:
FileNotFoundError: [Errno 2] No such file or directory: 
'osmo-gsm-tester_run-{stage}.sh'

I already pinged lynxis about it.


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

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
Gerrit-Change-Number: 9225
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol 
Gerrit-Reviewer: Pau Espin Pedrol 
Gerrit-Reviewer: lynxis lazus 
Gerrit-Comment-Date: Thu, 17 May 2018 17:14:33 +
Gerrit-HasComments: No
Gerrit-HasLabels: Yes


Change in osmo-ci[master]: jobs: osmo-gsm-tester-runner: Add ttcn3 job

2018-05-17 Thread Pau Espin Pedrol
Pau Espin Pedrol has uploaded this change for review. ( 
https://gerrit.osmocom.org/9225


Change subject: jobs: osmo-gsm-tester-runner: Add ttcn3 job
..

jobs: osmo-gsm-tester-runner: Add ttcn3 job

Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
---
M jobs/osmo-gsm-tester-runner.yml
A jobs/osmo-gsm-tester_ttcn3.sh
2 files changed, 41 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/25/9225/1

diff --git a/jobs/osmo-gsm-tester-runner.yml b/jobs/osmo-gsm-tester-runner.yml
index 5e1ff92..d6bece9 100644
--- a/jobs/osmo-gsm-tester-runner.yml
+++ b/jobs/osmo-gsm-tester-runner.yml
@@ -7,6 +7,7 @@
 jobs:
   - 'osmo-gsm-tester_run-{stage}'
   - 'osmo-gsm-tester_gerrit'
+  - 'osmo-gsm-tester_ttcn3'

 - scm:
 name: osmo-gsm-tester-gerrit
@@ -166,3 +167,29 @@
   - junit:
   results: 'trial-*/last_run/trial-*.xml'
   allow-empty-results: true
+
+# ttcn3 job
+- job:
+name: 'osmo-gsm-tester_ttcn3'
+defaults: runner
+scm:
+  - 'osmo-gsm-tester-gerrit'
+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: !include-raw: osmo-gsm-tester_ttcn3.sh
+publishers:
+  - archive:
+  artifacts: '*-run.tgz, *-bin.tgz'
+  default-excludes: false
+  - junit:
+  results: 'trial-*/last_run/trial-*.xml'
+  allow-empty-results: true
diff --git a/jobs/osmo-gsm-tester_ttcn3.sh b/jobs/osmo-gsm-tester_ttcn3.sh
new file mode 100644
index 000..f2b974f
--- /dev/null
+++ b/jobs/osmo-gsm-tester_ttcn3.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+set -e -x
+
+# On our hardware, we actually use the example configuration as-is.
+export OSMO_GSM_TESTER_CONF="$PWD/osmo-gsm-tester/ttcn3"
+
+# debug: provoke a failure
+#export OSMO_GSM_TESTER_OPTS="-s debug -t fail"
+
+unlink osmo-gsm-tester/ttcn3/resources.conf || true
+ln -s resources.conf.prod osmo-gsm-tester/ttcn3/resources.conf
+
+PATH="$PWD/osmo-gsm-tester/src:$PATH" \
+  ./osmo-gsm-tester/ttcn3/jenkins-run.sh

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

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
Gerrit-Change-Number: 9225
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol