diff options
Diffstat (limited to 'scripts/obs/lib/config.py')
-rw-r--r-- | scripts/obs/lib/config.py | 73 |
1 files changed, 65 insertions, 8 deletions
diff --git a/scripts/obs/lib/config.py b/scripts/obs/lib/config.py index 1e569ef..c6f373e 100644 --- a/scripts/obs/lib/config.py +++ b/scripts/obs/lib/config.py @@ -2,6 +2,7 @@ # SPDX-License-Identifier: GPL-2.0-or-later # Copyright 2022 sysmocom - s.f.m.c. GmbH <info@sysmocom.de> import os +import re # Lists are ordered alphabetically. @@ -17,6 +18,7 @@ required_programs = [ "fakeroot", "find", "git", + "git-review", "meson", "osc", "rebar3", @@ -24,24 +26,31 @@ required_programs = [ ] required_python_modules = [ + "packaging", "setuptools", ] feeds = [ "2022q1", "2022q2", + "2023q1", "latest", + "master", "nightly", ] # Osmocom projects: generated source packages will depend on a meta package, # such as osmocom-nightly, osmocom-latest or osmocom-2022q1. This meta package # prevents that packages from different feeds are mixed by accident. -# NOTE: Before adding new projects, make sure the rpm and deb build in OBS! -# Test it in your own namespace (home:youruser), see README for -# instructions and/or ask osmith for help. +# NOTE: Before adding new projects, add them to jobs/gerrit-verifications.yml +# and ensure the rpm and deb packages build successfully in jenkins. +# NOTE: Consider whether new packages should be added to EXCLUDE_PACKAGES in +# osmocom-obs-nightly-asan.yml. projects_osmocom = [ "erlang/osmo_dia2gsup", + "erlang/osmo-epdg", + "erlang/osmo-s1gw", + "gapk", "libasn1c", "libgtpnl", "libosmo-abis", @@ -49,7 +58,8 @@ projects_osmocom = [ "libosmo-gprs", "libosmo-netif", "libosmo-pfcp", - "libosmo-sccp", + "libosmo-sccp-legacy", # can be dropped after osmo-msc >= 1.12.x release + "libosmo-sigtran", "libosmocore", "libsmpp34", "libusrp", @@ -78,9 +88,12 @@ projects_osmocom = [ "osmo-trx", "osmo-uecups", "osmo-upf", + "osmocom-bb", "python/osmo-python-tests", + "python/pyosmocom", "rtl-sdr", "simtrace2", + "strongswan-epdg", ] projects_other = [ "limesuite", @@ -96,6 +109,8 @@ git_url_other = { "open5gs": "https://github.com/open5gs/open5gs", "osmo-fl2k": "https://gitea.osmocom.org/sdr/osmo-fl2k", "rtl-sdr": "https://gitea.osmocom.org/sdr/rtl-sdr", + "strongswan-epdg": "https://gitea.osmocom.org/ims-volte-vowifi/strongswan-epdg", + "libosmo-sccp-legacy": "https://gitea.osmocom.org/osmocom/libosmo-sccp-legacy", } git_branch_default = "master" @@ -103,10 +118,52 @@ git_branch_other = { "open5gs": "main", } -git_latest_tag_pattern_default = "^[0-9]*\\.[0-9]*\\.[0-9]*$" +def tag_pattern(prefix: str = '', + a: str = r'\d+', + b: str = r'\.\d+', + c: str = r'\.\d+') -> str: + return rf'^{prefix}{a}{b}{c}$' + +git_latest_tag_pattern_default = tag_pattern() git_latest_tag_pattern_other = { - "limesuite": "^v[0-9]*\\.[0-9]*\\.[0-9]*$", - "open5gs": "^v[0-9]*\\.[0-9]*\\.[0-9]*$", + "gapk": tag_pattern('v', c=r'(\.\d+)?'), + "limesuite": tag_pattern('v'), + "open5gs": tag_pattern('v'), + "osmo-fl2k": tag_pattern('v'), + "rtl-sdr": tag_pattern('v'), + "strongswan-epdg": tag_pattern('osmo-epdg-', c=r'\.[0-9a-z]+'), + "wireshark": tag_pattern('v', c=r'\.[0-9a-z]+'), } -docker_image_name = "debian-bullseye-osmocom-obs" +docker_distro_default = "debian:12" +docker_distro_other = [ + "almalinux:*", # instead of centos (SYS#5818) + "centos:7", # SYS#6760 + "debian:*", + "ubuntu:*", +] + +# +# Options related to sync from build.opensuse.org (OS#6165) +# + +sync_remove_paths = [ + # This path has a kernel-obs-build package that other OBS instances use to + # build armv7l/hl packages, but we don't need it + "OBS:DefaultKernel", +] + +sync_set_maintainers = [ + "osmocom-jenkins", +] + +# Distributions for which we want to make sure we add the latest release as +# soon as it is available in openSUSE's OBS +# https://osmocom.org/projects/cellular-infrastructure/wiki/Linux_Distributions +check_new_distros = [ + "Debian", + "Raspbian", + "Ubuntu", +] + +check_new_distros_version_regex = re.compile(r'[0-9.]+$') |