Skip to content

Commit 51e44a6

Browse files
author
codebot
committed
Update main
# Conflicts: # tests/unittests/phy/upper/channel_processors/prach_detector_test_data.tar.gz # tests/unittests/phy/upper/channel_processors/pucch_demodulator_format2_test_data.tar.gz # tests/unittests/phy/upper/channel_processors/pucch_processor_format2_test_data.tar.gz
2 parents 10081bf + dd46594 commit 51e44a6

File tree

129 files changed

+3188
-550
lines changed

Some content is hidden

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

129 files changed

+3188
-550
lines changed

.gitlab-ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,18 @@ helm:
129129
- job: trigger docker
130130
artifacts: false
131131

132+
enterprise:
133+
stage: ci
134+
rules:
135+
- if: $CI_DESCRIPTION =~ /Nightly Build Unit Tests/
136+
variables:
137+
CI_DESCRIPTION: Nightly
138+
SRSRAN_COMMIT: $CI_COMMIT_SHA
139+
NOTIFY_SLACK: "true"
140+
trigger:
141+
project: softwareradiosystems/srsran_5g_enterprise
142+
branch: main
143+
132144
################################################################################
133145
## Static
134146
################################################################################

.gitlab/ci/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,6 +1851,7 @@ basic avx512 dpdk:
18511851
extends: .build_and_unit
18521852
rules:
18531853
- if: $CI_DESCRIPTION =~ /Nightly E2E Tests/
1854+
- if: $CI_DESCRIPTION =~ /Weekly/
18541855
retry: 2
18551856
interruptible: false
18561857
variables:

.gitlab/ci/docker.yml

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@ metrics version check in retina:
124124
tags:
125125
- amd64-avx2
126126
timeout: 2h
127-
before_script:
127+
before_script: &docker_setup
128128
- dockerd-entrypoint.sh &
129129
- |
130130
while ! ( nc -zv localhost 2376 2>&1 >/dev/null )
131131
do
132132
sleep 1
133133
done
134134
135-
gnb docker compose:
135+
.gnb docker compose:
136136
extends: .docker compose
137137
variables: &build_in_compose_variables
138138
KUBERNETES_CPU_REQUEST: 6
@@ -149,15 +149,26 @@ gnb docker compose:
149149
- docker/docker-compose.yml
150150
- if: $CI_DESCRIPTION =~ /Nightly Build Unit Tests/
151151
interruptible: false
152-
script:
152+
before_script:
153+
- *docker_setup
153154
- docker compose -f docker/docker-compose.yml build --build-arg NUM_CORES=${KUBERNETES_CPU_LIMIT} --build-arg LIB=${LIB} --build-arg LIB_VERSION=${LIB_VERSION} gnb
154-
- sh -c "docker compose -f docker/docker-compose.yml run --no-deps gnb ${TEST_CMD}"
155-
parallel:
156-
matrix:
157-
- <<: *uhd_params
158-
TEST_CMD: gnb amf --no_core=true ru_sdr --device_driver uhd | grep 'Failed to open device with address'
159-
- <<: *dpdk_params
160-
TEST_CMD: gnb amf --no_core=true hal --eal_args='--help'
155+
- sh -c "docker compose -f docker/docker-compose.yml run --no-deps gnb which srscu"
156+
- sh -c "docker compose -f docker/docker-compose.yml run --no-deps gnb which srsdu"
157+
158+
gnb docker compose uhd:
159+
extends: .gnb docker compose
160+
variables:
161+
<<: *uhd_params
162+
script:
163+
- sh -c "docker compose -f docker/docker-compose.yml run --no-deps gnb gnb amf --no_core=true ru_sdr --device_driver uhd | grep 'Failed to open device with address'"
164+
165+
gnb docker compose dpdk:
166+
extends: .gnb docker compose
167+
variables:
168+
<<: *dpdk_params
169+
script:
170+
- sh -c "docker compose -f docker/docker-compose.yml run --no-deps gnb which ru_emulator"
171+
- sh -c "docker compose -f docker/docker-compose.yml run --no-deps gnb gnb amf --no_core=true hal --eal_args='--help'"
161172

162173
5gc docker compose:
163174
extends: .docker compose
@@ -296,10 +307,6 @@ grafana server image latest:
296307
export NAME="srsran-project"
297308
export VERSION="${SPLIT}_${SUFFIX}"
298309
export BUILD_ARGS="LIB=${LIB};LIB_VERSION=${LIB_VERSION};MARCH=${MARCH};NUM_CORES=${KUBERNETES_CPU_LIMIT};EXTRA_CMAKE_ARGS=\"${EXTRA_CMAKE_ARGS}\""
299-
needs:
300-
- job: gnb docker compose
301-
optional: true
302-
artifacts: false
303310
304311
srsran image split72:
305312
extends: .srsran image
@@ -338,6 +345,10 @@ srsran image split72:
338345
MARCH: armv8.2-a+crypto+fp16+dotprod
339346
TAG: arm64
340347
PLATFORM: arm64
348+
needs:
349+
- job: gnb docker compose dpdk
350+
optional: true
351+
artifacts: false
341352

342353
srsran image split8:
343354
extends: .srsran image
@@ -366,3 +377,7 @@ srsran image split8:
366377
MARCH: armv8.2-a+crypto+fp16+dotprod
367378
TAG: arm64
368379
PLATFORM: arm64
380+
needs:
381+
- job: gnb docker compose uhd
382+
optional: true
383+
artifacts: false

.gitlab/ci/e2e.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,7 @@ android x300:
580580
################################################################################
581581
# VIAVI
582582
###############################################################################
583-
584-
viavi:
583+
.viavi:
585584
stage: rf
586585
extends: .e2e-run
587586
timeout: 8h
@@ -594,6 +593,9 @@ viavi:
594593
KUBECONFIG_VAR_NAME_EXTRA: "RETINA_NAMESPACE_KUBECONFIG_EXTRA"
595594
RETINA_PARAM_ARGS: "gnb.all.pcap=True gnb.all.rlc_enable=True gnb.all.rlc_rb_type=srb"
596595
RETINA_LAUNCHER_ARGS: "--retina-pod-timeout 900"
596+
597+
viavi:
598+
extends: .viavi
597599
needs:
598600
- job: "basic avx512 dpdk"
599601
artifacts: true
@@ -608,21 +610,28 @@ viavi:
608610
# "fading and 32UE",
609611
"birth-death and 1UE",
610612
# "birth-death and 32UE",
611-
"32UE and experimental",
613+
"32UE and experimental and not extended",
614+
]
615+
616+
viavi-extended:
617+
extends: .viavi
618+
rules:
619+
- if: $CI_DESCRIPTION =~ /Weekly/
620+
allow_failure: true
621+
needs:
622+
- job: "basic avx512 dpdk"
623+
artifacts: true
624+
- *retina-needs
625+
parallel:
626+
matrix:
627+
- KEYWORDS: [
628+
"extended",
612629
]
613630

614631
viavi-debug:
615-
stage: rf
616-
extends: .e2e-run
632+
extends: .viavi
617633
variables:
618-
GROUP: "viavi"
619-
TESTBED: "viavi"
620634
MARKERS: "viavi_debug"
621-
E2E_LOG_LEVEL: "warning"
622-
KUBECONFIG_VAR_NAME: "RETINA_NAMESPACE_KUBECONFIG"
623-
KUBECONFIG_VAR_NAME_EXTRA: "RETINA_NAMESPACE_KUBECONFIG_EXTRA"
624-
RETINA_PARAM_ARGS: "gnb.all.pcap=True gnb.all.rlc_enable=True gnb.all.rlc_rb_type=srb"
625-
RETINA_LAUNCHER_ARGS: "--retina-pod-timeout 900"
626635
allow_failure: true
627636
needs:
628637
- job: "basic avx512 dpdk withassert"

.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.52.9
3+
RETINA_VERSION=0.52.13
44
UBUNTU_VERSION=24.04
55
AMARISOFT_VERSION=2023-09-08
66
SRSUE_VERSION=23.11

.gitlab/ci/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,21 @@ notify branch published:
229229
SLACK_CHANNEL: $SLACK_CHANNEL_OK
230230
LEVEL: "ok"
231231

232+
publish maltab:
233+
stage: public
234+
interruptible: false
235+
variables:
236+
CI_DESCRIPTION: Release
237+
NOTIFY_SLACK: "false"
238+
rules:
239+
- if: *on_public_push
240+
- if: *on_public_release
241+
needs:
242+
- job: publish main
243+
trigger:
244+
project: softwareradiosystems/srsgnb_matlab
245+
branch: master
246+
232247
################################################################################
233248
# Release
234249
################################################################################

CMakeLists.txt

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,24 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
3838
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules")
3939
include(version) # sets version information
4040

41-
if(NOT CMAKE_BUILD_TYPE)
42-
set(CMAKE_BUILD_TYPE Release)
43-
message(STATUS "Build type not specified: defaulting to Release.")
44-
endif(NOT CMAKE_BUILD_TYPE)
45-
set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "")
41+
# Configure supported build types and default build type
42+
set(supported_build_types "Release" "RelWithDebInfo" "Debug")
43+
set(default_build_type "Release")
44+
45+
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
46+
message(STATUS "Build type not specified, using default: ${default_build_type}")
47+
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE STRING "Select build type" FORCE)
48+
else()
49+
# Check if build type is supported
50+
if(NOT "${CMAKE_BUILD_TYPE}" IN_LIST supported_build_types)
51+
message(SEND_ERROR "Unsupported build type '${CMAKE_BUILD_TYPE}'. Supported build types: ${supported_build_types}")
52+
else()
53+
message(STATUS "The build type is ${CMAKE_BUILD_TYPE}")
54+
endif()
55+
endif()
56+
57+
# Add possible values for build type in cmake-gui (drop-down widget, for convenience only)
58+
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${supported_build_types})
4659

4760
# Generate CMake to include build information
4861
configure_file(

apps/cu/cu_appconfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ namespace srs_cu {
3333
/// NR-U configuration
3434
struct cu_nru_appconfig {
3535
std::string bind_addr = "127.0.10.1"; // Bind address used by the F1-U interface
36+
std::string ext_addr = "auto"; // External address advertised by the F1-U interface
3637
int udp_rx_max_msgs = 256; // Max number of UDP packets received by a single syscall on the F1-U interface.
3738
float pool_occupancy_threshold = 0.9; // Buffer pool occupancy threshold after which packets are dropped.
3839
};

apps/cu/cu_appconfig_cli11_schema.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ static void configure_cli11_nru_args(CLI::App& app, srs_cu::cu_nru_appconfig& nr
4141
nru_cfg.bind_addr,
4242
"Default local IP address interfaces bind to, unless a specific bind address is specified")
4343
->check(CLI::ValidIPV4);
44+
app.add_option(
45+
"--ext_addr", nru_cfg.ext_addr, "External IP address that is advertised to receive F1-U packets from the DU");
4446
add_option(app, "--udp_max_rx_msgs", nru_cfg.udp_rx_max_msgs, "Maximum amount of messages RX in a single syscall");
4547
add_option(app,
4648
"--pool_threshold",

apps/cu/cu_appconfig_yaml_writer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ static void fill_cu_appconfig_nru_section(YAML::Node node, const srs_cu::cu_nru_
4545
YAML::Node nru_node = cu_up_node["nru"];
4646
nru_node["udp_max_rx_msgs"] = config.udp_rx_max_msgs;
4747
nru_node["bind_addr"] = config.bind_addr;
48+
nru_node["ext_addr"] = config.ext_addr;
4849
}
4950

5051
void srsran::fill_cu_appconfig_in_yaml_schema(YAML::Node& node, const cu_appconfig& config)

0 commit comments

Comments
 (0)