Commit Graph

850 Commits

Author SHA1 Message Date
Pau Espin 6942211175 jobs: ogt: Rename osmo-iuh->osmo-hnbgw build jobs
The real target was not osmo-iuh itself but osmo-hnbgw. Since osmo-hnbgw
is inits own repository now, let's rename it.

Change-Id: I72e93683ea355cf0886f08a3f31568f58ff42473
2022-01-12 10:34:06 +01:00
Neels Hofmeyr 09a4c75e2a jobs: disable ttcn3-upf-test
Change-Id: I0518a65ee68fc45bf65e10f327b1d590d7456d88
2022-01-12 03:53:25 +01:00
Harald Welte 685a362e0f cosmetic: Fix typo (no canes involved)
Change-Id: I4b3dbe6fdb6053a8dd2a6b4b3d06552df1107fdf
2022-01-10 16:16:07 +01:00
Harald Welte 2c6aa82c9a remove linter jobs for osmo-e1d and osmo-e1-firmware
tnt will remain to use his slightly not-really-osmocom coding style,
as expressed in https://gerrit.osmocom.org/c/osmo-e1-hardware/+/26841

Change-Id: If2b98bd19ce1d89970dc266119e83d2a1c648454
Related: OS#5399
2022-01-10 16:12:16 +01:00
Pau Espin 2362892acb Add new repo osmo-hnbgw (latest) to build jobs and scripts
Change-Id: I634ebbfa7f471342ffcf253fdb8a316f5e71089f
2022-01-05 12:29:40 +01:00
Pau Espin 702fd8ff94 Add new repo osmo-hnbgw (nightly) to build jobs and scripts
Change-Id: I2fdbd651e4b50191e1a67e183590de99d6366ca5
2022-01-05 11:39:41 +01:00
Pau Espin 7f89d91666 jobs/master-builds: Place osmo-hnodeb properly in dependency tree
Change-Id: Id66a8be3f665ff4dc88a754d072939fbda16d719
2022-01-04 19:22:37 +01:00
Harald Welte 4bf60895e9 obs-mirror: Keep more 'latest' distributions
'latest' doesn't change very often, so we can keep history for more
distros.

Change-Id: I3c8ac31bdf394f8b94ed643413ee2a1379eb76a2
2021-12-30 16:32:04 +01:00
Harald Welte fe8c4552d8 obs-mirror-archive: keep raspbian + debian 11 (instead of 10)
Debian / Raspbian 10 are getting a bit old, and our test suites also
all have shifted to 11 by now, so let's rather keep a nightly archive of
11 as opposed to 10

Change-Id: Id08acf82d9c959553684d0d95b31a8c0379115a6
2021-12-30 16:32:04 +01:00
Harald Welte cce962cdc0 obs-mirror.sh: Keep log files of rsync job
Before this commit, the obs-mirror.log was overwritten every night,
meaning we have no history of rsync log files.

Change-Id: I26392ed8615b9f4a6aa23e92b82ad9aff01eac4b
2021-12-29 17:07:22 +01:00
Neels Hofmeyr 0c5869f359 jobs: add osmo-upf (gerrit, master builds, ttcn3 tests)
Change-Id: I43cd55c9395f2c706369afe1a9a7f475be47339f
2021-12-28 15:57:54 +01:00
Oliver Smith 37fe0ed2f4 OBS, ttcn3-testsuites: add 2021q4
Related: SYS#5726
Change-Id: I4913218b192cf0cb1fb74b239ced9a0501c2eb48
2021-12-23 09:15:48 +00:00
Oliver Smith d7fe8fd047 lint: checkpatch_osmo: ignore TRACING_LOGGING
Don't recommend to use ftrace instead of using __func__ inside printf.
This only applies to the linux kernel, not to the Osmocom code base.

Related: OS#5087
Related: https://gerrit.osmocom.org/c/libosmocore/+/6357
Change-Id: Ied23be32d3371a8b9ac9938a336474f71e7a3ccd
2021-12-22 15:10:03 +01:00
Pau Espin 82f21fa6fc repo-install-test: Validate osmo-hnodeb --version
Change-Id: I87c9c375fa810223daadd5768d6a54e9935c34eb
2021-12-21 10:57:11 +01:00
Oliver Smith 958224ea62 contrib/obs-mirror: log DRY var in rm script
Related: SYS#5764
Change-Id: I705e52030d538e6d86c72f2bccb0eb97e6dab1de
2021-12-20 13:35:19 +00:00
Oliver Smith 9b694744ea contrib/obs-mirror: redirect all output to a log file
Related: SYS#5764
Change-Id: Ie56c901877a3b0a1ad566cb243ab698f292407d5
2021-12-20 13:35:19 +00:00
Oliver Smith e3aaae199f contrib/obs-mirror: stop script on rsync error
Sync files into a temporary directory first, and only rename the temp
dir to the final dir name if rsync succeeds. Otherwise, exit with error.

Related: SYS#5764
Change-Id: Icfefd8e4bae1fd6c73445c7427aaa842c0391b2d
2021-12-20 13:35:19 +00:00
Oliver Smith 68896ff0ae contrib/obs-mirror: adjust includelist path
Point at obs-mirror-include.txt from this git repository.

Related: OS#4862
Change-Id: I4c6a6e424fd727de4e8058c916aa7eb43e7eb4b2
2021-12-20 13:35:19 +00:00
Oliver Smith 05902bd35e contrib/obs-mirror: import
Import scripts from OS#4862 to have them properly versioned. We use this
to replicate Osmocom related packages from OBS to:
https://download.osmocom.org/obs-mirror

Put it in contrib/, because it doesn't need to get installed to the
jenkins nodes (as it would happen with everything in scripts/).

Related: OS#4862
Change-Id: I3f47cddbcee6c9b85fde77a039dcd5b54dd89f2d
2021-12-20 13:35:19 +00:00
Pau Espin 9832c6aa4e jobs: Automatically push ttcn3-bts-tests to osmocom registry
This image used to be pushed to the sysmocom registry, before the
osmocom one existed. Let's make it available in the osmocom one now that
we have it instead.

The new job triggers upon conclusion of the
registry-rebuild-upload-titan job, since anyway the ttcn3-bts-tests is
based on that image and hence requires it to be built prior to it.

Related: SYS#5765
Change-Id: I65e4e5a9e539de5bfd881e08d7c5842f2266ecee
2021-12-20 11:39:26 +01:00
Oliver Smith 37f480d441 registry-rebuild-upload-titan: s/stretch/bullseye/
Depends: docker-playground Ib3bdfa3bec8f8ef42c55ca61cdee8fbca923874f
Related: OS#4969
Change-Id: Ic117725f765a83cf3d2955e19441795fe6415dd2
2021-12-16 11:01:34 +01:00
Oliver Smith cc3e7efe1a jobs/registry-update-base-images: add d:bullseye
Related: OS#4969
Change-Id: I2f30c9ff3558e3fad60117d951c85c3548eddf1b
2021-12-16 10:44:39 +01:00
Oliver Smith f0d09c50af jobs/registry-update-base-images: one image per line
Make the list of images more git friendly, and sort the debian releases
by date.

Related: OS#4969
Change-Id: Ic724aa4b2c71aa398ad7f7049e8f3406a3883eaa
2021-12-16 10:44:39 +01:00
Oliver Smith 521bfea795 jobs/ttcn3: disable TTCN3-centos-remsim
It seems that TTCN3-centos-remsim-test was disabled manually via the web
UI and only got enabled recently after rolling out unrelated changes in
jobs/ttcn3-testsuites.yml. The tests do not run properly with the centos
version and it seems that nobody is using it, so disable them again for
now.

Change-Id: I4885333d63944af3510fdf0519233989808944ff
2021-12-15 17:18:37 +00:00
Oliver Smith 31edfd7116 jobs/octsim_osmo-ccid-firmware: new job
Import the existing (non jenkins-job-builder) job with
jenkins-job-wrecker. Change it to fetch the git repository, add missing
mkdir so it works with a fresh workspace too.

Fixes: SYS#5738
Change-Id: I19d18b24a6ae5948aeaf7c46083748c70cdb3b7b
2021-12-14 13:22:04 +00:00
Oliver Smith 2b1085886c lint: checkpatch: tweak FSF_MAILING_ADDRESS error
Change-Id: Ic76132c40a9c30a167c24c4c4b53180c4cc0fb86
2021-12-14 12:52:16 +01:00
Oliver Smith 444e048693 osmocom-release-tarballs: fix missing st2 clone
Clone simtrace2.git before trying to create the tarball with git.
Fix for:
  simtrace2
    simtrace2-0.1.tar.bz2 (creating)
  + cd /osmo-ci/_temp/repos/simtrace2
  /osmo-ci/scripts/osmocom-release-tarballs.sh: 195: cd: can't cd to /osmo-ci/_temp/repos/simtrace2

Related: OS#5347
Fixes: 0221a0 ("OSMO_RELEASE_REPOS: add simtrace2, osmo-remsim")
Change-Id: I0a845549ba1fe9f0d9ab55a5c5c7bf5b8f57caae
2021-12-14 08:53:18 +00:00
Oliver Smith b5617e2f84 jobs/registry-update-base-images: add centos7
Related: SYS#5754
Change-Id: I64ce913b79dad063fd34848be538b088d6b3402d
2021-12-13 16:36:15 +01:00
Oliver Smith 3660dd99d9 jobs/ttcn3-testsuites: adjust cmd for centos7
Related: SYS#5754
Change-Id: Iaf6162682074f5f9de70d420e91a72f283e695bc
2021-12-13 16:32:25 +01:00
Oliver Smith 0221a0b7f3 OSMO_RELEASE_REPOS: add simtrace2, osmo-remsim
Adjust to simtrace2's directory structure, which does not have a
configure.ac in the main directory like all other repositories. The main
directory has a regular Makefile without autotools, only the host dir
has a configure.ac file (and only in newer versions). Deal with this by
creating two tarballs, one with "git archive" for the whole directory,
and one for the host dir only with the usual "autoreconf -fi;
./configure; make dist-bzip2". The latter one has the files created by
autoreconf ("configure" script and others).

simtrace2
├── simtrace2-0.1.tar.bz2
├── simtrace2-0.2.tar.bz2
├── simtrace2-0.3.tar.bz2
├── simtrace2-0.4.tar.bz2
├── simtrace2-0.5.1.tar.bz2
├── simtrace2-0.5.tar.bz2
├── simtrace2-0.6.1.tar.bz2
├── simtrace2-0.6.tar.bz2
├── simtrace2-0.7.0.tar.bz2
├── simtrace2-0.7.1.tar.bz2
├── simtrace2-0.8.0.tar.bz2
├── simtrace2-0.8.1.tar.bz2
├── simtrace2-host-0.6.1.tar.bz2
├── simtrace2-host-0.6.tar.bz2
├── simtrace2-host-0.7.0.tar.bz2
├── simtrace2-host-0.7.1.tar.bz2
├── simtrace2-host-0.8.0.tar.bz2
└── simtrace2-host-0.8.1.tar.bz2

Closes: OS#5347
Change-Id: Ib52a23a2a7d6ea64bfa539b1d026f035fdb3af57
2021-12-13 11:56:21 +00:00
Oliver Smith 8a32ca538a OSMO_RELEASE_REPOS: sync with Nov 2021 releases
Depends: docker-playground I19b6b0363aeeb89ab6aac2b125359589e6b9b5a7
Related: OS#5347
Related: https://osmocom.org/news/152
Change-Id: Ib2022ca670b322d81ff83bbca3bb262f8d7287a6
2021-12-13 11:56:21 +00:00
Oliver Smith 1e7b1586e4 OSMO_RELEASE_REPOS: sort
Make it easier to figure out which projects are missing.

Related: OS#5347
Change-Id: I3660032d020154b7a175483691842b576552ffd1
2021-12-13 11:56:21 +00:00
Oliver Smith 3e1019df80 jobs/ttcn3-testsuites: add centos7 pcap-client
Depends: docker-playground I775776ff7f358fee3d085f814c295c49225f5170
Closes: SYS#5754
Change-Id: I6cab8f919efd94b4d7c2664fd131f7210aac86a6
2021-12-10 12:44:52 +01:00
Oliver Smith 73b33a4e9e lint: checkpatch_osmo: ignore BRACES_NOT_NECESSARY
Don't complain about using braces when they could be omitted, for
example:
	if (condition) {
		single_statement();
	}

Another example:
	if (condition) {
		single_statement();
	} else {
		another_single_statement();
	}

This is not something we would care about in code review either from
what I've seen and so it's probably just annoying for patch authors to
fix up.

Related: OS#5087
Change-Id: Ice08d5b88c683a59bacff999a1d6c07754663d39
2021-12-08 11:32:24 +01:00
Oliver Smith 425cbb5e28 lint: checkpatch_osmo: ignore VOLATILE
The warning about potentially using volatile wrong is not useful for us,
it makes sense to use it in embedded projects.

Related: OS#5087
Related: https://www.kernel.org/doc/html/latest/process/volatile-considered-harmful.html
Related: https://gerrit.osmocom.org/c/simtrace2/+/26463
Change-Id: Ie81db479c66749531ed1c81cf076ce248aa22f69
2021-12-08 11:24:29 +01:00
Oliver Smith 78c08a33bd lint: checkpatch_osmo: ignore UNNECESSARY_BREAK
Not necessarily followed in Osmocom code, as Daniel wrote:
> The lint complains about this break, I don't agree with it though.
> Without we're one (or two) refactors away from an unintended
> fall-through

Related: OS#5087
Change-Id: I3f106510953b0b1bf70c28ceb55a431c5c03854e
2021-12-01 10:05:09 +01:00
Pau Espin cccd0cdd08 jobs: Add jenkins jobs ttcn3-hnodeb-test(-latest)
Change-Id: I451741b77f925c7402de0342b8224e24e30e7b02
2021-11-25 17:19:34 +01:00
Oliver Smith a72c79c6ae jobs/repo-install-test: centos8: enable latest
Now that we made a new release including the new .spec.in files, from
which the rpms are built, we have the rpms in the repository and can
enable the repo install test for latest.

Change-Id: I5da2b895d636b348e5aa0539a23fe4d99e8644ae
2021-11-22 15:12:40 +01:00
Oliver Smith 1e6cae565a jobs: disable "next" repository
Related: OS#5322
Change-Id: I9efd020813540941f9afa2c03b9127c04465ce91
2021-11-22 14:52:42 +01:00
Oliver Smith 2100dc42f4 OBS: latest: enable osmo-hnodeb
Enable osmo-hnodeb for latest, now that we have a tagged version.

Change-Id: I3037a43280dbb56ecaf4f2e067f0a1533d19d10a
2021-11-17 11:35:46 +01:00
Oliver Smith ec43684471 lint: checkpatch_osmo: ignore TRAILING_STATEMENTS
In Osmocom code, we have the following written in one line:
  while (osmo_select_main_ctx(1) > 0);

This currently causes the following linter error:
  ERROR:TRAILING_STATEMENTS: trailing statements should be on next line

According to the linter, we should write it as follows:
  while (osmo_select_main_ctx(1) > 0)
  	;

But this is not followed in Osmocom code, so let's ignore the check.

Related: OS#5087
Change-Id: Iaffe979b771c97c77edaf4aa0d232cb8939d1279
2021-11-09 11:48:01 +01:00
Oliver Smith 761df2c7e6 lint: checkpatch.pl: break exclude loop early
When running the linter on a patch with lots of files changed, and lots
of exclude files, this makes a big difference. On my machine, running an
osmo-iuh patch with 1580 files changed, and the high amount of asn1c
related excludes, the time for linting is reduced from 50s to 25s.

This should be acceptable, since typically we change only few files.

Change-Id: I6fb41dec25ecc1f2df7242ae041a8685a696c3fd
2021-11-02 13:40:22 +00:00
Oliver Smith 623b0b60f9 lint: checkpatch_osmo.sh: exclude asn1c generated
Does not make a noticable speed difference on a typical patch with few
changed files, but makes linting on big patches with ~1000 files and
lots of asn1c generated files in the repository significantly slower.
The next patch will optimize that case.

Change-Id: I7437d888b433fec8a444e4d7c285fff47d16c0c7
2021-11-02 13:40:22 +00:00
Vadim Yanitskiy f6974d89c8 scripts: add a script for checking presence of <endian.h>
Change-Id: I6a1e7fc2e96f42fc596f47b4d7f1ac6c61d834b6
2021-10-30 01:09:58 +03:00
Oliver Smith 3dad8b5e7f OBS: nightly: fix missing checkout osmo-hnodeb
Fixes: 2ab3f7 ("Build and test osmo-hnodeb nightly packages")
Related: https://jenkins.osmocom.org/jenkins/job/Osmocom_OBS_nightly/1044
Change-Id: I327adaa8f60c1f90aa150e9d4fba5a10f271c96b
2021-10-26 08:17:55 +02:00
Vadim Yanitskiy 72e42f70d5 coverity: disable Doxygen when building projects
Change-Id: I2fe2f80eb3ec00e9b6c0a3c0ee96e1a0da217b27
2021-10-25 10:00:24 +00:00
Pau Espin 2ab3f7d4dc Build and test osmo-hnodeb nightly packages
Change-Id: I53c2b357b0669f5101ceec7896c4ba30e69605c2
2021-10-25 11:06:50 +02:00
Pau Espin 2146640769 Add osmo-hnodeb to ansible/jenkins/coverity setup
Change-Id: Ie4b03aefeda13d216706bd648145689cf2ef93bb
2021-10-25 11:06:48 +02:00
Vadim Yanitskiy 1dcc508ce6 coverity: fix build_simtrace2(): generate Makefile using autotools
Starting from I57e77f927ee9e169cc794c5dc6b128a2d590201b, autotools
are required in order to configure and build the project.

Change-Id: I48696af1ccb5eb884f5de9085bcda37fc41766fb
Fixes: I74da8b523c9d51887d5eceb01ca0f505bb846812
2021-10-24 16:44:29 +03:00
Vadim Yanitskiy c2b01a9b81 fixup: coverity: also build and check SIMTrace host tools
Change-Id: I97b173a4b3fe47a119145e8d6fa0ad116fd38237
2021-10-24 13:22:00 +03:00