Attention is currently required from: Hoernchen.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/35549?usp=email )
Change subject: test: adjust for libosmocore loglevel cache
......................................................................
Patch Set 1:
(1 comment)
File tests/nanobts_omlattr/nanobts_omlattr_test.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/35549/comment/8cdc7a35_61d6c709
PS1, Line 275: talloc_total_blocks(ctx) == 6
Well, I am simply suggesting a more fundamental fix, eliminating the need to adjust this count again next time somebody changes logging:
> I would suggest to call `log_fini()` before checking the talloc report.
If you do so, then there will be only one block alone - the root ctx.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/35549?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: If52bcb522d41918db9e0755ead58abdcb8f0209b
Gerrit-Change-Number: 35549
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 11 Jan 2024 17:37:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hoernchen <ewild(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: fixeria.
Hoernchen has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/35549?usp=email )
Change subject: test: adjust for libosmocore loglevel cache
......................................................................
Patch Set 1:
(1 comment)
File tests/nanobts_omlattr/nanobts_omlattr_test.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/35549/comment/9958137e_0c9ec9a9
PS1, Line 275: talloc_total_blocks(ctx) == 6
> Hmm, why do we even make assumptions on the logging hierarchy here. […]
I have no idea and I don't care because the cache is not about test code originally commited >10 years ago... This ist just about making this work. Log levels should not be manipulated by accessing the logging structs either....
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/35549?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: If52bcb522d41918db9e0755ead58abdcb8f0209b
Gerrit-Change-Number: 35549
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 11 Jan 2024 17:21:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: Hoernchen.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/35549?usp=email )
Change subject: test: adjust for libosmocore loglevel cache
......................................................................
Patch Set 1:
(1 comment)
File tests/nanobts_omlattr/nanobts_omlattr_test.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/35549/comment/9dec3b7c_25b9d687
PS1, Line 275: talloc_total_blocks(ctx) == 6
Hmm, why do we even make assumptions on the logging hierarchy here.
This is wrong. We should only check what we actually allocate ourselves.
I would suggest to call `log_fini()` before checking the talloc report.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/35549?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: If52bcb522d41918db9e0755ead58abdcb8f0209b
Gerrit-Change-Number: 35549
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 11 Jan 2024 17:19:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
fixeria has submitted this change. ( https://gerrit.osmocom.org/c/osmocom-bb/+/35547?usp=email )
Change subject: firmware: fix shebang in solve_envs.py: s/python/python3/
......................................................................
firmware: fix shebang in solve_envs.py: s/python/python3/
This patch fixes [currently missing] Jenkins build verification.
Currently it's just skipping the firmware due to errors:
make -C target/firmware CROSS_COMPILE=arm-none-eabi-
make[1]: Entering directory '/build/src/target/firmware'
/usr/bin/env: 'python': No such file or directory
/usr/bin/env: 'python': No such file or directory
/usr/bin/env: 'python': No such file or directory
/usr/bin/env: 'python': No such file or directory
/usr/bin/env: 'python': No such file or directory
/usr/bin/env: 'python': No such file or directory
...
Change-Id: Ibfcc17ca2736da82d60db3b0e350b74e788031b0
---
M src/target/firmware/solve_envs.py
1 file changed, 23 insertions(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
fixeria: Looks good to me, approved
laforge: Looks good to me, but someone else must approve
diff --git a/src/target/firmware/solve_envs.py b/src/target/firmware/solve_envs.py
index b010897..da1b0e1 100755
--- a/src/target/firmware/solve_envs.py
+++ b/src/target/firmware/solve_envs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import sys
--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/35547?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ibfcc17ca2736da82d60db3b0e350b74e788031b0
Gerrit-Change-Number: 35547
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged