Attention is currently required from: lynxis lazus, pespin.
Hello Jenkins Builder, lynxis lazus,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40620?usp=email
to look at the new patch set (#4).
Change subject: bsc: TC_mscpool_sccp_n_pcstate_detaches_msc: wait for AS to become unavailable
......................................................................
bsc: TC_mscpool_sccp_n_pcstate_detaches_msc: wait for AS to become unavailable
Otherwise race conditions can ocurr, specially since during some time
the AS can be in PENDING state until finally going into DOWN state and
notifying the peer.
Change-Id: Idc84929d89cbac4eb67cd2740f98844253dde70d
---
M bsc/BSC_Tests.ttcn
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/20/40620/4
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40620?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Idc84929d89cbac4eb67cd2740f98844253dde70d
Gerrit-Change-Number: 40620
Gerrit-PatchSet: 4
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Attention is currently required from: lynxis lazus.
Hello Jenkins Builder, lynxis lazus,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40592?usp=email
to look at the new patch set (#5).
The following approvals got outdated and were removed:
Code-Review+1 by lynxis lazus, Verified+1 by Jenkins Builder
Change subject: hnbgw: Introduce test TC_stat_stp_sctp_disconnected
......................................................................
hnbgw: Introduce test TC_stat_stp_sctp_disconnected
Related: OS#5917
Depends: libosmo-sigtran.git Change-Id I7e4eedb65c4f2952f8b39ca4c539ca2f40e9946c
Change-Id: I079f2da09ff8d52e614ff6f5d267cd5429e4eb58
---
M hnbgw/HNBGW_Tests.default
M hnbgw/HNBGW_Tests.ttcn
M hnbgw/expected-results.xml
3 files changed, 110 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/92/40592/5
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40592?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I079f2da09ff8d52e614ff6f5d267cd5429e4eb58
Gerrit-Change-Number: 40592
Gerrit-PatchSet: 5
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Attention is currently required from: lynxis lazus, pespin.
fixeria has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40620?usp=email )
Change subject: bsc: TC_mscpool_sccp_n_pcstate_detaches_msc: wait for AS to become unavailable
......................................................................
Patch Set 3:
(1 comment)
Commit Message:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40620/comment/689eb2f4_c8e8… :
PS3, Line 13: This is the case for instance in test
This statement is incomplete.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40620?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: Idc84929d89cbac4eb67cd2740f98844253dde70d
Gerrit-Change-Number: 40620
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Wed, 09 Jul 2025 12:49:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Attention is currently required from: lynxis lazus, pespin.
Hello Jenkins Builder, lynxis lazus,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40620?usp=email
to look at the new patch set (#3).
The following approvals got outdated and were removed:
Code-Review+1 by lynxis lazus, Verified+1 by Jenkins Builder
Change subject: bsc: TC_mscpool_sccp_n_pcstate_detaches_msc: wait for AS to become unavailable
......................................................................
bsc: TC_mscpool_sccp_n_pcstate_detaches_msc: wait for AS to become unavailable
Otherwise race conditions can ocurr, specially since during some time
the AS can be in PENDING state until finally going into DOWN state and
notifying the peer.
This is the case for instance in test
Change-Id: Idc84929d89cbac4eb67cd2740f98844253dde70d
---
M bsc/BSC_Tests.ttcn
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/20/40620/3
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40620?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Idc84929d89cbac4eb67cd2740f98844253dde70d
Gerrit-Change-Number: 40620
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Attention is currently required from: lynxis lazus.
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40592?usp=email )
Change subject: hnbgw: Introduce test TC_stat_stp_sctp_disconnected
......................................................................
Patch Set 3:
(1 comment)
Commit Message:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40592/comment/bc2e8fbe_0977… :
PS3, Line 8:
> you could add some more contexts for such a long test. […]
The test itself is properly explained as a comment on its header, I see no point in duplicating the description here tbh:
````
/* When a peer point-code gets an SCCP N-PCSTATE saying it is unreachable,
* immediately mark the CN link as unusable.
* In this scenario, the SCCP N-PCSTATE is triggered by instructing the STP to
* shutdown the ASP serving the HNBGW, which will close the SCTP assoc between
* itself and IUT (HNBGW), which should then generate an N-PCSTATE.ind.
*/
function f_TC_stat_stp_sctp_disconnected_UnitdataCallback(RANAP_PDU ranap) runs on RAN_Emulation_CT return template RANAP_PDU {
````
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40592?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: I079f2da09ff8d52e614ff6f5d267cd5429e4eb58
Gerrit-Change-Number: 40592
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Tue, 08 Jul 2025 18:29:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: lynxis lazus <lynxis(a)fe80.eu>
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40619?usp=email )
Change subject: StatsD_Checker: Keep polling IUT if waiting for convergence
......................................................................
StatsD_Checker: Keep polling IUT if waiting for convergence
The wait_converge feature was implemented and used so far only against
IUTs which used also the snapshot feature, due to not having a VTY which
allows both resetting and triggering a status report manually. Instead,
those relied on IUT reporting changes at a given frequency.
If the wait_converge feature is requested and polling mode is used, then
make sure we poll once per second after last received statsd UDP msg.
Change-Id: Id78b46b88048206f74d1d88672b8309227e9438c
---
M library/StatsD_Checker.ttcnpp
1 file changed, 31 insertions(+), 6 deletions(-)
Approvals:
laforge: Looks good to me, but someone else must approve
Jenkins Builder: Verified
lynxis lazus: Looks good to me, approved
diff --git a/library/StatsD_Checker.ttcnpp b/library/StatsD_Checker.ttcnpp
index a944176..081e6e1 100644
--- a/library/StatsD_Checker.ttcnpp
+++ b/library/StatsD_Checker.ttcnpp
@@ -298,6 +298,24 @@
return result;
}
+private function using_poll_mode()runs on StatsD_Checker_CT return boolean
+{
+#ifdef STATSD_HAVE_VTY
+ return true;
+#else
+ return false;
+#endif
+}
+
+private function poll_stats_report() runs on StatsD_Checker_CT
+{
+#ifdef STATSD_HAVE_VTY
+ f_vty_transceive(STATSVTY, "stats report");
+#else
+ /* Assume caller knows previous state, eg. gauges may have been 0 due to IUT being reset */
+#endif
+}
+
private function f_statsd_checker_expect(StatsDExpects expects,
boolean wait_converge := false,
boolean use_snapshot := false,
@@ -307,6 +325,8 @@
var StatsDExpectResult res;
var Booleans matched := {};
var integer matched_remain := 0;
+ var boolean poll := using_poll_mode();
+ timer T_poll_converge;
for (var integer i := 0; i < lengthof(expects); i := i + 1) {
matched := matched & {false};
@@ -316,12 +336,8 @@
/* Dismiss any messages we might have skipped from the last report */
STATS.clear;
- if (not use_snapshot) {
-#ifdef STATSD_HAVE_VTY
- f_vty_transceive(STATSVTY, "stats report");
-#else
- /* Assume caller knows previous state, eg. gauges may have been 0 due to IUT being reset */
-#endif
+ if (poll) {
+ poll_stats_report();
}
T_statsd.start(g_timeout);
@@ -330,7 +346,15 @@
alt {
[] STATS.receive(tr_StatsD_RecvFrom(?, ?)) -> value rf {
msg := rf.msg;
+ if (poll and wait_converge) {
+ T_poll_converge.stop;
+ T_poll_converge.start(1.0);
}
+ }
+ [poll and wait_converge] T_poll_converge.timeout {
+ poll_stats_report();
+ repeat;
+ }
[] T_statsd.timeout {
for (var integer i := 0; i < lengthof(expects); i := i + 1) {
/* We're still missing some expects, keep looking */
@@ -369,6 +393,7 @@
}
}
}
+ T_poll_converge.stop;
T_statsd.stop;
return true;
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40619?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: Id78b46b88048206f74d1d88672b8309227e9438c
Gerrit-Change-Number: 40619
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>