Attention is currently required from: dexter, laforge.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/pysim/+/37456?usp=email )
Change subject: pySim-smpp2sim.py: Simulate SMSC+CN+RAN+UE for OTA testing
......................................................................
Patch Set 4:
(1 comment)
Patchset:
PS3:
> strange enough, I can manually install the package using "pip install git+https://github. […]
For "distcheck" we run "pip install .", see contrib/jenkins.sh.
I've reproduced it locally, and fixed it like this:
```diff
diff --git a/requirements.txt b/requirements.txt
index ec04b6e..4e094b2 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -14,4 +14,4 @@ cryptography
git+https://github.com/osmocom/asn1tools
packaging
git+https://github.com/hologram-io/smpp.pdu
-git+https://github.com/jookies/smpp.twisted
+smpp.twisted3 @ git+https://github.com/jookies/smpp.twisted
diff --git a/setup.py b/setup.py
index e9ffd97..2cd0e8f 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,7 @@ setup(
"pycryptodomex",
"packaging",
"smpp.pdu @ git+https://github.com/hologram-io/smpp.pdu",
- "smpp.twisted @ git+https://github.com/jookies/smpp.twisted",
+ "smpp.twisted3 @ git+https://github.com/jookies/smpp.twisted",
],
scripts=[
'pySim-prog.py',
```
NOTE: I would suggest referencing a specific commit instead of current master, otherwise it may break at some point in a non-obvious way.
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37456?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ie5bae9d823bca6f6c658bd455303f63bace2258c
Gerrit-Change-Number: 37456
Gerrit-PatchSet: 4
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-CC: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 15 Jul 2024 09:50:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: comment
Attention is currently required from: fixeria.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37462?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Verified-1 by Jenkins Builder
Change subject: sctp_proxy: maintain opaque state for s1ap_proxy
......................................................................
sctp_proxy: maintain opaque state for s1ap_proxy
Change-Id: I6ea8479c1a66bca330a7d4030cc7cdf55a76b12c
---
M src/s1ap_proxy.erl
M src/sctp_proxy.erl
M test/s1ap_proxy_test.erl
3 files changed, 181 insertions(+), 104 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-s1gw refs/changes/62/37462/2
--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37462?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: I6ea8479c1a66bca330a7d4030cc7cdf55a76b12c
Gerrit-Change-Number: 37462
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newpatchset
fixeria has submitted this change. ( https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37461?usp=email )
Change subject: sctp_server: do not let sctp_proxy:shutdown() crash the server
......................................................................
sctp_server: do not let sctp_proxy:shutdown() crash the server
Change-Id: Iaeedbc66cab21ec7274f864c8daf86c87f21e633
---
M src/sctp_server.erl
1 file changed, 15 insertions(+), 2 deletions(-)
Approvals:
fixeria: Looks good to me, approved
laforge: Looks good to me, but someone else must approve
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
diff --git a/src/sctp_server.erl b/src/sctp_server.erl
index d0484e6..8ea311f 100644
--- a/src/sctp_server.erl
+++ b/src/sctp_server.erl
@@ -197,7 +197,9 @@
client_del(Clients, Aid) ->
case dict:find(Aid, Clients) of
{ok, Client} ->
- sctp_proxy:shutdown(Client#client_state.pid),
+ %% the proxy process might be already dead, so we guard
+ %% against exceptions like noproc or {nodedown,Node}.
+ catch sctp_proxy:shutdown(Client#client_state.pid),
dict:erase(Aid, Clients);
error ->
Clients
@@ -228,7 +230,9 @@
{FromAddr, FromPort} = Client#client_state.addr_port,
?LOG_NOTICE("Terminating eNB connection (id=~p, ~p:~p)", [Aid, FromAddr, FromPort]),
%% request to terminate an MME connection
- sctp_proxy:shutdown(Client#client_state.pid),
+ %% the proxy process might be already dead, so we guard
+ %% against exceptions like noproc or {nodedown,Node}.
+ catch sctp_proxy:shutdown(Client#client_state.pid),
%% gracefully close an eNB connection
gen_sctp:eof(Sock, #sctp_assoc_change{assoc_id = Aid}),
%% ... and so for the remaining clients
--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37461?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: Iaeedbc66cab21ec7274f864c8daf86c87f21e633
Gerrit-Change-Number: 37461
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(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-MessageType: merged