Skip to content

Commit e5d5b44

Browse files
author
codebot
committed
Update main
2 parents cda0033 + e570a95 commit e5d5b44

File tree

12 files changed

+57
-33
lines changed

12 files changed

+57
-33
lines changed

.gitlab/ci/e2e.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ custom e2e:
7474
when: never
7575
- if: $ON_WEB
7676
- if: $ON_API
77+
timeout: 28 hours
7778
needs:
7879
- *retina-needs
7980
- custom build
@@ -494,6 +495,7 @@ viavi-extended:
494495
- if: $CI_DESCRIPTION =~ /Weekly/
495496
variables:
496497
KEYWORDS: "extended and not 24h"
498+
timeout: 28 hours
497499
needs:
498500
- job: "basic avx512 dpdk"
499501
artifacts: true

.gitlab/run_viavi_pipeline.py

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,22 @@
2020
DEFAULT_BUILD_ARGS = '-DCMAKE_BUILD_TYPE=Release -DFORCE_DEBUG_INFO=True -DENABLE_UHD=False -DENABLE_DPDK=True -DENABLE_ZEROMQ=False -DMARCH="x86-64-v4"'
2121
DEFAULT_DPDK_VERSION = "23.11.1_avx512"
2222

23+
2324
# pylint: disable=too-many-instance-attributes
2425
@dataclass
2526
class _TestDefinition:
26-
"""
27-
"""
27+
""" """
2828

29-
campaign_filename: str = ""
3029
id: str = ""
30+
campaign_filename: str = ""
31+
test_name: str = ""
3132
description: str = ""
3233

34+
3335
# pylint: disable=too-many-instance-attributes
3436
@dataclass
3537
class _ArgsDefinition:
36-
"""
37-
"""
38+
""" """
3839

3940
testlist: bool = False
4041
token: str = ""
@@ -46,20 +47,25 @@ class _ArgsDefinition:
4647
build_args: str = DEFAULT_BUILD_ARGS
4748
dpdk_version: str = DEFAULT_DPDK_VERSION
4849

50+
4951
def get_viavi_tests():
50-
viavi_test_declaration = (pathlib.Path(__file__).parent / '..' / 'tests' / 'e2e' / 'tests' / 'viavi' / 'test_declaration.yml').resolve()
51-
with open(viavi_test_declaration, 'r') as file:
52+
viavi_test_declaration = (
53+
pathlib.Path(__file__).parent / ".." / "tests" / "e2e" / "tests" / "viavi" / "test_declaration.yml"
54+
).resolve()
55+
with open(viavi_test_declaration, "r", encoding="utf-8") as file:
5256
data = yaml.safe_load(file)
5357

54-
test_list : List[_TestDefinition] = []
55-
for test in data['tests']:
58+
test_list: List[_TestDefinition] = []
59+
for test in data["tests"]:
5660
test_definition = _TestDefinition()
57-
test_definition.campaign_filename = test['campaign_filename']
58-
test_definition.id = test['id']
59-
test_definition.description = test.get('description', '')
61+
test_definition.id = test["id"]
62+
test_definition.campaign_filename = test["campaign_filename"]
63+
test_definition.test_name = test["test_name"]
64+
test_definition.description = test.get("description", "")
6065
test_list.append(test_definition)
6166
return test_list
6267

68+
6369
def validate_args(args) -> _ArgsDefinition:
6470
args_definition = _ArgsDefinition()
6571
args_definition.testlist = args.testlist
@@ -87,6 +93,7 @@ def validate_args(args) -> _ArgsDefinition:
8793
exit(1)
8894
return args_definition
8995

96+
9097
def show_test_list():
9198
test_list = get_viavi_tests()
9299
print("Available tests:")
@@ -114,7 +121,7 @@ def run_test(args_definition: _ArgsDefinition, test_definition: _TestDefinition)
114121
TESTBED = "viavi"
115122
MARKERS = "viavi_manual"
116123

117-
PYARGS = f'--viavi-manual-campaign-filename "{test_definition.campaign_filename}" --viavi-manual-test-name "{test_definition.id}" --viavi-manual-test-timeout {timeout} --retina-pod-timeout 900'
124+
PYARGS = f'--viavi-manual-campaign-filename "{test_definition.campaign_filename}" --viavi-manual-test-name "{test_definition.test_name}" --viavi-manual-test-timeout {timeout} --retina-pod-timeout 900'
118125
if args_definition.gnb_extra:
119126
PYARGS += f' --viavi-manual-extra-gnb-arguments "{args_definition.gnb_extra}"'
120127

@@ -153,6 +160,8 @@ def run_test(args_definition: _ArgsDefinition, test_definition: _TestDefinition)
153160
pipeline_url = pipeline.web_url
154161

155162
print(f"Pipeline created: {pipeline_url}")
163+
164+
156165
def main():
157166
"""
158167
Entrypoint runner.
@@ -173,7 +182,7 @@ def main():
173182

174183
parser.add_argument(
175184
"--testid",
176-
help='[REQUIRED] Testid in the campaign.',
185+
help="[REQUIRED] Testid in the campaign.",
177186
)
178187

179188
parser.add_argument(
@@ -194,9 +203,7 @@ def main():
194203
default=DEFAULT_DPDK_VERSION,
195204
)
196205

197-
parser.add_argument(
198-
"--timeout", help="Timeout in seconds for the test"
199-
)
206+
parser.add_argument("--timeout", help="Timeout in seconds for the test")
200207

201208
args_definition = validate_args(parser.parse_args())
202209
if args_definition.testlist:
@@ -211,5 +218,6 @@ def main():
211218
print(f"Testid {args_definition.testid} not found.")
212219
exit(1)
213220

221+
214222
if __name__ == "__main__":
215223
main()

apps/units/flexible_o_du/split_helpers/o_du_high_factory.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ std::vector<o_du_high_unit> srsran::make_multicell_with_multi_du(const o_du_high
7676
tmp_cfg.du_high_cfg.config.cells_cfg.resize(1);
7777
tmp_cfg.du_high_cfg.config.cells_cfg[0] = du_hi.cells_cfg[i];
7878
tmp_cfg.fapi_cfg = o_du_high_unit_cfg.fapi_cfg;
79+
tmp_cfg.e2_cfg = o_du_high_unit_cfg.e2_cfg;
7980
srs_du::o_du_high_dependencies sector_deps;
8081
sector_deps.sectors.push_back(dependencies.o_du_hi_dependencies.sectors[i]);
8182

lib/e2/common/e2_entity.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ using namespace srsran;
3939
using namespace asn1::e2ap;
4040
using metrics_interface = std::variant<e2_du_metrics_interface*, e2_cu_metrics_interface*>;
4141

42-
e2_entity::e2_entity(const e2ap_configuration& cfg_,
42+
e2_entity::e2_entity(const e2ap_configuration cfg_,
4343
e2_connection_client& e2_client_,
4444
metrics_interface e2_metrics_,
4545
srs_du::f1ap_ue_id_translator* f1ap_ue_id_translator_,
@@ -76,7 +76,7 @@ e2_entity::e2_entity(const e2ap_configuration& cfg_,
7676
e2sm_mngr->add_e2sm_service(e2sm_rc_asn1_packer::oid, std::move(e2sm_rc_iface));
7777
}
7878

79-
e2ap = std::make_unique<e2_impl>(cfg_, *this, timers_, e2_client_, *subscription_mngr, *e2sm_mngr, task_exec_);
79+
e2ap = std::make_unique<e2_impl>(cfg, *this, timers_, e2_client_, *subscription_mngr, *e2sm_mngr, task_exec_);
8080
}
8181

8282
void e2_entity::build_e2_kpm_du(metrics_interface e2_metrics_, srs_du::f1ap_ue_id_translator* f1ap_ue_id_translator)

lib/e2/common/e2_entity.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace srsran {
4646
class e2_entity final : public e2_agent
4747
{
4848
public:
49-
e2_entity(const e2ap_configuration& cfg_,
49+
e2_entity(const e2ap_configuration cfg_,
5050
e2_connection_client& e2_client_,
5151
std::variant<e2_du_metrics_interface*, e2_cu_metrics_interface*> e2_metrics_,
5252
srs_du::f1ap_ue_id_translator* f1ap_ue_id_translator_,
@@ -62,8 +62,8 @@ class e2_entity final : public e2_agent
6262
void on_e2_disconnection() override;
6363

6464
private:
65-
srslog::basic_logger& logger;
66-
const e2ap_configuration& cfg;
65+
srslog::basic_logger& logger;
66+
const e2ap_configuration cfg;
6767

6868
void build_e2_kpm_du(std::variant<e2_du_metrics_interface*, e2_cu_metrics_interface*> e2_metrics_,
6969
srs_du::f1ap_ue_id_translator* f1ap_ue_id_translator);

lib/e2/e2sm/e2sm_kpm/e2sm_kpm_du_meas_provider_impl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ e2sm_kpm_du_meas_provider_impl::e2sm_kpm_du_meas_provider_impl(srs_du::f1ap_ue_i
106106
e2sm_kpm_supported_metric_t{
107107
NO_LABEL, ALL_LEVELS, true, &e2sm_kpm_du_meas_provider_impl::get_drb_ul_rlc_sdu_latency});
108108

109-
supported_metrics.emplace(
110-
"RACH.PreambleDedCell",
111-
e2sm_kpm_supported_metric_t{NO_LABEL, ALL_LEVELS, true, &e2sm_kpm_du_meas_provider_impl::get_prach_cell_count});
109+
supported_metrics.emplace("RACH.PreambleDedCell",
110+
e2sm_kpm_supported_metric_t{
111+
NO_LABEL, E2_NODE_LEVEL, true, &e2sm_kpm_du_meas_provider_impl::get_prach_cell_count});
112112

113113
// Check if the supported metrics are matching e2sm_kpm metrics definitions.
114114
check_e2sm_kpm_metrics_definitions(get_e2sm_kpm_28_552_metrics());

lib/ofh/receiver/ofh_closed_rx_window_handler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void closed_rx_window_handler::handle_prach_context(slot_symbol_point symbol_poi
101101

102102
if (log_unreceived_messages) {
103103
logger.warning("Missed incoming User-Plane PRACH messages for slot '{}' and sector#{}",
104-
ctx_value.context.sector,
104+
ctx_value.context.slot,
105105
ctx_value.context.sector);
106106
}
107107

tests/benchmarks/pdcp/CMakeLists.txt

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,22 @@ include_directories(../../..)
2424

2525
add_executable(pdcp_tx_benchmark pdcp_tx_benchmark.cpp)
2626
target_link_libraries(pdcp_tx_benchmark srsran_pdcp srsran_security srslog)
27-
add_test(pdcp_tx_benchmark pdcp_tx_benchmark)
28-
set_tests_properties(pdcp_tx_benchmark PROPERTIES LABELS "tsan")
27+
add_test(pdcp_tx_benchmark_nea0 pdcp_tx_benchmark -a0 -R3)
28+
add_test(pdcp_tx_benchmark_nea1 pdcp_tx_benchmark -a1 -R1)
29+
add_test(pdcp_tx_benchmark_nea2 pdcp_tx_benchmark -a2 -R3)
30+
add_test(pdcp_tx_benchmark_nea3 pdcp_tx_benchmark -a3 -R1)
31+
set_tests_properties(pdcp_tx_benchmark_nea0 PROPERTIES LABELS "tsan")
32+
set_tests_properties(pdcp_tx_benchmark_nea1 PROPERTIES LABELS "tsan")
33+
set_tests_properties(pdcp_tx_benchmark_nea2 PROPERTIES LABELS "tsan")
34+
set_tests_properties(pdcp_tx_benchmark_nea3 PROPERTIES LABELS "tsan")
2935

3036
add_executable(pdcp_rx_benchmark pdcp_rx_benchmark.cpp)
3137
target_link_libraries(pdcp_rx_benchmark srsran_pdcp srsran_security srslog)
32-
add_test(pdcp_rx_benchmark pdcp_rx_benchmark)
33-
set_tests_properties(pdcp_rx_benchmark PROPERTIES LABELS "tsan")
38+
add_test(pdcp_rx_benchmark_nea0 pdcp_rx_benchmark -a0 -R3)
39+
add_test(pdcp_rx_benchmark_nea1 pdcp_rx_benchmark -a1 -R1)
40+
add_test(pdcp_rx_benchmark_nea2 pdcp_rx_benchmark -a2 -R3)
41+
add_test(pdcp_rx_benchmark_nea3 pdcp_rx_benchmark -a3 -R1)
42+
set_tests_properties(pdcp_rx_benchmark_nea0 PROPERTIES LABELS "tsan")
43+
set_tests_properties(pdcp_rx_benchmark_nea1 PROPERTIES LABELS "tsan")
44+
set_tests_properties(pdcp_rx_benchmark_nea2 PROPERTIES LABELS "tsan")
45+
set_tests_properties(pdcp_rx_benchmark_nea3 PROPERTIES LABELS "tsan")

tests/benchmarks/pdcp/pdcp_rx_benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class pdcp_rx_test_frame : public pdcp_tx_status_handler,
7979
};
8080

8181
struct bench_params {
82-
unsigned nof_repetitions = 8;
82+
unsigned nof_repetitions = 10;
8383
unsigned nof_crypto_threads = 8;
8484
unsigned crypto_queue_size = 4096;
8585
bool print_timing_info = false;

tests/benchmarks/pdcp/pdcp_tx_benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class pdcp_tx_gen_frame : public pdcp_tx_lower_notifier, public pdcp_tx_upper_co
5151
};
5252

5353
struct bench_params {
54-
unsigned nof_repetitions = 8;
54+
unsigned nof_repetitions = 10;
5555
bool print_timing_info = false;
5656
unsigned nof_sdus = 1024;
5757
unsigned sdu_len = 1500;

0 commit comments

Comments
 (0)