osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/41369?usp=email )
Change subject: OBS: set default distro to debian 13
......................................................................
OBS: set default distro to debian 13
Change the distribution that is used to build the source packages to
debian 13 so we are on the latest one again.
Change-Id: I7c1dcca90e46645a497fd547ce1243b414c53201
---
M scripts/obs/lib/config.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/69/41369/1
diff --git a/scripts/obs/lib/config.py b/scripts/obs/lib/config.py
index 8282d9e..0a8d60d 100644
--- a/scripts/obs/lib/config.py
+++ b/scripts/obs/lib/config.py
@@ -134,7 +134,7 @@
"wireshark": tag_pattern('v', c=r'\.[0-9a-z]+'),
}
-docker_distro_default = "debian:12"
+docker_distro_default = "debian:13"
docker_distro_other = [
"almalinux:*", # instead of centos (SYS#5818)
"centos:7", # SYS#6760
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/41369?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I7c1dcca90e46645a497fd547ce1243b414c53201
Gerrit-Change-Number: 41369
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/41366?usp=email )
Change subject: OBS: lib/srcpkg: format with ruff
......................................................................
OBS: lib/srcpkg: format with ruff
Change-Id: I2cfb8fc5bd78449e62526758ddb9263cf3d8ced1
---
M .ruff.toml
M scripts/obs/lib/srcpkg.py
2 files changed, 59 insertions(+), 38 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/66/41366/1
diff --git a/.ruff.toml b/.ruff.toml
index a75a783..c0b9b9d 100644
--- a/.ruff.toml
+++ b/.ruff.toml
@@ -16,7 +16,6 @@
"scripts/obs/lib/metapkg.py",
"scripts/obs/lib/osc.py",
"scripts/obs/lib/rpm_spec.py",
- "scripts/obs/lib/srcpkg.py",
"scripts/obs/update_obs_project.py",
"scripts/osmo-depcheck/buildstack.py",
"scripts/osmo-depcheck/config.py",
diff --git a/scripts/obs/lib/srcpkg.py b/scripts/obs/lib/srcpkg.py
index 7b93937..78e49d1 100644
--- a/scripts/obs/lib/srcpkg.py
+++ b/scripts/obs/lib/srcpkg.py
@@ -10,7 +10,7 @@
def checkout_for_feed(project):
- """ checkout a commit, either latest tag or master or 20YY branch """
+ """checkout a commit, either latest tag or master or 20YY branch"""
feed = lib.args.feed
branch = lib.args.git_branch
if branch:
@@ -24,7 +24,7 @@
def get_git_version(project):
- """ :returns: the string from git-version-gen, e.g. '1.7.0.10-76bdb' """
+ """:returns: the string from git-version-gen, e.g. '1.7.0.10-76bdb'"""
repo_path = lib.git.get_repo_path(project)
# Run git-version-gen if it is in the repository
@@ -41,18 +41,29 @@
pattern = lib.git.get_latest_tag_pattern(project)
pattern = pattern.replace("^", "", 1)
pattern = pattern.replace("$", "", -1)
- result = lib.run_cmd(["git", "describe",
- "--abbrev=4",
- "--tags",
- f"--match={pattern}",
- "HEAD"], cwd=repo_path, check=False)
+ result = lib.run_cmd(
+ [
+ "git",
+ "describe",
+ "--abbrev=4",
+ "--tags",
+ f"--match={pattern}",
+ "HEAD",
+ ],
+ cwd=repo_path,
+ check=False,
+ )
if result.returncode == 128:
print(f"{project}: has no git tags")
- commit = lib.run_cmd(["git", "rev-parse", "HEAD"],
- cwd=repo_path).output[0:4]
- count = lib.run_cmd(["git", "rev-list", "--count", "HEAD"],
- cwd=repo_path).output.rstrip()
+ commit = lib.run_cmd(
+ ["git", "rev-parse", "HEAD"],
+ cwd=repo_path,
+ ).output[0:4]
+ count = lib.run_cmd(
+ ["git", "rev-list", "--count", "HEAD"],
+ cwd=repo_path,
+ ).output.rstrip()
try:
print(f"{project}: getting version from debian/changelog")
version = lib.debian.get_last_version_from_changelog(project)
@@ -105,14 +116,14 @@
def get_epoch(project):
- """ The osmo-gbproxy used to have the same package version as osmo-sgsn
- until 2021 where it was split into its own git repository. From then
- on, osmo-gbproxy has a 0.*.* package version, which is smaller than
- the previous 1.*.* from osmo-sgsn. We had to set the epoch to 1 for
- osmo-gbproxy so package managers know these 0.*.* versions are higher
- than the previous 1.*.* ones that are still found in e.g. debian 11.
- The epoch is set in debian/changelog, retrieve it from there.
- :returns: the epoch number if set, e.g. "1" or an empty string """
+ """The osmo-gbproxy used to have the same package version as osmo-sgsn
+ until 2021 where it was split into its own git repository. From then on,
+ osmo-gbproxy has a 0.*.* package version, which is smaller than the
+ previous 1.*.* from osmo-sgsn. We had to set the epoch to 1 for
+ osmo-gbproxy so package managers know these 0.*.* versions are higher than
+ the previous 1.*.* ones that are still found in e.g. debian 11. The epoch
+ is set in debian/changelog, retrieve it from there.
+ :returns: the epoch number if set, e.g. "1" or an empty string"""
version_epoch = lib.debian.get_last_version_from_changelog(project)
if ":" in version_epoch:
@@ -122,15 +133,17 @@
def prepare_project_open5gs():
- """ Download the subproject sources here, so the package can be built in
- OBS without Internet access. """
- lib.run_cmd(["meson", "subprojects", "download"],
- cwd=lib.git.get_repo_path("open5gs"))
+ """Download the subproject sources here, so the package can be built in
+ OBS without Internet access."""
+ lib.run_cmd(
+ ["meson", "subprojects", "download"],
+ cwd=lib.git.get_repo_path("open5gs"),
+ )
def run_generate_build_dep(project):
- """ Run contrib/generate_build_dep.sh if it exists in the given project, to
- to download sources for dependencies (see e.g. osmo_dia2gsup.git). """
+ """Run contrib/generate_build_dep.sh if it exists in the given project, to
+ to download sources for dependencies (see e.g. osmo_dia2gsup.git)."""
repo_path = lib.git.get_repo_path(project)
script_path = "contrib/generate_build_dep.sh"
@@ -147,10 +160,10 @@
def write_commit_txt(project):
- """ Write the current git commit to commit_$commit.txt file, so it gets
- uploaded to OBS along with the rest of the source package. This allows
- figuring out if the source package is still up-to-date or not for the
- master feed. """
+ """Write the current git commit to commit_$commit.txt file, so it gets
+ uploaded to OBS along with the rest of the source package. This allows
+ figuring out if the source package is still up-to-date or not for the
+ master feed."""
output_path = lib.get_output_path(project)
commit = lib.git.get_head(project)
@@ -160,16 +173,26 @@
def set_asciidoc_style_without_draft_watermark(project):
repo_path = lib.git.get_repo_path(project)
- doc_makefiles = lib.run_cmd(["grep", "-r", "-l", "include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.asciidoc.inc"], cwd=repo_path, check=False)
+ doc_makefiles = lib.run_cmd(
+ ["grep", "-r", "-l", "include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.asciidoc.inc"],
+ cwd=repo_path,
+ check=False,
+ )
doc_makefiles = doc_makefiles.output.rstrip().split("\n")
for doc_makefile in doc_makefiles:
if doc_makefile == "":
continue
print(f"{project}: setting asciidoc style to remove draft watermark in {doc_makefile}")
- lib.run_cmd(["sed", "-i",
- '/\\/build\\/Makefile\\.asciidoc\\.inc/s/^/ ASCIIDOCSTYLE = $(BUILDDIR)\\/custom-dblatex.sty\\n/',
- doc_makefile], cwd=repo_path)
+ lib.run_cmd(
+ [
+ "sed",
+ "-i",
+ "/\\/build\\/Makefile\\.asciidoc\\.inc/s/^/ ASCIIDOCSTYLE = $(BUILDDIR)\\/custom-dblatex.sty\\n/",
+ doc_makefile,
+ ],
+ cwd=repo_path,
+ )
def build(project, gerrit_id=0):
@@ -237,15 +260,14 @@
def requires_osmo_gsm_manuals_dev(project):
- """ Check if an already built source package has osmo-gsm-manuals-dev in
- Build-Depends of the .dsc file """
+ """Check if an already built source package has osmo-gsm-manuals-dev in
+ Build-Depends of the .dsc file"""
path_dsc = glob.glob(f"{lib.get_output_path(project)}/*.dsc")
assert len(path_dsc) == 1, f"failed to get dsc path for {project}"
with open(path_dsc[0], "r") as handle:
for line in handle.readlines():
- if line.startswith("Build-Depends:") \
- and "osmo-gsm-manuals-dev" in line:
+ if line.startswith("Build-Depends:") and "osmo-gsm-manuals-dev" in line:
return True
return False
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/41366?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I2cfb8fc5bd78449e62526758ddb9263cf3d8ced1
Gerrit-Change-Number: 41366
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
pespin has submitted this change. ( https://gerrit.osmocom.org/c/erlang/osmo-epdg/+/41303?usp=email )
Change subject: aaa_diameter_swx: Avoid answering RTR with Success if already deregistering
......................................................................
aaa_diameter_swx: Avoid answering RTR with Success if already deregistering
When receiving an SWx RTR on our osmo-epdg (epdg+AAA), we initiate the
deregistration against peer nodes on other interfaces and answer with SWx RTA.
If a subsequent RTR for the subscriber arrives on the interface while
the deregistration is in progress, we'd answer with RTA Result-Code 2001
SUCCESS. Let's instead answer already as if we didn't know about the
subscriber, since it will end up being freed in a short span of time and
nothing can be done about it.
Related: OS#6796
Change-Id: I0ed13e9503ec380ce4331c662ca3eb966ccbda92
---
M src/aaa_diameter_swx_cb.erl
M src/aaa_ue_fsm.erl
2 files changed, 21 insertions(+), 9 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, approved
osmith: Looks good to me, but someone else must approve
diff --git a/src/aaa_diameter_swx_cb.erl b/src/aaa_diameter_swx_cb.erl
index 3ae11f0..f8ebd08 100644
--- a/src/aaa_diameter_swx_cb.erl
+++ b/src/aaa_diameter_swx_cb.erl
@@ -149,14 +149,26 @@
case DeregReason of
#'Deregistration-Reason'{'Reason-Code' = ?'REASON-CODE_PERMANENT_TERMINATION'} ->
case aaa_ue_fsm:ev_rx_swx_rtr(Pid) of
- {error, _} -> aaa_ue_fsm:stop(Pid);
- _ -> ok
+ {error, dereg_in_progress} ->
+ Res = [],
+ %% TS 29.229 6.2.2.1 DIAMETER_ERROR_USER_UNKNOWN
+ ERes = #'Experimental-Result'{'Vendor-Id' = ?VENDOR_ID_3GPP,
+ 'Experimental-Result-Code' = 5001};
+ {error, _} ->
+ aaa_ue_fsm:stop(Pid), % unknown error, make sure we tear down.
+ Res = [],
+ %% TS 29.229 6.2.2.1 DIAMETER_ERROR_USER_UNKNOWN
+ ERes = #'Experimental-Result'{'Vendor-Id' = ?VENDOR_ID_3GPP,
+ 'Experimental-Result-Code' = 5001};
+ _ ->
+ Res = 2001, %% Success
+ ERes = []
end;
_ ->
- aaa_ue_fsm:stop(Pid)
- end,
- Res = 2001, %% Success
- ERes = [];
+ aaa_ue_fsm:stop(Pid),
+ Res = 2001, %% Success
+ ERes = []
+ end;
undefined ->
Res = [],
%% TS 29.229 6.2.2.1 DIAMETER_ERROR_USER_UNKNOWN
diff --git a/src/aaa_ue_fsm.erl b/src/aaa_ue_fsm.erl
index 97ad67f..91830d9 100644
--- a/src/aaa_ue_fsm.erl
+++ b/src/aaa_ue_fsm.erl
@@ -451,7 +451,7 @@
state_authenticated_wait_swx_saa({call, From}, rx_swx_rtr, Data) ->
lager:info("ue_fsm state_authenticated_wait_swx_saa event=rx_swx_rtr ~p~n", [Data]),
%% We are already tearing down in an ordered manner, accept and do nothing.
- {keep_state, Data, [{reply,From,ok}]}.
+ {keep_state, Data, [{reply,From,{error,dereg_in_progress}}]}.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% state_dereg_net_initiated_wait_s6b_asa:
@@ -469,7 +469,7 @@
state_dereg_net_initiated_wait_s6b_asa({call, From}, rx_swx_rtr, Data) ->
lager:info("ue_fsm state_dereg_net_initiated_wait_s6b_asa event=rx_swx_rtr ~p~n", [Data]),
%% We are already tearing down in an ordered manner, accept and do nothing.
- {keep_state, Data, [{reply,From,ok}]};
+ {keep_state, Data, [{reply,From,{error,dereg_in_progress}}]};
state_dereg_net_initiated_wait_s6b_asa({call, From}, Ev, Data) ->
lager:notice("ue_fsm state_dereg_net_initiated_wait_s6b_asa: Unexpected call event ~p, ~p~n", [Ev, Data]),
@@ -494,7 +494,7 @@
state_dereg_net_initiated_wait_swm_asa({call, From}, rx_swx_rtr, Data) ->
lager:info("ue_fsm state_dereg_net_initiated_wait_swm_asa event=rx_swx_rtr ~p~n", [Data]),
%% We are already tearing down in an ordered manner, accept and do nothing.
- {keep_state, Data, [{reply,From,ok}]};
+ {keep_state, Data, [{reply,From,{error,dereg_in_progress}}]};
state_dereg_net_initiated_wait_swm_asa({call, From}, Ev, Data) ->
lager:notice("ue_fsm state_dereg_net_initiated_wait_swm_asa: Unexpected call event ~p, ~p~n", [Ev, Data]),
--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo-epdg/+/41303?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: erlang/osmo-epdg
Gerrit-Branch: master
Gerrit-Change-Id: I0ed13e9503ec380ce4331c662ca3eb966ccbda92
Gerrit-Change-Number: 41303
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Attention is currently required from: osmith.
pespin has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/41352?usp=email )
The change is no longer submittable: Code-Review is unsatisfied now.
Change subject: ipa: fix a minor memleak when receiving invalid IPA CCM messages
......................................................................
Patch Set 1: Code-Review-2
(1 comment)
Patchset:
PS1:
Blockign for now due to concerns of this maybe causing major problems in the older code, which doesn't have other fixes/rewrites like dfccd989dbffe418d9ab7b4d3087345636da762d.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/41352?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: osmith/2.1.3
Gerrit-Change-Id: I1b828c16350d10398810e60acbb35663f215c63f
Gerrit-Change-Number: 41352
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 06 Nov 2025 13:51:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes