Skip to content

Commit 9c2976b

Browse files
author
codebot
committed
Update main
# Conflicts: # apps/cu/adapters/e2_gateways.h # apps/services/e2/e2_appconfig.h # apps/services/e2/e2_appconfig_translators.cpp # tests/unittests/phy/upper/signal_processors/dmrs_pucch_estimator_test_data.tar.gz
2 parents 91a0b69 + a57502d commit 9c2976b

File tree

400 files changed

+1780
-1333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

400 files changed

+1780
-1333
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pr reminder:
8787
trigger builder:
8888
stage: ci
8989
rules:
90-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-builder/
90+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-builder/
9191
when: never
9292
- if: $ON_MR
9393
changes:
@@ -102,7 +102,7 @@ trigger builder:
102102
trigger docker:
103103
stage: ci
104104
rules:
105-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-docker/
105+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-docker/
106106
when: never
107107
- if: $ON_MR
108108
changes:

.gitlab/ci-shared/e2e.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ variables:
115115
cat $RETINA_CONFIG_ENV >> .gitlab/ci/e2e/.env
116116
# Modify request to shared the complete folder with the gnb container
117117
- |
118-
yq -i '(.[] | select(.type == "gnb") | .shared_files) += [{"local_path": "../../", "remote_path": env(SRSRANDIR), "is_executable": false}]' ${SRSRANDIR}/.gitlab/ci/e2e/retina_request_${TESTBED}.yml
118+
if [ "$CI_JOB_NAME_SLUG" != "smoke-zmq" ]; then
119+
yq -i '(.[] | select(.type == "gnb") | .shared_files) += [{"local_path": "../../", "remote_path": env(SRSRANDIR), "is_executable": false}]' ${SRSRANDIR}/.gitlab/ci/e2e/retina_request_${TESTBED}.yml
120+
fi
119121
# Set username for retina
120122
- |
121123
cd tests/e2e

.gitlab/ci-shared/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ variables:
1616
SLACK_CHANNEL_INFO_MSG: "#ci_gnb_verbose"
1717
# srsRAN references
1818
SRSRANDIR: &srsran_dir ${CI_PROJECT_DIR}/srsgnb
19-
SRSRAN_REPO_URL: https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/softwareradiosystems/srsgnb.git
19+
SRSRAN_REPO_URL: https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_SHELL_SSH_HOST}/softwareradiosystems/srsgnb.git
2020

2121
######
2222
# CI #

.gitlab/ci/build.yml

Lines changed: 39 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,14 @@ variables:
229229

230230
.smoke relwithdeb:
231231
extends: .build_and_unit
232+
script: &smoke_script
233+
- |
234+
if [[ $CI_MERGE_REQUEST_LABELS != *"ci-no-plugin"* ]]; then
235+
git submodule add https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_SHELL_SSH_HOST}/${PLUGIN_REPO}.git ${PLUGIN_PATH}
236+
fi
237+
- *srs_functions
238+
- build_srsgnb
239+
- launch_tests
232240
variables:
233241
OS: ubuntu-24.04
234242
COMPILER: gcc
@@ -240,6 +248,8 @@ variables:
240248

241249
.smoke tsan:
242250
extends: .build_and_unit
251+
script:
252+
- *smoke_script
243253
variables:
244254
OS: ubuntu-24.04
245255
COMPILER: clang
@@ -275,6 +285,8 @@ variables:
275285

276286
.smoke dpdk:
277287
extends: .build_and_unit
288+
script:
289+
- *smoke_script
278290
variables:
279291
OS: ubuntu-24.04
280292
COMPILER: clang
@@ -300,6 +312,8 @@ variables:
300312

301313
.smoke avx512:
302314
extends: .build_and_unit
315+
script:
316+
- *smoke_script
303317
variables:
304318
OS: ubuntu-24.04
305319
COMPILER: gcc
@@ -311,6 +325,8 @@ variables:
311325

312326
.smoke arm:
313327
extends: .build_and_unit
328+
script:
329+
- *smoke_script
314330
variables:
315331
OS: ubuntu-24.04
316332
COMPILER: gcc
@@ -322,6 +338,8 @@ variables:
322338

323339
.smoke arm neon:
324340
extends: .build_and_unit
341+
script:
342+
- *smoke_script
325343
variables:
326344
OS: ubuntu-24.04
327345
COMPILER: gcc
@@ -348,7 +366,7 @@ smoke relwithdeb cached:
348366
extends: .smoke relwithdeb
349367
timeout: 1 hour
350368
rules:
351-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
369+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
352370
when: never
353371
- if: $ON_MR
354372
after_script:
@@ -361,7 +379,7 @@ smoke relwithdeb cached:
361379
smoke split 7.2 cached:
362380
extends: smoke relwithdeb cached
363381
rules:
364-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
382+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
365383
when: never
366384
- if: $ON_MR
367385
changes: &split_changes
@@ -383,7 +401,7 @@ smoke tsan cached:
383401
stage: manual
384402
timeout: 1 hour
385403
rules:
386-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
404+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
387405
when: never
388406
- if: $ON_MR == "true" && $CI_MERGE_REQUEST_APPROVED == "true"
389407
- if: $ON_MR
@@ -397,7 +415,7 @@ smoke rhel cached:
397415
stage: manual
398416
timeout: 1 hour
399417
rules:
400-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
418+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
401419
when: never
402420
- if: $ON_MR == "true" && $CI_MERGE_REQUEST_APPROVED == "true"
403421
- if: $ON_MR
@@ -411,7 +429,7 @@ smoke archlinux cached:
411429
stage: manual
412430
timeout: 1 hour
413431
rules:
414-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
432+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
415433
when: never
416434
- if: $ON_MR == "true" && $CI_MERGE_REQUEST_APPROVED == "true"
417435
- if: $ON_MR
@@ -425,7 +443,7 @@ smoke dpdk cached:
425443
stage: manual
426444
timeout: 1 hour
427445
rules:
428-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
446+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
429447
when: never
430448
- if: $ON_MR == "true" && $CI_MERGE_REQUEST_APPROVED == "true"
431449
- if: $ON_MR
@@ -446,7 +464,7 @@ smoke avx512 cached:
446464
stage: manual
447465
timeout: 1 hour
448466
rules:
449-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
467+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
450468
when: never
451469
- if: $ON_MR == "true" && $CI_MERGE_REQUEST_APPROVED == "true"
452470
changes:
@@ -464,7 +482,7 @@ smoke arm cached:
464482
stage: manual
465483
timeout: 1 hour
466484
rules:
467-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
485+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
468486
when: never
469487
- if: $ON_MR == "true" && $CI_MERGE_REQUEST_APPROVED == "true"
470488
changes:
@@ -482,7 +500,7 @@ smoke arm neon cached:
482500
stage: manual
483501
timeout: 1 hour
484502
rules:
485-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
503+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
486504
when: never
487505
- if: $ON_MR == "true" && $CI_MERGE_REQUEST_APPROVED == "true"
488506
changes:
@@ -498,7 +516,7 @@ smoke arm neon cached:
498516
smoke relwithdeb clean:
499517
extends: .smoke relwithdeb
500518
rules:
501-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
519+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
502520
after_script:
503521
- *build_after_script
504522
artifacts:
@@ -507,7 +525,7 @@ smoke relwithdeb clean:
507525
smoke split 7.2 clean:
508526
extends: smoke relwithdeb clean
509527
rules:
510-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
528+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
511529
changes:
512530
<<: *split_changes
513531
variables:
@@ -524,41 +542,41 @@ smoke split 8 clean:
524542
smoke tsan clean:
525543
extends: .smoke tsan
526544
rules:
527-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
545+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
528546

529547
smoke rhel clean:
530548
extends: .smoke rhel
531549
rules:
532-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
550+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
533551

534552
smoke archlinux clean:
535553
extends: .smoke archlinux
536554
rules:
537-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
555+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
538556

539557
smoke dpdk clean:
540558
extends: .smoke dpdk
541559
rules:
542-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
560+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
543561

544562
smoke avx512 clean:
545563
extends: .smoke avx512
546564
rules:
547-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
565+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
548566
changes:
549567
<<: *instruction_set_changes
550568

551569
smoke arm clean:
552570
extends: .smoke arm
553571
rules:
554-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
572+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
555573
changes:
556574
<<: *instruction_set_changes
557575

558576
smoke arm neon clean:
559577
extends: .smoke arm neon
560578
rules:
561-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
579+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
562580
changes:
563581
<<: *instruction_set_changes
564582

@@ -567,7 +585,7 @@ smoke arm neon clean:
567585
intermediate commits cached:
568586
extends: .smoke release
569587
rules:
570-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
588+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
571589
when: never
572590
- if: $ON_MR
573591
timeout: 2 hour
@@ -598,7 +616,7 @@ valgrind changed tests:
598616
allow_failure:
599617
exit_codes: 124 # timeout command's exit code when the time is reached
600618
rules:
601-
- if: $CI_MERGE_REQUEST_LABELS =~ /urgent/
619+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-memcheck/
602620
when: never
603621
- if: $ON_MR == "true" && $CI_MERGE_REQUEST_APPROVED == "true"
604622
- if: $ON_MR
@@ -635,7 +653,7 @@ valgrind changed tests:
635653
intermediate commits clean:
636654
extends: intermediate commits cached
637655
rules:
638-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
656+
- if: $CI_MERGE_REQUEST_LABELS =~ /ci-no-cache/
639657

640658
#################
641659
# Build Nightly #

.gitlab/ci/e2e.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ test mode ru tsan:
338338
artifacts: true
339339
- *txrx-lib
340340
- *retina-needs
341-
allow_failure: true
342341

343342
test mode ru asan:
344343
extends: test mode ru

.gitlab/ci/e2e/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SRSGNB_REGISTRY_URI=registry.gitlab.com/softwareradiosystems/srsgnb
22
RETINA_REGISTRY_PREFIX=registry.gitlab.com/softwareradiosystems/ci/retina
3-
RETINA_VERSION=0.54.16
3+
RETINA_VERSION=0.55.1
44
UBUNTU_VERSION=24.04
55
AMARISOFT_VERSION=2023-09-08
66
SRSUE_VERSION=23.11

apps/cu/cu.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
*
2121
*/
2222

23-
#include "apps/cu/adapters/e2_gateways.h"
2423
#include "apps/cu/cu_appconfig_cli11_schema.h"
2524
#include "apps/services/application_message_banners.h"
2625
#include "apps/services/application_tracer.h"
@@ -42,6 +41,7 @@
4241
#include "cu_appconfig_yaml_writer.h"
4342
#include "srsran/cu_up/cu_up.h"
4443
#include "srsran/e1ap/gateways/e1_local_connector_factory.h"
44+
#include "srsran/e2/e2ap_config_translators.h"
4545
#include "srsran/f1ap/gateways/f1c_network_server_factory.h"
4646
#include "srsran/f1u/cu_up/split_connector/f1u_split_connector_factory.h"
4747
#include "srsran/gateways/udp_network_gateway.h"
@@ -142,8 +142,8 @@ static void register_app_logs(const logger_appconfig& log_cfg,
142142
config_logger.set_hex_dump_max_size(log_cfg.hex_max_size);
143143

144144
auto& metrics_logger = srslog::fetch_basic_logger("METRICS", false);
145-
metrics_logger.set_level(log_cfg.metrics_level);
146-
metrics_logger.set_hex_dump_max_size(log_cfg.hex_max_size);
145+
metrics_logger.set_level(log_cfg.metrics_level.level);
146+
metrics_logger.set_hex_dump_max_size(log_cfg.metrics_level.hex_max_size);
147147

148148
// Register units logs.
149149
cu_cp_app_unit.on_loggers_registration();
@@ -317,10 +317,10 @@ int main(int argc, char** argv)
317317
io_timer_source time_source{app_timers, *epoll_broker, std::chrono::milliseconds{1}};
318318

319319
// Instantiate E2AP client gateway.
320-
std::unique_ptr<e2_connection_client> e2_gw_cu_cp =
321-
create_cu_e2_client_gateway(cu_cfg.e2_cfg, *epoll_broker, *cu_cp_dlt_pcaps.e2ap);
322-
std::unique_ptr<e2_connection_client> e2_gw_cu_up =
323-
create_cu_e2_client_gateway(cu_cfg.e2_cfg, *epoll_broker, *cu_up_dlt_pcaps.e2ap);
320+
std::unique_ptr<e2_connection_client> e2_gw_cu_cp = create_e2_gateway_client(generate_e2_client_gateway_config(
321+
cu_cp_app_unit->get_cu_cp_unit_config().e2_cfg, *epoll_broker, *cu_cp_dlt_pcaps.e2ap, E2_CP_PPID));
322+
std::unique_ptr<e2_connection_client> e2_gw_cu_up = create_e2_gateway_client(generate_e2_client_gateway_config(
323+
cu_up_app_unit->get_cu_up_unit_config().e2_cfg, *epoll_broker, *cu_up_dlt_pcaps.e2ap, E2_UP_PPID));
324324

325325
app_services::metrics_notifier_proxy_impl metrics_notifier_forwarder;
326326

apps/cu/cu_appconfig.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#pragma once
2424

2525
#include "apps/services/buffer_pool/buffer_pool_appconfig.h"
26-
#include "apps/services/e2/e2_appconfig.h"
2726
#include "apps/services/logger/logger_appconfig.h"
2827
#include "apps/services/worker_manager/worker_manager_appconfig.h"
2928
#include <string>
@@ -51,25 +50,16 @@ struct cu_f1ap_appconfig {
5150
struct cu_appconfig {
5251
/// Default constructor to update the log filename.
5352
cu_appconfig() { log_cfg.filename = "/tmp/cu.log"; }
54-
5553
/// Loggers configuration.
5654
logger_appconfig log_cfg;
57-
5855
/// Expert configuration.
5956
expert_execution_appconfig expert_execution_cfg;
60-
6157
/// NR-U
6258
srs_cu::cu_nru_appconfig nru_cfg;
63-
6459
/// F1AP
6560
srs_cu::cu_f1ap_appconfig f1ap_cfg;
66-
6761
/// Buffer pool configuration.
6862
buffer_pool_appconfig buffer_pool_config;
69-
70-
/// E2 configuration.
71-
e2_appconfig e2_cfg;
72-
/// TODO fill in the rest of the configuration
7363
};
7464

7565
} // namespace srsran

apps/cu/cu_appconfig_validator.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,5 @@ using namespace srsran;
2828

2929
bool srsran::validate_cu_appconfig(const cu_appconfig& config)
3030
{
31-
if (config.e2_cfg.enable_du_e2) {
32-
fmt::print("CU application cannot enable DU E2 agent\n");
33-
34-
return false;
35-
}
36-
3731
return validate_logger_appconfig(config.log_cfg);
3832
}

0 commit comments

Comments
 (0)