Attention is currently required from: osmith.
pespin has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40310?usp=email )
Change subject: testenv: no python trace for setup script failures
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40310?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: Icbec52befa268547906fdbe9b52bdbc9e94722e6
Gerrit-Change-Number: 40310
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 16 May 2025 12:44:29 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
osmith has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40321?usp=email )
Change subject: epdg: initial testenv.cfg
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
setting to draft: works for me with a 6.8.12 kernel, but doesn't seem to work with other kernels yet, looking into it
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40321?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: Ide2873be7830cc43e7fa09f26b2d504d0563a3c2
Gerrit-Change-Number: 40321
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-CC: Jenkins Builder
Gerrit-Comment-Date: Fri, 16 May 2025 12:26:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40320?usp=email )
Change subject: epdg: TC_concurrent_ues_MTC: rx CMD_ATTACHED without from vc_conn_list[i]
......................................................................
epdg: TC_concurrent_ues_MTC: rx CMD_ATTACHED without from vc_conn_list[i]
This is needed to make the test pass in QEMU. I think this makes it
accept the COORD_CMD_ATTACHED in any order instead of the order the
COORD_CMD_START were sent beforehand.
Increasing the sleep between the COORD_CMD_START also makes the test
pass in QEMU, but that increases the overall test time significantly in
TC_concurrent_ues100.
Change-Id: I4c76d12273a14df562ea906e6c8ddb348d1b0eda
---
M epdg/EPDG_Tests.ttcn
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/20/40320/1
diff --git a/epdg/EPDG_Tests.ttcn b/epdg/EPDG_Tests.ttcn
index c8db429..9ca9d82 100644
--- a/epdg/EPDG_Tests.ttcn
+++ b/epdg/EPDG_Tests.ttcn
@@ -1272,7 +1272,7 @@
}
for (var integer i := 0; i < num_ues; i := i + 1) {
- COORD.receive(COORD_CMD_ATTACHED) from vc_conn_list[i];
+ COORD.receive(COORD_CMD_ATTACHED);
}
log("All attached!");
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40320?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I4c76d12273a14df562ea906e6c8ddb348d1b0eda
Gerrit-Change-Number: 40320
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40319?usp=email )
Change subject: epdg: add sleep to f_TC_hss_initiated_deregister_permanent_termination
......................................................................
epdg: add sleep to f_TC_hss_initiated_deregister_permanent_termination
The test sends PERMANENT_TERMINATION twice to osmo-epdg. If we don't
sleep between them, osmo-epdg is not able to terminate related FSMs
quickly enough between the first and the second termination request when
running in QEMU, which results in osmo-epdg answering with
DIAMETER_SUCESS instead of DIAMETER_ERROR_USER_UNKNOWN for the second
f_DIA_SWx_RT.
Change-Id: I5d7021b6a9800cf1d7588f4a0ef864f5c30cf475
---
M epdg/EPDG_Tests.ttcn
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/19/40319/1
diff --git a/epdg/EPDG_Tests.ttcn b/epdg/EPDG_Tests.ttcn
index b551b67..c8db429 100644
--- a/epdg/EPDG_Tests.ttcn
+++ b/epdg/EPDG_Tests.ttcn
@@ -1192,6 +1192,7 @@
f_initial_attach();
/* Procedure should be performed properly: */
f_DIA_SWx_RT(PERMANENT_TERMINATION, tr_AVP_ResultCode(DIAMETER_SUCCESS));
+ f_sleep(1.0);
/* Subscriber was already removed, it should fail if requested again: */
var DIAMETER_ts29_229_ExperimentalResultcode erc := DIAMETER_ERROR_USER_UNKNOWN;
f_DIA_SWx_RT(PERMANENT_TERMINATION, tr_AVP_ExperimentalResult(vendor_id_3GPP, int2oct(enum2int(erc), 4)),
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40319?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I5d7021b6a9800cf1d7588f4a0ef864f5c30cf475
Gerrit-Change-Number: 40319
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40310?usp=email )
Change subject: testenv: no python trace for setup script failures
......................................................................
testenv: no python trace for setup script failures
Do not print a python trace when a setup script fails, usually it is
unrelated and just clutters the output.
Change-Id: Icbec52befa268547906fdbe9b52bdbc9e94722e6
---
M _testenv/testenv/daemons.py
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/10/40310/1
diff --git a/_testenv/testenv/daemons.py b/_testenv/testenv/daemons.py
index da8248e..d4804d0 100644
--- a/_testenv/testenv/daemons.py
+++ b/_testenv/testenv/daemons.py
@@ -75,7 +75,8 @@
if "setup" in section_data:
setup = section_data["setup"]
logging.info(f"Running {section} setup script")
- testenv.cmd.run(setup, cwd=cwd)
+ if testenv.cmd.run(setup, cwd=cwd, check=False).returncode:
+ raise testenv.NoTraceException(f"{section}: setup script failed")
def kill_process_tree(pid, ppids):
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40310?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Icbec52befa268547906fdbe9b52bdbc9e94722e6
Gerrit-Change-Number: 40310
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40312?usp=email )
Change subject: testenv: podman: add missing tree command
......................................................................
testenv: podman: add missing tree command
The tree command is used by the testenv scripts when building QEMU
initrds to quickly show the contents of the initrd before packing it.
Fix for:
+ tree -a /tmp/testenv-ggsn_tests-osmo_ggsn_v4_only-20250509-1151-745e3562-dxt_lu1f/ggsn/_initrd
osmo-ggsn/run.sh: 140: tree: not found
That the build initramfs logic did not abort here is another bug that
gets fixed in a follow-up patch in this series.
Change-Id: I75fcd210db9e5c9364cb98ee09ebf754790aa55f
---
M _testenv/data/podman/Dockerfile
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/12/40312/1
diff --git a/_testenv/data/podman/Dockerfile b/_testenv/data/podman/Dockerfile
index 9f92206..fb97ee8 100644
--- a/_testenv/data/podman/Dockerfile
+++ b/_testenv/data/podman/Dockerfile
@@ -85,6 +85,7 @@
sqlite3 \
sudo \
tcpdump \
+ tree \
vim \
vsmartcard-vpcd \
wget \
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40312?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I75fcd210db9e5c9364cb98ee09ebf754790aa55f
Gerrit-Change-Number: 40312
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40313?usp=email )
Change subject: testenv: qemu: fix adding kernel modules
......................................................................
testenv: qemu: fix adding kernel modules
Without this patch qemu_initrd_add_file fails to add kernel modules
with "No such file or directory" when running in podman, even though the
files exist:
./testenv.py run ggsn -Dp -c osmo_ggsn_v4_only
…
+ cp -a --parents /lib/modules/6.1.0-34-amd64/kernel/drivers/net/net_failover.ko /tmp/testenv-ggsn_tests-osmo_ggsn_v4_only-20250509-1146-cd82caba-wegi5i98/ggsn/_initrd/usr
cp: 'lib/modules/6.1.0-34-amd64/kernel/drivers/net': No such file or directory
…
When looking at it with strace it became clear that this comes from a
getxattr that fails in the podman filesystem and returns a misleading
error:
getxattr("lib/modules/6.1.0-34-amd64/kernel/drivers/net", "system.posix_acl_access", 0x7ffc012054e0, 132) = -1 ENOENT (No such file or directory)
Fix it by modifying the cp command to not try to preserve any attributes
(they don't matter in the initramfs).
Change-Id: Ic32318da169ee8ebf867937782be5cf8a15f9f2f
---
M _testenv/data/scripts/qemu/qemu_functions.sh
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/13/40313/1
diff --git a/_testenv/data/scripts/qemu/qemu_functions.sh b/_testenv/data/scripts/qemu/qemu_functions.sh
index e2014a1..9c92a37 100755
--- a/_testenv/data/scripts/qemu/qemu_functions.sh
+++ b/_testenv/data/scripts/qemu/qemu_functions.sh
@@ -8,14 +8,15 @@
# $@: path to files
qemu_initrd_add_file() {
local i
+ local cp="cp --no-dereference --recursive --parents"
for i in "$@"; do
case "$i" in
/bin/*|/sbin/*|/lib/*|/lib64/*)
- cp -a --parents "$i" "$INITRD_DIR"/usr
+ $cp "$i" "$INITRD_DIR"/usr
;;
*)
- cp -a --parents "$i" "$INITRD_DIR"
+ $cp "$i" "$INITRD_DIR"
;;
esac
done
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40313?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ic32318da169ee8ebf867937782be5cf8a15f9f2f
Gerrit-Change-Number: 40313
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>