Commit Graph

483 Commits

Author SHA1 Message Date
Neels Hofmeyr e83f8a4737 scripts/verify_log_statements.py: on parse error, print file
If string eval encounters an uncovered parse error, it's useful to know which
file it happened in.

Change-Id: I5fe9a3bbdbfb8a995f24596bf09e70ca5bb3fe8a
2018-07-19 20:13:09 +02:00
Neels Hofmeyr 6475204b4c scripts/verify_log_statements.py: strip OSMO_STRINGIFY()
Change-Id: I439ee65cd65cf42e1005ca71aa7d4b680b18c0e5
2018-07-19 20:11:51 +02:00
Neels Hofmeyr 7ae9791c59 scripts/verify_log_statements.py: figure out line numbers
Change-Id: Ib75c8f5a99ed556d85896b7f8c65fb9446a2fbce
2018-07-19 19:48:26 +02:00
Neels Hofmeyr 16515ddc78 scripts/verify_log_statements.py: fix regex
Would miss those where the fmt string starts on a new line.

Change-Id: If61a36a014a799b94030e5e08a50dfef4207a8a2
2018-07-19 19:47:07 +02:00
Neels Hofmeyr 7eec2dab31 add scripts/verify_log_statements.py
This came up in
https://gerrit.osmocom.org/#/c/osmo-bsc/+/9671/6//COMMIT_MSG@36

The errors it finds in the current code base are numerous, and many are
intended LOGP .. LOGPC calls. It doesn't make sense to enforce this, but so far
this can be used manually.

Change-Id: Id79389f090a2fded7ff01dc7e3fe9774e7f22ca0
2018-07-16 19:53:29 +02:00
Neels Hofmeyr 1bfa6c7b62 jobs: master-builds: simtrace2: pass '--publish'
Kevin would like to upload simtrace firmware to ftp.osmocom.org from master
builds. To facilitate, add '--publish' arg, like in master-osmo-gsm-manuals (to
distinguish and not upload from gerrit verification jobs).

Change-Id: I93435aa6f39e9a072754011ae7696b10315f6092
2018-07-10 16:56:40 +02:00
Neels Hofmeyr 34b5767e5a jobs: gerrit: use debian-9
This is the same as done for the master builds in
I6f025c642d5ae57cdda9d7b34bbaeb82ca119354,
seems I forgot to follow up with this one.

Change-Id: I9204ca2f083c8a6a04c6c0fc7d51752a4f1a4830
2018-07-05 06:56:49 +00:00
Neels Hofmeyr ec6aa1593f verify_value_string_arrays_are_terminated.py: allow dir args and no args
So far we call with a $(find . -name "*.[hc]") argument list, which might
become too long at some point. Rather include dir walking in the script itself
and allow passing dir arguments as well.

This is backwards compatible, calling with above file args still works.

Change-Id: I36456383906b6295c798b82aa131dda21f8efc02
2018-07-05 06:56:49 +00:00
Harald Welte 6866852c37 jobs: add master+gerrit verification job for gapk
Change-Id: Iedf3b43c164ae7e3e653820284c4d4ddaa545784
2018-07-03 15:24:25 +00:00
Daniel Willmann 68a838c435 Restrict where the parent build runs for osmo-gsm-manuals
This seems to resolve the issue where the jenkins job fails due to
missing ssh credentials.

Other jobs can also use this by setting the node property

Change-Id: I23cf2c98f02278a5deb9c4ae8d13438b76538287
Ticket: OS#3338
2018-07-03 05:59:30 +00:00
Pau Espin f82bc2a1c9 ansible: gsm-tester: Add IP addr for osmo-bts-octphy to bind to
Change-Id: I708960790e330a24c653f162b767d3b3ca4d145d
2018-07-02 17:08:06 +00:00
Pau Espin 6f5120ca37 ansible: gsm-tester: Assign IP addr in different range to nanobts
We currently use range around 10.42.42.1-10 for local dynamically
assigned IP addresses (osmo-msc, osmo-bsc, etc.).
The range 10.42.42.50-60 for local statically assigned IP addresses
(to run osmo-bts-trx sysmocell-5k for instance, where the other end
is cofigured with a static dst addr).
For remote addresses, we use IPs in the range 10.42.42.110-120.
Let's create a new range in 10.42.42.120-130 for remote addressess
assigned by udhcpd server.

nanobts assigned assdresses are moved to the latest group to
differentiate them easily and show that they are not IP addr used
locally.

Change-Id: I9eadb0329a670ce6c2254520d9c86bfbdc898b3a
2018-07-02 17:08:04 +00:00
Harald Welte 63c316738c Add simtrace2 gerrit + master jobs
Change-Id: Ib4da0011337d5a591944821411479f1c6bcc64ee
2018-06-29 21:45:55 +02:00
Pau Espin c97b444d1f obs-nightly: build debian pkgs from osmo-python-tests
Change-Id: Id8b4b4d7a1e4328565b06faff2eaccea7efa74e2
2018-06-26 16:13:46 +02:00
Pau Espin fc05401420 obs-nightly: Upgrade to newer required limesuite
osmo-trx-lms requires limesuite newer than 17.02, as there were a lot of
features and bug fixes which osmo-trx relies on. Furthermore,
osmo-trx-lms cannot build with that version since it doesn't provide
yet a pkgconfig file.
We cannot use latest tagged release (18.06) since that version has some
build related bugs which have been fixed later on
(c1496679cadff2913cacdaa84afe93bbee76d8e4), hence why we are using
latest available master instead.

Change-Id: If47a3767c7fefbb75923cbfc8eeb921e29393285
2018-06-25 17:07:47 +02:00
Pau Espin 268aba7b3c obs-nightly: list limesuite before osmo-trx
Let's move limesuite first since it doesn't depend itself on any osmocom
related package, and osmo-trx depends on it.

Change-Id: I0cdc85a2d0212432bf0c2586230660d363212dcc
2018-06-25 17:05:40 +02:00
Neels Hofmeyr 4a85bf4584 verify_value_string_arrays_are_terminated.py: allow terminating with '{}'
Writing '{ 0, NULL }' is actually identical to just '{}', and that's what I use
these days in all sorts of other contexts. So allow this notation as well in
the C code grepper.

Change-Id: I0822d2d997dccbfb31316953a7b6024c317d92cf
2018-06-16 13:46:41 +00:00
Harald Welte 98cc650b48 ansible: Add various additional packages to osmocom-workstation
Change-Id: I9d22cd6e4d3a3c8c685362bb62cd2a6ef467c461
2018-06-13 11:12:18 +00:00
Harald Welte 1600f979e7 osmocom-workstatin: change default user to osmocom
Change-Id: I35da5f2276730c7f81d5a1c2e6878ea3e23bca3b
2018-06-13 11:12:18 +00:00
Harald Welte 3547a81e37 ansible: osmocom-workstation: Add user to 'docker' group
Change-Id: I43169dfb39525ffe16a3ed1cbf5360b47f9f8a00
2018-06-13 11:12:18 +00:00
Harald Welte 18b8307d8f ansible: osmocom-workstation: clone ttcn-3 deps
Change-Id: Ib0169c858c3c0610e49d01f1dafee5c725ddc7df
2018-06-13 11:12:18 +00:00
Harald Welte 03dcb21b4a ansible: Use SDK/toolchain for 2.3.4, not 2.3.2
Change-Id: Ia39284acce65c5779b71154662f3f55349a86960
2018-06-13 11:12:18 +00:00
Alexander Couzens feda39b8e7 ansible: gsm-tester: change production gsm_modems to 3
In the production setup, there are only 3 valid modems.
Moving the variable into the host_vars so they can have
different amount of modem between rnd & prod.

Change-Id: Ic51a14a339bb9be50504a27a724f6f428ee7304f
2018-06-12 16:17:27 +00:00
Alexander Couzens ecb756f37c anisble: gsm-tester: uhubctl: add "-n 1d50:4002"
uhubctl -p 123456 -a 1 is rejecting because uhubctl detects two hubs.
Selecting only one hub.

Fixes the error message:
    Error: changing port state for multiple hubs at once is not supported.
    Use -l to limit operation to one hub!

Change-Id: I2e3c248e4eaef39f18ff38d1055db6d552fc4d20
2018-06-12 16:17:06 +00:00
Alexander Couzens b3ce1d1f2d ansible: fix deprecation of "include:"
"include:" has been deprecated in favour of "include_tasks:".

Change-Id: I6e1bb11e9392f7da9ed554c37f9625daa0950308
2018-06-12 16:16:30 +00:00
Alexander Couzens e5182e1f69 ansible: fix deprecation of filter "| changed"
"| changed" filter will be removed in ansible 2.9

Change-Id: Idf11d54d60b78733ed212f04940cee15b3a55400
2018-06-12 16:16:28 +00:00
Harald Welte 6cce4c2d20 add "osmocom-workstation" role
this role can be used to provision developer workstations, which
includes a git clone of all osmocom git repositories as well as
development tools like valgrind, gdb, ccache, wireshark, ...

Change-Id: I1a943079470db97f41c9c38318feb0716daa7cd5
2018-06-10 15:27:08 +02:00
Harald Welte 227b9ec40d gerrit/gerrit: Add osmo-sysmon build verification
Change-Id: I41411123836d2713f833f78c5920cbbee695ed14
2018-06-10 15:27:08 +02:00
Alexander Couzens 5707b730f8 ansible: gsm-tester: fix apt_repository tasks
Mistyped filename and apt_repostory

Change-Id: Icc97d9d2355f8922853d6b21cb8a95f532347031
2018-06-07 14:57:43 +02:00
Alexander Couzens 9c8b13d2ad ansible: gsm-tester-bts: remove role prefix in names
The role is prefixed anyway by newer ansible's. No need
to manual add it

Change-Id: I4ef16b2e9ab594dd0f76baf43979e73b51282c14
2018-06-07 14:57:43 +02:00
Alexander Couzens da0788f89c ansible: setup-gsm-tester.yml: use role gsm-tester-bts
Change-Id: I7cf033605ad1da6c3ea887b5ba72507bcd6991c7
2018-06-07 14:57:43 +02:00
Alexander Couzens 22672f06d7 ansible: gsm-tester: add udev rule to allow jenkins to access sispm devices
Change-Id: Idd0426a8130046e7aacc02421440eb403bd88888
2018-06-07 14:57:43 +02:00
Alexander Couzens 1620014708 ansible: gsm-tester-network: start all network interfaces after adding new ones
Change-Id: I197dadb68cffeba4c451d2fbfe40075039a67cb8
2018-06-07 12:48:28 +00:00
Alexander Couzens b25b15d8bd ansible: gsm-tester: add missing python dependencies
Change-Id: I0871df95a968f8f9e9318882c5397a16cba1814a
2018-06-07 12:48:17 +00:00
Alexander Couzens 7c7b83c93e ansible: gsm-tester: only check once the apt freshness
Change-Id: I40462fed216b1c0844a41172001dd2aaf8a8d04c
2018-06-07 12:47:55 +00:00
Alexander Couzens 088d2d6bb7 ansible: udhcpd: add systemd service file
The udhcpd /etc/init.d/ script is racy and fails often.

Change-Id: Ie373119a902a001f093599e289cadb8b2d290668
Fixes: OS#3311
2018-06-07 12:47:44 +00:00
Alexander Couzens 4be1378a89 ansible: osmocom-jenkins-slave: install autoconf-archive
Required at least by osmo-sysmon.

Change-Id: I5c6536bfb68ffdda7ec7bf71f5d0efeb1cb77e61
2018-06-05 19:23:27 +02:00
Alexander Couzens 246fd550f0 README.md: mark the version bold
Some parts will fail if used with earlier version.

Change-Id: Iab002a51afc2cc60875696eff0cd538ff9a49eca
2018-06-05 11:55:39 +02:00
Harald Welte 9f7affb20e Revert "osmocom-latest-packages: Also accept "v" in front of version tags"
This reverts commit 5b2bb86e8a.

While it was intended to enable automatic "latest" builds from rtl-sdr,
it breaks builds e.g. of libosmo-abis, where we have both (new) tags
without  'v' and old tags with 'v', and now the older 'v' tags win
due to lexicographical sorting :(

Change-Id: I1c8d2ab18e389a8c2c41082d997f101d72c3acc0
2018-06-04 14:09:21 +02:00
Harald Welte c4f4290f3a osmocom-latest-packages: diable rtl-sdr and osmo-fl2k again
we cannot yet build "latest" for them, as they don't have any tagged
versions yet which include the /debian directory.

Change-Id: Ia5708508d918fd71eb05393e39b93859b943d623
2018-06-03 20:08:30 +02:00
Harald Welte 5b2bb86e8a osmocom-latest-packages: Also accept "v" in front of version tags
Some projects (notably rtl-sdr) use "v" in front of their version
tags in the git history.  Let's make sure we also recognize those.

Change-Id: I20f9896cc7844a6ddec7ba63bc9a77f548082e2a
2018-06-03 20:05:39 +02:00
Harald Welte 534bb718b6 osmocom latest+nightly packages: Add osmo-fl2k
Now that osmo-fl2k has debian packaging information included, we can
easily build it as part of the "latest" and "nightly" feeds.

Change-Id: Ie2429df14ad51aadb55b4a7d8f6cfcb45c5c6e70
2018-06-03 16:27:10 +02:00
Harald Welte f2fb8a9e2c osmocom latest+nightly packages: Add rtl-sdr
Now that rtl-sdr has debian packaging information included, we can
easily build it as part of the "latest" and "nightly" feeds.

Change-Id: Idc6afb523e71ed977401d707895844bad6247f8b
2018-06-03 15:37:06 +02:00
Harald Welte a6a42a06c9 master-builds.yml: More fine-grained e-mail notifications
Some projects should alert certain inidividuals/maintainers

Change-Id: I8aca77d557b2471aa23aa3418d72e7a62734524d
2018-06-03 13:53:31 +02:00
Harald Welte 9f2f265e3b add script to create virtual machine with kernel gtp ggsn for qemu-kvm
Change-Id: Id9f1aee5d4158024517bc8e3884929b9efd1343e
2018-06-03 13:29:05 +02:00
Pau Espin cd23e09f36 ansible: Document docker login step
This step requires manual interaction since a password will be asked.

Change-Id: I193c721490c115a17c2f6753b3b139d7dc33aa39
2018-05-25 12:16:09 +02:00
Alexander Couzens acfaecc008 ansible: add a simple README.md
Change-Id: I96057bb92faa8e3375c5bad20ef1536475807b67
2018-05-24 16:35:33 +02:00
Alexander Couzens 8508b81403 ansible: gsm-tester: add jenkins to the dialout group
To access tty*

Change-Id: Icc7b3fa9ca7c14360d78069d8d42e6039afda32b
2018-05-24 16:29:29 +02:00
Alexander Couzens c5dd87a811 ansible/setup-gsm-tester: add docker
Change-Id: Idfd96c4e3556b93ca85acb94a2176ec269a906d1
2018-05-24 16:23:23 +02:00
Pau Espin 2f1d4deb71 jobs: osmo-gsm-tester-runner: Add ttcn3 job
Change-Id: I8ca1c9a3a18138a27232efba7d65d6806e044a6b
2018-05-18 13:42:01 +02:00