osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/35268?usp=email )
(
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: ansible: fix updating /opt/coverity/current
......................................................................
ansible: fix updating /opt/coverity/current
Remove the previous /opt/coverity/current symlink, before creating the
new one. Otherwise the new symlink would be created inside "current"
pointing at the old version, instead of replacing "current" with the
new symlink.
# ln -svf /opt/coverity/2023.6.2/* /opt/coverity/current
'/opt/coverity/current/cov-analysis-linux64-2023.6.2' -> '/opt/coverity/2023.6.2/cov-analysis-linux64-2023.6.2'
# readlink /opt/covervity/current
/opt/coverity/2022.06/cov-analysis-linux64-2022.6.0
Add the verbosity flag to the command while at it.
(The glob is unrelated, why it is needed is described in
I2b96d1e47f2697706a042937b2852f0fc5032a7b)
Related: SYS#6685
Change-Id: I4ecb4997829b3cc61c839d089bda44f821ca8b85
---
M ansible/roles/install-coverity/tasks/main.yml
1 file changed, 26 insertions(+), 1 deletion(-)
Approvals:
fixeria: Looks good to me, approved
pespin: Looks good to me, but someone else must approve
osmith: Verified
diff --git a/ansible/roles/install-coverity/tasks/main.yml b/ansible/roles/install-coverity/tasks/main.yml
index 246fa36..ca4a24c 100644
--- a/ansible/roles/install-coverity/tasks/main.yml
+++ b/ansible/roles/install-coverity/tasks/main.yml
@@ -37,7 +37,7 @@
when: coverity_copy.failed == False
- name: create link /opt/coverity/current
- shell: ln -sf /opt/coverity/{{ coverity_version }}/* /opt/coverity/current
+ shell: rm -vf /opt/coverity/current && ln -svf /opt/coverity/{{ coverity_version }}/* /opt/coverity/current
args:
warn: false
when: coverity_copy.failed == False
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/35268?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I4ecb4997829b3cc61c839d089bda44f821ca8b85
Gerrit-Change-Number: 35268
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/35264?usp=email )
Change subject: README: update and convert to markdown
......................................................................
README: update and convert to markdown
* Describe all directories
* Update the text slightly
* Convert to markdown, so it shows up formatted at:
https://gitea.osmocom.org/osmocom/osmo-ci
Change-Id: I9735eb30cf7260d211d5ea4da83ad09d31c93593
---
D README.adoc
A README.md
2 files changed, 62 insertions(+), 30 deletions(-)
Approvals:
Jenkins Builder: Verified
osmith: Looks good to me, approved
pespin: Looks good to me, but someone else must approve
diff --git a/README.adoc b/README.adoc
deleted file mode 100644
index 23d723b..0000000
--- a/README.adoc
+++ /dev/null
@@ -1,30 +0,0 @@
-Scripts used for the CI handling and coverity uploads
-
-coverity: scripts used to submit the osmocom sources for coverity scan.
-This depends on these, which are not included in osmo-ci:
-- a tokens.txt file in coverity/ -- see coverity/get_token.sh
-- a cov-analysis-linux64-8.5.0 in coverity/
- (or the like, may need to adjust some scripts to match)
-
-jobs: Jenkins Job Builder YAML files defining jenkins jobs. Read jobs/README.adoc
-for more information about deployment.
-
-scripts: used by jenkins jobs. Various osmo*/contrib/jenkins.sh scripts assume
-osmo-ci to be checked out in the build slave user's home, i.e. using a PATH of
-$HOME/osmo-ci/scripts.
-
-obs-patches: patches to build projects for various debian distributions, e.g.
-a patch for limesuite that fixes the libwxgtk3.0-dev => libwxgtk3.0-gtk3-dev
-rename in control/debian for debian10. Used by osmo_obs_distro_specific_patch()
-in scripts/common-obs.sh.
-
-_docker_playground: Clone of docker-playground.git, so the scripts can build
-required docker images. This dir gets created on demand by scripts/common.sh,
-and automatically fetched and reset to "origin/master" (override with
-$OSMO_BRANCH_DOCKER_PLAYGROUND). The fetch and reset gets skipped if
-_docker_playground is a symlink. For development, set it up as follows:
-
- $ git clone https://gitea.osmocom.org/osmocom/docker-playground
- $ git clone https://gitea.osmocom.org/osmocom/osmo-ci
- $ cd osmo-ci
- $ ln -s ../docker-playground _docker_playground
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..cfbda3a
--- /dev/null
+++ b/README.md
@@ -0,0 +1,48 @@
+# Osmocom CI and infrastructure files
+
+## ansible
+Ansible rules for setting up machines of the Osmocom infrastructure.
+See `ansible/README.md`.
+
+## contrib
+Scripts and files that did not fit into other directories.
+
+## coverity
+Scripts used to submit the osmocom sources for coverity scan.
+This depends on these, which are not included in osmo-ci:
+- a tokens.txt file in coverity/ -- see coverity/get_token.sh
+- a cov-analysis-linux64-8.5.0 in coverity/
+ (or the like, may need to adjust some scripts to match)
+
+## jobs
+Jenkins Job Builder YAML files defining jenkins jobs. Read `jobs/README.adoc`
+for more information about deployment.
+
+## lint
+The linter running on patches submitted via gerrit. See the wiki page
+[Linting](https://osmocom.org/projects/cellular-infrastructure/wiki/Linting)
+for more information.
+
+## qemu-kvm
+A script to create a virtual machine with kernel gtp ggsn for qemu-kvm.
+
+## scripts
+Scripts used by jenkins jobs. Various `osmo*/contrib/jenkins.sh` scripts assume
+osmo-ci to be checked out in the build slave user's home, i.e. using a PATH of
+`$HOME/osmo-ci/scripts`.
+
+## _docker_playground
+A clone of
+[docker-playground](https://gitea.osmocom.org/osmocom/docker-playground),
+so the scripts can build required docker images. This dir gets created on
+demand by scripts/common.sh, and automatically fetched and reset to
+"origin/master" (override with `$OSMO_BRANCH_DOCKER_PLAYGROUND`). The fetch and
+reset gets skipped if _docker_playground is a symlink. For development, set it
+up as follows:
+
+```
+$ git clone https://gitea.osmocom.org/osmocom/docker-playground
+$ git clone https://gitea.osmocom.org/osmocom/osmo-ci
+$ cd osmo-ci
+$ ln -s ../docker-playground _docker_playground
+```
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/35264?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I9735eb30cf7260d211d5ea4da83ad09d31c93593
Gerrit-Change-Number: 35264
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/35265?usp=email )
Change subject: README: document how to upgrade coverity
......................................................................
README: document how to upgrade coverity
Change-Id: I551df9f36112f34cf76d0247f1ebc1e58ae0a896
---
M README.md
1 file changed, 29 insertions(+), 5 deletions(-)
Approvals:
pespin: Looks good to me, approved
fixeria: Looks good to me, but someone else must approve
Jenkins Builder: Verified
diff --git a/README.md b/README.md
index cfbda3a..f0a3dc9 100644
--- a/README.md
+++ b/README.md
@@ -8,11 +8,26 @@
Scripts and files that did not fit into other directories.
## coverity
-Scripts used to submit the osmocom sources for coverity scan.
-This depends on these, which are not included in osmo-ci:
-- a tokens.txt file in coverity/ -- see coverity/get_token.sh
-- a cov-analysis-linux64-8.5.0 in coverity/
- (or the like, may need to adjust some scripts to match)
+Scripts used to submit the osmocom sources for coverity scan. This depends on a
+`tokens.txt`, see `coverity/get_token.sh`.
+
+### how to upgrade
+* Download the latest version from [here](https://scan.coverity.com/download)
+* Find the "upgrade considerations" [here](https://sig-product-docs.synopsys.com/bundle/coverity-docs/page/upgra…
+* Place the resulting `cov-analysis-linux64-$VERSION.tar.gz` in `ansible/files`
+* Adjust `coverity_version` in `ansible/roles/install-coverity/defaults/main.yml`
+* Deploy the ansible playbook:
+```
+$ cd ansible
+$ ansible-playbook -v -i hosts setup-jenkins-slave.yml -l coverity_slaves -t coverity
+```
+* On success, only one task should be skipped (the "Please download..." task):
+```
+PLAY RECAP ********************************************************************************************************************
+build2-deb11build-ansible : ok=8 changed=4 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
+build3-deb11build-ansible : ok=9 changed=4 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
+build4-deb12build-ansible : ok=9 changed=4 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0
+```
## jobs
Jenkins Job Builder YAML files defining jenkins jobs. Read `jobs/README.adoc`
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/35265?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I551df9f36112f34cf76d0247f1ebc1e58ae0a896
Gerrit-Change-Number: 35265
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged