Attention is currently required from: Hoernchen.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmocom-bb/+/30054 )
Change subject: trxcon: maintain full power scan state in the trxcon_fsm
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/30054
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ic5f724a11e225b439ec10aed7697e3e03b7929e5
Gerrit-Change-Number: 30054
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 11 Nov 2022 06:37:54 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: neels, pespin, lynxis lazus.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/29788 )
Change subject: Add BTS setup ramping to prevent BSC overloading
......................................................................
Patch Set 15:
(7 comments)
File include/osmocom/bsc/bts_setup_ramp.h:
https://gerrit.osmocom.org/c/osmo-bsc/+/29788/comment/6d17b724_0b60a368
PS3, Line 31: BTS_SETUP_RAMP_INIT, /** initial state */
> Done
I am surprised it took so many iterations, but still does not match what Neels actually suggested. There should be only one '*' (not two) followed by the '<'. Anyways, I am giving up here.
File src/osmo-bsc/bsc_vty.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/29788/comment/a80d636b_ed568edd
PS4, Line 3100: bts-setup-ramping-step-interval
> Good idea. Please do a follow-up patch after this commit has been merged.
I am sorry, but no. This should be addressed before merging.
File src/osmo-bsc/bsc_vty.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/29788/comment/5deabe72_c4299b46
PS15, Line 3121: The amount of BTS while a step interval
This sentence is somehow wrong, please rephrase.
File src/osmo-bsc/bts_setup_ramp.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/29788/comment/f1cffb23_f1de5f0f
PS4, Line 98: && net->bts_setup_ramp.step_size > 0
> Ack
Not addressed.
https://gerrit.osmocom.org/c/osmo-bsc/+/29788/comment/98007115_0d9bcd84
PS4, Line 201: INIT_LLIST_HEAD(&bts->bts_setup_ramp.list);
> Done
Comment was not added.
File src/osmo-bsc/bts_setup_ramp.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/29788/comment/01ca7619_a3f0c97f
PS15, Line 51: if (llist_empty(&bts->bts_setup_ramp.list))
Why don't you check the bts->bts_setup_ramp.state against BTS_SETUP_RAMP_WAIT here?
It's this the purpose of the state?
https://gerrit.osmocom.org/c/osmo-bsc/+/29788/comment/35edfab8_c3462a8e
PS15, Line 74: net->bts_setup_ramp.count >= net->bts_setup_ramp.step_size)
This line needs to be aligned to the opening brace, otherwise it looks like the block's body.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/29788
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Id56dde6d58f3d0d20352f6c306598d2cccc6345d
Gerrit-Change-Number: 29788
Gerrit-PatchSet: 15
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Fri, 11 Nov 2022 05:41:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: neels <nhofmeyr(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Comment-In-Reply-To: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-MessageType: comment
dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/30077 )
Change subject: shell: Use a double asterisk for kwargs
......................................................................
shell: Use a double asterisk for kwargs
The missing asterisk on kwargs caused the values there to be erroneously treated as the autocomplete key ID by the cmd2 library.
Related: OS#5589
Change-Id: I19d28276e73e7024f64ed693c3b5e37c1344c687
---
M pySim-shell.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/77/30077/1
diff --git a/pySim-shell.py b/pySim-shell.py
index 90fe2e7..29a2c8c 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -153,7 +153,7 @@
else:
kwargs = {'include_ipy': True}
super().__init__(persistent_history_file='~/.pysim_shell_history', allow_cli_args=False,
- auto_load_commands=False, startup_script=script, *kwargs)
+ auto_load_commands=False, startup_script=script, **kwargs)
self.intro = style('Welcome to pySim-shell!', fg=RED)
self.default_category = 'pySim-shell built-in commands'
self.card = None
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/30077
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I19d28276e73e7024f64ed693c3b5e37c1344c687
Gerrit-Change-Number: 30077
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-CC: markb <markboldyrev(a)gmail.com>
Gerrit-MessageType: newchange
dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/30075 )
Change subject: Fix compatibility with cmd2 >= 2.3.0
......................................................................
Fix compatibility with cmd2 >= 2.3.0
cmd2.fg and cmd2.bg have been deprecated in cmd2 2.3.0 and removed
in cmd2 2.4.0. Let's work around this by a version check.
Related upstream commits:
commit f57b08672af97f9d973148b6c30d74fe4e712d14
Author: Kevin Van Brunt <kmvanbrunt(a)gmail.com>
Date: Mon Oct 11 15:20:46 2021 -0400
and
commit f217861feae45a0a1abb56436e68c5dd859d64c0
Author: Kevin Van Brunt <kmvanbrunt(a)gmail.com>
Date: Wed Feb 16 13:34:13 2022 -0500
Change-Id: I9fd32c0fd8f6d40e00a318602af97c288605e8e5
---
M pySim-shell.py
M pySim/ts_102_222.py
2 files changed, 7 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/75/30075/1
diff --git a/pySim-shell.py b/pySim-shell.py
index e52c4ef..938223a 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -23,7 +23,13 @@
import traceback
import cmd2
-from cmd2 import style, fg, bg
+from cmd2 import style
+# cmd2 >= 2.3.0 has deprecated the bg/fg in favor of Bg/Fg :(
+from packaging import version
+if version.parse(cmd2.__version__) < version.parse("2.3.0"):
+ from cmd2 import fg, bg
+else:
+ from cmd2 import Fg as fg, Bg as bg
from cmd2 import CommandSet, with_default_category, with_argparser
import argparse
diff --git a/pySim/ts_102_222.py b/pySim/ts_102_222.py
index c7cff85..3c57e5b 100644
--- a/pySim/ts_102_222.py
+++ b/pySim/ts_102_222.py
@@ -20,7 +20,6 @@
from typing import List
import cmd2
-from cmd2 import style, fg, bg
from cmd2 import CommandSet, with_default_category, with_argparser
import argparse
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/30075
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I9fd32c0fd8f6d40e00a318602af97c288605e8e5
Gerrit-Change-Number: 30075
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
Attention is currently required from: Hoernchen, fixeria.
dexter has posted comments on this change. ( https://gerrit.osmocom.org/c/osmocom-bb/+/30054 )
Change subject: trxcon: maintain full power scan state in the trxcon_fsm
......................................................................
Patch Set 2: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/30054
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ic5f724a11e225b439ec10aed7697e3e03b7929e5
Gerrit-Change-Number: 30054
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 10 Nov 2022 16:32:11 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment