Attention is currently required from: falconia, laforge.
fixeria has posted comments on this change by falconia. ( https://gerrit.osmocom.org/c/libosmo-abis/+/38138?usp=email )
Change subject: trau2rtp FR & EFR: fix uninitialized memory bug
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
> while I tend to agree, we now may end up memset'ing twice.
Alternatively, we may clarify the API docs and state that it's responsibility of the caller to [zero-]initialize the output buffer.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/38138?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I6e6693e096b920a973c8cc627e94884099d004b5
Gerrit-Change-Number: 38138
Gerrit-PatchSet: 1
Gerrit-Owner: falconia <falcon(a)freecalypso.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: falconia <falcon(a)freecalypso.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Sun, 15 Sep 2024 18:57:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Attention is currently required from: laforge, pespin.
fixeria has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38062?usp=email )
Change subject: s1gw: derive functions from f_TC_e_rab_setup()
......................................................................
Patch Set 3:
(1 comment)
This change is ready for review.
File s1gw/S1GW_ConnHdlr.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38062/comment/16ad3e04_97ce… :
PS2, Line 328: for (var integer i := 0; i < lengthof(erabs); i := i + 1) {
> You could actually split this for loop in a function which returns E_RABToBeSetupListBearerSUReq. […]
We can do that when we can re-use `E_RABToBeSetupListBearerSUReq` in other PDUs (e.g. in upcoming testcases for the `INITIAL CONTEXT SETUP REQUEST`). Unfortunately, the S1AP specs. defined in a way that each message type has its own specific IEs, even though the IE structure is almost identical. And for now there would be only one user per such IE-crafting function. Let's keep it as-is for now and get back to this idea later.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38062?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I1bff371da6337ecd7710219d1c86f0fff82ad17f
Gerrit-Change-Number: 38062
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Sun, 15 Sep 2024 15:58:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
falconia has posted comments on this change by falconia. ( https://gerrit.osmocom.org/c/libosmo-abis/+/38139?usp=email )
Change subject: tests: add unit tests for trau2rtp conversion, FR & EFR
......................................................................
Patch Set 3: -Verified
(1 comment)
Patchset:
PS3:
> The actual builds are passing, but the linter is failing on the TEH acronym (TRAU-like Extension Hea […]
The patch to osmo-ci.git that removes TEH from the offender word list has been merged, so the linter now passes.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/38139?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Ie319900125baa8f20595cac83343771d780a5b4e
Gerrit-Change-Number: 38139
Gerrit-PatchSet: 3
Gerrit-Owner: falconia <falcon(a)freecalypso.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: falconia <falcon(a)freecalypso.org>
Gerrit-Comment-Date: Sun, 15 Sep 2024 15:50:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: falconia <falcon(a)freecalypso.org>
laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38135?usp=email )
Change subject: testenv: on crash, wait until test stopped
......................................................................
testenv: on crash, wait until test stopped
When the IUT (or other test component) crashes, wait until
ttcn3-tcpdump-stop.sh has closed the pcap, as otherwise the last
buffered data may be lost.
Add a timeout of 2 minutes in case the test doesn't stop on its own.
I considered making this feature optional, but impatient users can still
immediately kill everything with ^C.
Change-Id: If49263869b1d46103813e9d06deff47f8ba72896
---
M _testenv/testenv/daemons.py
M _testenv/testenv/testsuite.py
M ttcn3-tcpdump-start.sh
M ttcn3-tcpdump-stop.sh
4 files changed, 47 insertions(+), 3 deletions(-)
Approvals:
laforge: Looks good to me, but someone else must approve
Jenkins Builder: Verified
fixeria: Looks good to me, approved
pespin: Looks good to me, but someone else must approve
diff --git a/_testenv/testenv/daemons.py b/_testenv/testenv/daemons.py
index c211cd7..c7e8722 100644
--- a/_testenv/testenv/daemons.py
+++ b/_testenv/testenv/daemons.py
@@ -9,6 +9,7 @@
import testenv
import testenv.testdir
import time
+import sys
daemons = {}
run_shell_on_stop = False
@@ -100,6 +101,24 @@
kill_process_tree(pid, ppids)
+def check_if_crashed():
+ crashed = False
+ for daemon_name, daemon_proc in daemons.items():
+ if not testenv.testsuite.is_running(daemon_proc.pid):
+ crashed = True
+ break
+ if not crashed:
+ return
+
+ current_test = testenv.testsuite.get_current_test()
+ if current_test:
+ logging.error(f"{daemon_name} crashed during {current_test}!")
+ testenv.testsuite.wait_until_test_stopped()
+ else:
+ logging.error(f"{daemon_name} crashed!")
+ sys.exit(1)
+
+
def stop():
global daemons
global run_shell_on_stop
diff --git a/_testenv/testenv/testsuite.py b/_testenv/testenv/testsuite.py
index d14d36f..7a42216 100644
--- a/_testenv/testenv/testsuite.py
+++ b/_testenv/testenv/testsuite.py
@@ -200,9 +200,7 @@
stop()
break
- for daemon_name, daemon_proc in testenv.daemons.daemons.items():
- if not is_running(daemon_proc.pid):
- raise testenv.NoTraceException(f"{daemon_name} crashed!")
+ testenv.daemons.check_if_crashed()
merge_log_files(cfg)
format_log_files(cfg)
@@ -217,6 +215,29 @@
testenv.cmd.run(section_data["prepare"])
+def get_current_test():
+ path = os.path.join(testenv.testdir.testdir, "testsuite/.current_test")
+ try:
+ with open(path, "r") as h:
+ return h.readline().rstrip()
+ except:
+ # File may not exist, e.g. if test was stopped
+ return None
+
+
+def wait_until_test_stopped():
+ path = os.path.join(testenv.testdir.testdir, "testsuite/.current_test")
+
+ logging.debug("Waiting until test has stopped...")
+
+ for i in range(0, 1200):
+ time.sleep(0.1)
+ if not os.path.exists(path):
+ return
+
+ raise testenv.NoTraceError("Timeout in wait_until_test_stopped()")
+
+
def stop():
global testsuite_proc
diff --git a/ttcn3-tcpdump-start.sh b/ttcn3-tcpdump-start.sh
index 4068b26..9575a68 100755
--- a/ttcn3-tcpdump-start.sh
+++ b/ttcn3-tcpdump-start.sh
@@ -120,3 +120,5 @@
fi
done
kill $PID
+
+echo "$TESTCASE" > "$TTCN3_PCAP_PATH/.current_test"
diff --git a/ttcn3-tcpdump-stop.sh b/ttcn3-tcpdump-stop.sh
index 0ac1b5e..def10d8 100755
--- a/ttcn3-tcpdump-stop.sh
+++ b/ttcn3-tcpdump-stop.sh
@@ -83,3 +83,5 @@
PCAP_FILENAME="$TTCN3_PCAP_PATH/$TESTCASE.$i.pcap"
fi
gzip -f "$PCAP_FILENAME"
+
+rm -f "$TTCN3_PCAP_PATH/.current_test"
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38135?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: If49263869b1d46103813e9d06deff47f8ba72896
Gerrit-Change-Number: 38135
Gerrit-PatchSet: 2
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>