Skip to content

Commit 40b17b4

Browse files
codebotasaezper
authored andcommitted
Update main
# Conflicts: # README.md # apps/examples/du/CMakeLists.txt # apps/examples/du/du_example.cpp # apps/examples/du/fapi_factory.cpp # apps/examples/du/fapi_factory.h # apps/examples/du/phy_factory.cpp # apps/examples/du/phy_factory.h # apps/examples/du/radio_notifier_sample.h # apps/services/console_helper.cpp # apps/services/console_helper.h # include/srsran/pdcp/pdcp_tx_pdu.h # include/srsran/support/signal_handler.h # lib/support/signal_handler.cpp
2 parents c33cacb + 480e334 commit 40b17b4

File tree

508 files changed

+8449
-4498
lines changed

Some content is hidden

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

508 files changed

+8449
-4498
lines changed

.gitlab-ci.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525

2626
include:
2727
- project: softwareradiosystems/ci/tools
28-
ref: "18"
28+
ref: "19"
2929
file: .gitlab/ci-shared/setup/all.yml
3030
- project: softwareradiosystems/ci/tools
31-
ref: "18"
31+
ref: "19"
3232
file: .gitlab/ci-shared/features/all.yml
3333
- project: softwareradiosystems/ci/tools
34-
ref: "18"
34+
ref: "19"
3535
file: .gitlab/ci-shared/tools/python.yml
3636
- project: softwareradiosystems/ci/tools
37-
ref: "18"
37+
ref: "19"
3838
file: .gitlab/ci-shared/tools/test_reporter.yml
3939
- local: .gitlab/ci/builders/version.yml
4040
- local: .gitlab/ci/build.yml
@@ -84,6 +84,7 @@ trigger builder:
8484
- .gitlab/ci/src_cache.yml
8585
- .gitlab/ci/builders.yml
8686
- .gitlab/ci/builders/**/*
87+
- docker/scripts/**/*
8788
trigger:
8889
include: .gitlab/ci/builders.yml
8990
strategy: depend
@@ -97,8 +98,13 @@ trigger docker:
9798
- .gitlab/ci/docker.yml
9899
- docker/**/*.{yml,env,json,toml,py,sh,csv,py,toml}
99100
- docker/**/Dockerfile
100-
- scripts/srsran_performance
101101
- .gdbinit
102+
- if: $CI_DESCRIPTION =~ /Nightly Build Unit Tests/
103+
variables:
104+
CI_DESCRIPTION: $CI_DESCRIPTION
105+
- if: $CI_DESCRIPTION =~ /Weekly/
106+
variables:
107+
CI_DESCRIPTION: $CI_DESCRIPTION
102108
trigger:
103109
include: .gitlab/ci/docker.yml
104110
strategy: depend
@@ -370,7 +376,10 @@ unit coverage:
370376
expire_in: 10 minutes
371377
retry: 2
372378
needs:
373-
- job: intermediate commits
379+
- job: intermediate commits cached
380+
optional: true
381+
artifacts: true
382+
- job: intermediate commits clean
374383
optional: true
375384
artifacts: true
376385
- job: smoke release update cache
@@ -400,7 +409,7 @@ pages:
400409
- mv coverage_html public/
401410
- mv codechecker*html public/
402411
- mv docs/index.html public/index.html
403-
- .gitlab/ci/builders/install_dependencies.sh
412+
- docker/scripts/install_dependencies.sh
404413
- apt-get update && apt-get install -y --no-install-recommends rsync
405414
- |
406415
rm -Rf build

.gitlab/ci/build.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,8 @@ smoke avx512 cached:
569569
stage: manual
570570
timeout: 1 hour
571571
rules:
572+
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
573+
when: never
572574
- if: $ON_MR == "true" && $CI_MERGE_REQUEST_APPROVED == "true"
573575
changes:
574576
<<: *instruction_set_changes
@@ -669,9 +671,11 @@ smoke arm neon clean:
669671

670672
# Intermediate commits
671673

672-
intermediate commits:
674+
intermediate commits cached:
673675
extends: .smoke release
674676
rules:
677+
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
678+
when: never
675679
- if: $ON_MR
676680
timeout: 1 hour
677681
variables:
@@ -734,6 +738,13 @@ valgrind changed tests:
734738
- !reference [.fetch_src_cache, cache]
735739
- *cache_build_get
736740

741+
intermediate commits clean:
742+
extends: intermediate commits cached
743+
rules:
744+
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
745+
cache:
746+
- !reference [.fetch_src_cache, cache]
747+
737748
#################
738749
# Build Nightly #
739750
#################
@@ -1306,7 +1317,7 @@ debian 11 amd64 avx512:
13061317
matrix:
13071318
# ubuntu-20.04 disabled due to https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/2029910
13081319
# ubuntu-22.04 disabled due to https://github.com/google/sanitizers/issues/1259#issuecomment-642312392
1309-
- OS: [ubuntu-24.04, ubuntu-23.10]
1320+
- OS: [ubuntu-24.04, ubuntu-23.10]
13101321
SANITIZER: tsan
13111322
COMPILER: [gcc, clang]
13121323
ENABLE_TSAN: "True"
@@ -1348,7 +1359,7 @@ sanitizers amd64 avx512:
13481359
matrix:
13491360
# ubuntu-20.04 disabled due to https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/2029910
13501361
# ubuntu-22.04 disabled due to https://github.com/google/sanitizers/issues/1259#issuecomment-642312392
1351-
- OS: [ubuntu-24.04, ubuntu-23.10]
1362+
- OS: [ubuntu-24.04, ubuntu-23.10]
13521363
SANITIZER: tsan
13531364
COMPILER: [gcc, clang]
13541365
ENABLE_TSAN: "True"
@@ -1954,7 +1965,7 @@ basic avx512 dpdk:
19541965
rules:
19551966
- if: $CI_DESCRIPTION =~ /Nightly E2E Tests/
19561967
when: delayed
1957-
start_in: 2 hours
1968+
start_in: 1 hours
19581969
retry: 2
19591970
interruptible: false
19601971
variables:

.gitlab/ci/builders.yml

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
include:
1010
- project: softwareradiosystems/ci/tools
11-
ref: "18"
11+
ref: "19"
1212
file: .gitlab/ci-shared/setup/all.yml
1313
- project: softwareradiosystems/ci/tools
14-
ref: "18"
14+
ref: "19"
1515
file: .gitlab/ci-shared/tools/docker.yml
1616
- project: softwareradiosystems/ci/tools
17-
ref: "18"
17+
ref: "19"
1818
file: .gitlab/ci-shared/tools/python.yml
1919
- local: .gitlab/ci/builders/version.yml
2020
- local: .gitlab/ci/src_cache.yml
@@ -83,20 +83,8 @@ ubuntu-uhd-builder:
8383
# Install dependencies and compile
8484
- |
8585
build_uhd() {
86-
DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
87-
curl apt-transport-https ca-certificates xz-utils \
88-
cmake build-essential pkg-config \
89-
libboost-all-dev libusb-1.0-0-dev doxygen \
90-
python3-docutils python3-mako python3-numpy python3-setuptools python3-requests
91-
92-
cd /tmp
93-
curl -LJO "https://github.com/EttusResearch/uhd/archive/refs/tags/v${uhd_version}.tar.gz"
94-
tar -xf "uhd-${uhd_version}.tar.gz"
95-
cd "uhd-${uhd_version}/host" && mkdir -p build && cd build
96-
cmake -DENABLE_LIBUHD=On -DCMAKE_INSTALL_PREFIX="/opt/uhd/${uhd_version}" .. || cmake -DENABLE_LIBUHD=On -DCMAKE_INSTALL_PREFIX="/opt/uhd/${uhd_version}" ..
97-
make -j${KUBERNETES_CPU_REQUEST}
98-
make install
99-
86+
docker/scripts/install_uhd_dependencies.sh build
87+
docker/scripts/build_uhd.sh ${uhd_version} native ${KUBERNETES_CPU_REQUEST}
10088
mkdir -p ${CI_PROJECT_DIR}/.gitlab/ci/builders/uhd
10189
cp -r /opt/uhd/${uhd_version} ${CI_PROJECT_DIR}/.gitlab/ci/builders/uhd/${uhd_version}
10290
}
@@ -176,19 +164,8 @@ ubuntu-dpdk-builder:
176164
# Install dependencies and compile
177165
- |
178166
build_dpdk() {
179-
DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
180-
curl apt-transport-https ca-certificates xz-utils \
181-
python3-pip ninja-build g++ git build-essential pkg-config libnuma-dev libfdt-dev pciutils
182-
183-
export PIP_EXTRA_INDEX_URL=""
184-
pip3 install meson pyelftools || pip3 install --break-system-packages meson pyelftools
185-
186-
cd /tmp
187-
curl -L "https://fast.dpdk.org/rel/dpdk-${dpdk_version}.tar.xz" | tar -xJ
188-
cd dpdk*${dpdk_version}
189-
meson build --prefix "/opt/dpdk/${dpdk_version}"
190-
ninja -j${KUBERNETES_CPU_REQUEST} -C build install
191-
167+
docker/scripts/install_dpdk_dependencies.sh build
168+
docker/scripts/build_dpdk.sh ${dpdk_version} native ${KUBERNETES_CPU_REQUEST}
192169
mkdir -p ${CI_PROJECT_DIR}/.gitlab/ci/builders/dpdk
193170
cp -r /opt/dpdk/${dpdk_version} ${CI_PROJECT_DIR}/.gitlab/ci/builders/dpdk/${dpdk_version}
194171
}
@@ -255,7 +232,10 @@ ubuntu-dpdk-builder:
255232
export DOCKERFILE=$CONTEXT/$OS_FAMILY
256233
export BUILD_ARGS="OS_NAME=${OS_NAME};VERSION=${OS_VERSION};TAG=${VERSION};RHEL_VERSION=${RHEL_CT_VERSION};CR_REGISTRY_URI=${CR_REGISTRY_URI}"
257234
- |
258-
mkdir -p $CONTEXT/uhd $CONTEXT/dpdk # make sure those jobs that don't need UHD can copy something
235+
cp -r ${CI_PROJECT_DIR}/docker/scripts/. ${CI_PROJECT_DIR}/${CONTEXT}
236+
ls -lah $CONTEXT
237+
- |
238+
mkdir -p $CONTEXT/uhd $CONTEXT/dpdk
259239
ls -lah $CONTEXT/uhd $CONTEXT/dpdk
260240
needs:
261241
- builder version
@@ -311,6 +291,8 @@ image-build-publish [codechecker]:
311291
export CONTEXT=.gitlab/ci/builders
312292
export DOCKERFILE=$CONTEXT/codechecker
313293
export BUILD_ARGS="CR_REGISTRY_URI=${CR_REGISTRY_URI};CI_TOOLS_REPO=${CI_TOOLS_REPO}"
294+
- |
295+
cp -r ${CI_PROJECT_DIR}/docker/scripts/. ${CI_PROJECT_DIR}/${CONTEXT}
314296
needs:
315297
- builder version
316298
cache:

.gitlab/ci/builders/version.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,20 @@ builder version:
2020
script:
2121
- |
2222
hash_multiple() {
23-
# Create a temporary tar archive of the folder
23+
# Create a temporary tar archive of the folders
2424
temp_archive=$(mktemp)
25-
tar -cf "$temp_archive" -C "$@" --mtime='1970-01-01' --sort=name .
25+
26+
# Create a tar archive with the provided folders
27+
tar -cf "$temp_archive" --directory="${CI_PROJECT_DIR}" --mtime='1970-01-01' --sort=name "$@"
2628
2729
# Generate the hash of the archive using sha256sum
2830
hash=$(sha256sum "$temp_archive" | cut -c 1-32)
2931
echo "$hash"
3032
3133
# Clean up the temporary archive
3234
rm "$temp_archive"
33-
}
34-
- DOCKER_BUILDER_VERSION=$(hash_multiple .gitlab/ci/builders)
35+
}
36+
- DOCKER_BUILDER_VERSION=$(hash_multiple .gitlab/ci/builders docker/scripts)
3537
- echo "DOCKER_BUILDER_VERSION=$DOCKER_BUILDER_VERSION" >> builder.env
3638
- echo ${DOCKER_BUILDER_VERSION}
3739
artifacts:

0 commit comments

Comments
 (0)