Attention is currently required from: osmith, pespin.
fixeria has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38643?usp=email )
Change subject: testenv: show testsuite results at the end
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38643?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: Ie4b70724a33932cd98ba0972db37bf72dc8affb8
Gerrit-Change-Number: 38643
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 05 Nov 2024 15:50:02 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: pespin.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmo-sigtran/+/38645?usp=email
to look at the new patch set (#3).
The following approvals got outdated and were removed:
Verified-1 by Jenkins Builder
Change subject: sigtran: Make osmo_ss7_asp struct private
......................................................................
sigtran: Make osmo_ss7_asp struct private
The object should only (and currently is only) be used throuh public
APIs using a pointer.
Change-Id: I5839b4dd04468af20d1836386dcc722e7a83ac5f
---
M include/osmocom/sigtran/osmo_ss7.h
M src/Makefile.am
M src/ipa.c
M src/m3ua.c
M src/osmo_ss7.c
M src/osmo_ss7_as.c
M src/osmo_ss7_asp.c
M src/osmo_ss7_hmrt.c
M src/osmo_ss7_vty.c
M src/osmo_ss7_xua_srv.c
M src/sccp_user.c
A src/ss7_asp.h
M src/ss7_internal.h
M src/sua.c
M src/xua_as_fsm.c
M src/xua_asp_fsm.c
M src/xua_default_lm_fsm.c
M src/xua_rkm.c
M src/xua_shared.c
M src/xua_snm.c
M tests/ss7/ss7_test.c
21 files changed, 126 insertions(+), 83 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/45/38645/3
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/38645?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I5839b4dd04468af20d1836386dcc722e7a83ac5f
Gerrit-Change-Number: 38645
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
pespin has uploaded a new patch set (#2). ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/38645?usp=email )
Change subject: Make osmo_ss7_asp struct private
......................................................................
Make osmo_ss7_asp struct private
The object should only (and currently is only) be used throuh public
APIs using a pointer.
Change-Id: I5839b4dd04468af20d1836386dcc722e7a83ac5f
---
M include/osmocom/sigtran/osmo_ss7.h
M src/Makefile.am
M src/ipa.c
M src/m3ua.c
M src/osmo_ss7.c
M src/osmo_ss7_as.c
M src/osmo_ss7_asp.c
M src/osmo_ss7_hmrt.c
M src/osmo_ss7_vty.c
M src/osmo_ss7_xua_srv.c
M src/sccp_user.c
A src/ss7_asp.h
M src/ss7_internal.h
M src/sua.c
M src/xua_as_fsm.c
M src/xua_asp_fsm.c
M src/xua_default_lm_fsm.c
M src/xua_rkm.c
M src/xua_shared.c
M src/xua_snm.c
M tests/ss7/ss7_test.c
21 files changed, 126 insertions(+), 83 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/45/38645/2
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/38645?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I5839b4dd04468af20d1836386dcc722e7a83ac5f
Gerrit-Change-Number: 38645
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-CC: Jenkins Builder
Attention is currently required from: osmith.
pespin has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38644?usp=email )
Change subject: testenv: more tweaks for container shutdown logic
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38644?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: I71721fd41f044817e4021aea045a288f88506f76
Gerrit-Change-Number: 38644
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: Tue, 05 Nov 2024 15:01:51 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: fixeria, osmith, pespin.
pespin has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38643?usp=email )
Change subject: testenv: show testsuite results at the end
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38643?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: Ie4b70724a33932cd98ba0972db37bf72dc8affb8
Gerrit-Change-Number: 38643
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: Jenkins Builder
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 05 Nov 2024 15:00:56 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38644?usp=email )
Change subject: testenv: more tweaks for container shutdown logic
......................................................................
testenv: more tweaks for container shutdown logic
* Don't do "podman wait" when restarting the container. The idea was to
really wait before the current container was shutdown before
restarting one with the same name. But even with the wait we got "the
container name ... is already in use" errors and so we use different
names when restarting the container since 6fe837de ("testenv: podman:
restart_count in container_name"). This means "podman wait" is not
needed anymore.
* feed_watchdog_loop: change sleep from 5s to 2s, as we wait up to that
long after the container was shutdown, before testenv stops. 5s is
quite noticable compared to 2s when running the script locally.
* feed_watchdog_loop: hide stderr of "podman exec" since it will print
"Error: container ... does not exist in database: no such container"
during shutdown. This is expected as we stop the container, but it
looks like an actual error. We already have a more userfriendly
message "feed_watchdog_loop: podman container has stopped" that will
appear when the "podman exec" fails during shutdown.
Change-Id: I71721fd41f044817e4021aea045a288f88506f76
---
M _testenv/testenv/podman.py
1 file changed, 2 insertions(+), 5 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/44/38644/1
diff --git a/_testenv/testenv/podman.py b/_testenv/testenv/podman.py
index dc1b333..16db400 100644
--- a/_testenv/testenv/podman.py
+++ b/_testenv/testenv/podman.py
@@ -176,8 +176,8 @@
# container will terminate after a few seconds.
try:
while True:
- time.sleep(5)
- p = subprocess.run(["podman", "exec", container_name, "touch", "/tmp/watchdog"])
+ time.sleep(2)
+ p = subprocess.run(["podman", "exec", container_name, "touch", "/tmp/watchdog"], stderr=subprocess.DEVNULL)
if p.returncode:
logging.debug("feed_watchdog_loop: podman container has stopped")
return
@@ -340,9 +340,6 @@
testenv.cmd.run(["podman", "kill", container_name], no_podman=True, check=False)
- if restart:
- testenv.cmd.run(["podman", "wait", container_name], no_podman=True, check=False)
-
container_name = None
if restart:
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38644?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: I71721fd41f044817e4021aea045a288f88506f76
Gerrit-Change-Number: 38644
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/+/38643?usp=email )
Change subject: testenv: show testsuite results at the end
......................................................................
testenv: show testsuite results at the end
Show the testsuite results from junit-*.log not after each testenv*.cfg
file is through, but for all of them at the end. This way the results
are in one place when running with multiple configs, we don't need to
scroll to the middle of the huge log to find out what tests passed with
a previous config.
Adjust the podman container stop and restart logic, so the last
container is still running until we use it for showing the results.
Change-Id: Ie4b70724a33932cd98ba0972db37bf72dc8affb8
---
M _testenv/testenv.py
M _testenv/testenv/testsuite.py
2 files changed, 12 insertions(+), 8 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/43/38643/1
diff --git a/_testenv/testenv.py b/_testenv/testenv.py
index 23a2922..81b3aac 100755
--- a/_testenv/testenv.py
+++ b/_testenv/testenv.py
@@ -47,6 +47,10 @@
# Run the components + testsuite
cfg_count = 0
for cfg_name, cfg in testenv.testenv_cfg.cfgs.items():
+ # Restart podman container before running with another config
+ if testenv.args.podman and cfg_count:
+ testenv.podman.stop(True)
+
testenv.testenv_cfg.set_current(cfg_name)
if testenv.args.binary_repo:
@@ -58,15 +62,15 @@
testenv.testsuite.run(cfg)
testenv.daemons.stop()
testenv.testdir.clean_run_scripts("finished")
- testenv.testsuite.cat_junit_logs()
cfg_count += 1
testenv.set_log_prefix("[testenv]")
- # Restart podman container before running with another config
- if testenv.args.podman:
- restart = cfg_count < len(testenv.testenv_cfg.cfgs)
- testenv.podman.stop(restart)
+ # Show test results
+ testenv.testsuite.cat_junit_logs()
+
+ if testenv.args.podman:
+ testenv.podman.stop()
def init_podman():
diff --git a/_testenv/testenv/testsuite.py b/_testenv/testenv/testsuite.py
index 3bc8d9d..1878b5c 100644
--- a/_testenv/testenv/testsuite.py
+++ b/_testenv/testenv/testsuite.py
@@ -145,10 +145,10 @@
colors = os.environ.get("TESTENV_SOURCE_HIGHLIGHT_COLORS", "esc256")
tool = f"source-highlight -f {shlex.quote(colors)} -s xml -i"
- pattern = os.path.join(testenv.testdir.testdir, "testsuite", "junit-*.log")
- for path in glob.glob(pattern):
+ pattern = os.path.join(testenv.testdir.testdir_topdir, "**", "junit-*.log")
+ for path in glob.glob(pattern, recursive=True):
cmd = f"echo && {tool} {shlex.quote(path)} && echo"
- logging.info(f"Showing {os.path.basename(path)}")
+ logging.info(f"Showing {os.path.relpath(path, testenv.testdir.testdir_topdir)}")
testenv.cmd.run(cmd)
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38643?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: Ie4b70724a33932cd98ba0972db37bf72dc8affb8
Gerrit-Change-Number: 38643
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/38642?usp=email )
Change subject: sigtran: Make osmo_ss7_xua_server APIs private
......................................................................
Patch Set 2:
This change is ready for review.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/38642?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: master
Gerrit-Change-Id: Ie03697fdb2c9f95de011b21771261e52befb6018
Gerrit-Change-Number: 38642
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Comment-Date: Tue, 05 Nov 2024 14:55:52 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No