Patch Set 1: Code-Review-1

(1 comment)

Regarding the test failure: We recently updated the unit running 
osmo-gsm-tester to debian9 using new ansible recipes and we are experiencing 
some ofono modems stability issues and I need to restart ofono every few hours. 
I restarted ofono and re-triggered the jenkins job.

https://gerrit.osmocom.org/#/c/6377/1/src/osmo_gsm_tester/log.py
File src/osmo_gsm_tester/log.py:

Line 278:     # Poke into internal to avoid hitting the linecache which will 
make one or
According to [1], _getframe() can have a depth parameter, which if I understand 
correctly, makes useless the for loop below as you can pass levels_up - 1 
directly. Then better except for ValueError and return "<unknown:unknown>" if 
raised.

In the doc it is also specified that this function is cython specific, which 
means it may be better to leave old implementation as fallback. Check for 
except AttributeError when calling sys._getframe() and then call older 
implementation.

[1] https://docs.python.org/3/library/sys.html


-- 
To view, visit https://gerrit.osmocom.org/6377
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I8f6bacadcf74d3aa25db1e1f41644f64aa19cf92
Gerrit-PatchSet: 1
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Holger Freyther <hol...@freyther.de>
Gerrit-Reviewer: Holger Freyther <hol...@freyther.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <pes...@sysmocom.de>
Gerrit-Reviewer: neels <nhofm...@sysmocom.de>
Gerrit-HasComments: Yes

Reply via email to