Skip to content

Commit d68f5cd

Browse files
author
codebot
committed
Update main
2 parents 40b17b4 + 6d1b220 commit d68f5cd

File tree

113 files changed

+2528
-808
lines changed

Some content is hidden

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

113 files changed

+2528
-808
lines changed

.clang-tidy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ Checks: '-*,
2525
-misc-include-cleaner,
2626
modernize-*,
2727
-modernize-avoid-c-arrays,
28+
-modernize-use-nodiscard,
2829
-modernize-use-trailing-return-type,
2930
performance-*,
31+
-performance-enum-size,
3032
readability-*,
3133
-readability-avoid-unconditional-preprocessor-if,
3234
-readability-function-cognitive-complexity,

.gitlab/ci/build.yml

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ variables:
1717
AMD64_AVX2_TAG: amd64-avx2
1818
AMD64_AVX512_TAG: amd64-avx2-avx512
1919
ARM64_TAG: arm64
20-
21-
AMD64_LIB_BUILDER_TAG: on-prem-amd64
22-
AMD64_VIAVI_BUILDER_TAG: on-prem-amd64-avx2-avx512
23-
20+
2421
INFRASTRUCTURE_TAG:
2522
description: Computer architecture and supported instruction sets
2623
options:
@@ -117,7 +114,7 @@ variables:
117114
FORCE_DEBUG_INFO: "" # Empty for cmake default
118115
AUTO_DETECT_ISA: ""
119116
# TEST
120-
CTEST_TIMEOUT: 0
117+
TEST_EXECUTION_TIMEOUT: 0
121118
# CI
122119
SAVE_ARTIFACTS: "" # Empty by default
123120
KUBERNETES_CPU_REQUEST: 6
@@ -255,7 +252,10 @@ variables:
255252
;;
256253
valgrind)
257254
G_DEBUG=gc-friendly G_SLICE=always-malloc
258-
ctest_extra="-T memcheck -LE NO_MEMCHECK --timeout 10800"
255+
# Default timeout per test is 1500 (25 min)
256+
export CTEST_TIMEOUT=2700
257+
export CTEST_TEST_TIMEOUT=${CTEST_TIMEOUT}
258+
ctest_extra="-T memcheck -LE NO_MEMCHECK --timeout ${CTEST_TIMEOUT}"
259259
;;
260260
esac
261261
if [ -n "${FINGERPRINT}" ]; then
@@ -276,7 +276,7 @@ variables:
276276
echo "============================================================================================="
277277
278278
status_file=$(mktemp)
279-
timeout ${CTEST_TIMEOUT} \
279+
timeout ${TEST_EXECUTION_TIMEOUT} \
280280
bash -c "${CTEST_CMD} && echo 0 > ${status_file} || echo 1 > ${status_file}" \
281281
&& ret=$(cat ${status_file}) || ret=124
282282
@@ -420,9 +420,9 @@ variables:
420420
ENABLE_DPDK: "True"
421421
ASSERT_LEVEL: PARANOID
422422
AUTO_DETECT_ISA: "False"
423-
DPDK_VERSION: "23.11"
423+
DPDK_VERSION: "23.11_avx2"
424424
BUILD_ARGS: -DCMAKE_CXX_FLAGS="-march=x86-64-v3"
425-
tags: ["${AMD64_TAG}"]
425+
tags: ["${AMD64_AVX2_TAG}"]
426426

427427
.smoke valgrind:
428428
extends: .build_and_unit
@@ -712,7 +712,7 @@ valgrind changed tests:
712712
variables:
713713
CLEAN_BUILD: "False"
714714
FINGERPRINT: "fingerprints.csv"
715-
CTEST_TIMEOUT: 20m
715+
TEST_EXECUTION_TIMEOUT: 20m
716716
SAVE_ARTIFACTS: "True"
717717
script:
718718
- git config advice.detachedHead false
@@ -732,7 +732,7 @@ valgrind changed tests:
732732
echo "##################################################"
733733
git checkout origin/$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
734734
build_srsgnb
735-
- echo "This test execution has a timeout of ${CTEST_TIMEOUT}. If the execution excess that timer, the job will be marked as allowed_to_fail. This will avoid the job to have a huge duration in a MR pipeline."
735+
- echo "This test execution has a timeout of ${TEST_EXECUTION_TIMEOUT}. If the execution excess that timer, the job will be marked as allowed_to_fail. This will avoid the job to have a huge duration in a MR pipeline."
736736
- launch_tests
737737
cache:
738738
- !reference [.fetch_src_cache, cache]
@@ -921,10 +921,12 @@ package:
921921
KUBERNETES_MEMORY_LIMIT: 12Gi
922922
DEB_BUILD_OPTIONS: parallel=${KUBERNETES_CPU_LIMIT}
923923
MAKEFLAGS: -j${KUBERNETES_CPU_LIMIT}
924-
tags: ["${AMD64_LIB_BUILDER_TAG}"]
924+
extraopts: -DAUTO_DETECT_ISA=False -DCMAKE_CXX_FLAGS="-march=x86-64-v3"
925+
tags: ["${AMD64_AVX2_TAG}"]
925926
parallel:
926927
matrix:
927928
- OS_VERSION: "20.04"
929+
extraopts: -DAUTO_DETECT_ISA=False -DCMAKE_CXX_FLAGS="-march=x86-64"
928930
- OS_VERSION: "22.04"
929931
- OS_VERSION: "23.10"
930932
- OS_VERSION: "24.04"
@@ -938,7 +940,7 @@ install-package:
938940
variables:
939941
PROJECT_NAME: srsran-project
940942
RELEASE_VERSION: "99.9"
941-
tags: ["${AMD64_LIB_BUILDER_TAG}"]
943+
tags: ["${AMD64_AVX2_TAG}"]
942944
script:
943945
- gnb --version
944946
parallel:
@@ -1146,18 +1148,18 @@ ubuntu dpdk:
11461148
ASSERT_LEVEL: PARANOID
11471149
AUTO_DETECT_ISA: "True"
11481150
ENABLE_AVX512: "False"
1149-
tags: ["${AMD64_TAG}"]
1151+
tags: ["${AMD64_AVX2_TAG}"]
11501152
parallel:
11511153
matrix:
11521154
- OS: ubuntu-24.04
11531155
COMPILER: [gcc, clang]
1154-
DPDK_VERSION: ["23.11"]
1156+
DPDK_VERSION: ["23.11_avx2"]
11551157
- OS: ubuntu-23.10
11561158
COMPILER: [gcc, clang]
1157-
DPDK_VERSION: ["22.11.3", "23.11"]
1159+
DPDK_VERSION: ["22.11.3_avx2", "23.11_avx2"]
11581160
- OS: ubuntu-22.04
11591161
COMPILER: [gcc, clang]
1160-
DPDK_VERSION: ["22.11.3", "23.11"]
1162+
DPDK_VERSION: ["22.11.3_avx2", "23.11_avx2"]
11611163
- OS: ubuntu-20.04
11621164
COMPILER: [gcc, clang]
11631165
DPDK_VERSION: ["22.11.3", "23.11"]
@@ -1399,7 +1401,7 @@ build uhd alt:
13991401
TEST_MODE: none
14001402
ASSERT_LEVEL: PARANOID
14011403
AUTO_DETECT_ISA: "False"
1402-
tags: ["${AMD64_TAG}"]
1404+
tags: ["${AMD64_AVX2_TAG}"]
14031405
parallel:
14041406
matrix:
14051407
- OS: ubuntu-24.04
@@ -1725,7 +1727,6 @@ rhel-8 arm neon:
17251727
ENABLE_ZEROMQ: "False"
17261728
ENABLE_DPDK: "True"
17271729
COMPILER: [gcc, clang]
1728-
DPDK_VERSION: ["22.11.3", "23.11"]
17291730

17301731
ubuntu-20.04 amd64 avx2 dpdk:
17311732
extends: .build_and_unit
@@ -1739,6 +1740,7 @@ ubuntu-20.04 amd64 avx2 dpdk:
17391740
matrix:
17401741
- OS: ubuntu-20.04
17411742
<<: *basic_combinations_dpdk
1743+
DPDK_VERSION: ["22.11.3", "23.11"]
17421744
AUTO_DETECT_ISA: "True"
17431745
ENABLE_AVX512: "False"
17441746

@@ -1754,6 +1756,7 @@ ubuntu-20.04 amd64 avx512 dpdk:
17541756
matrix:
17551757
- OS: ubuntu-20.04
17561758
<<: *basic_combinations_dpdk
1759+
DPDK_VERSION: ["22.11.3", "23.11"]
17571760
AUTO_DETECT_ISA: "True"
17581761
ENABLE_AVX512: "True"
17591762

@@ -1769,6 +1772,7 @@ ubuntu-22.04 amd64 avx2 dpdk:
17691772
matrix:
17701773
- OS: ubuntu-22.04
17711774
<<: *basic_combinations_dpdk
1775+
DPDK_VERSION: ["22.11.3_avx2", "23.11_avx2"]
17721776
AUTO_DETECT_ISA: "True"
17731777
ENABLE_AVX512: "False"
17741778

@@ -1784,6 +1788,7 @@ ubuntu-22.04 amd64 avx512 dpdk:
17841788
matrix:
17851789
- OS: ubuntu-22.04
17861790
<<: *basic_combinations_dpdk
1791+
DPDK_VERSION: ["22.11.3_avx512", "23.11_avx512"]
17871792
AUTO_DETECT_ISA: "True"
17881793
ENABLE_AVX512: "True"
17891794

@@ -1799,6 +1804,7 @@ ubuntu-23.10 amd64 avx2 dpdk:
17991804
matrix:
18001805
- OS: ubuntu-23.10
18011806
<<: *basic_combinations_dpdk
1807+
DPDK_VERSION: ["22.11.3_avx2", "23.11_avx2"]
18021808
AUTO_DETECT_ISA: "True"
18031809
ENABLE_AVX512: "False"
18041810

@@ -1814,6 +1820,7 @@ ubuntu-23.10 amd64 avx512 dpdk:
18141820
matrix:
18151821
- OS: ubuntu-23.10
18161822
<<: *basic_combinations_dpdk
1823+
DPDK_VERSION: ["22.11.3_avx512", "23.11_avx512"]
18171824
AUTO_DETECT_ISA: "True"
18181825
ENABLE_AVX512: "True"
18191826

@@ -1829,7 +1836,7 @@ ubuntu-24.04 amd64 avx2 dpdk:
18291836
matrix:
18301837
- OS: ubuntu-24.04
18311838
<<: *basic_combinations_dpdk
1832-
DPDK_VERSION: "23.11"
1839+
DPDK_VERSION: "23.11_avx2"
18331840
AUTO_DETECT_ISA: "True"
18341841
ENABLE_AVX512: "False"
18351842

@@ -1845,7 +1852,7 @@ ubuntu-24.04 amd64 avx512 dpdk:
18451852
matrix:
18461853
- OS: ubuntu-24.04
18471854
<<: *basic_combinations_dpdk
1848-
DPDK_VERSION: "23.11"
1855+
DPDK_VERSION: "23.11_avx512"
18491856
AUTO_DETECT_ISA: "True"
18501857
ENABLE_AVX512: "True"
18511858

@@ -1916,7 +1923,7 @@ basic package:
19161923
variables:
19171924
<<: *package_variables
19181925
OS_VERSION: "24.04"
1919-
tags: ["${AMD64_LIB_BUILDER_TAG}"]
1926+
tags: ["${AMD64_AVX2_TAG}"]
19201927
needs: []
19211928

19221929
basic tsan:
@@ -1976,17 +1983,13 @@ basic avx512 dpdk:
19761983
ENABLE_UHD: "False"
19771984
ENABLE_ZEROMQ: "False"
19781985
ENABLE_DPDK: "True"
1979-
DPDK_VERSION: "23.11"
1980-
AUTO_DETECT_ISA: "True"
1981-
ENABLE_AVX512: "True"
1986+
DPDK_VERSION: "23.11_avx512"
1987+
AUTO_DETECT_ISA: "False"
1988+
BUILD_ARGS: -DCMAKE_CXX_FLAGS="-march=x86-64-v4"
19821989
FORCE_DEBUG_INFO: "True"
19831990
ASSERT_LEVEL: MINIMAL
19841991
SAVE_ARTIFACTS: "True"
1985-
KUBERNETES_CPU_REQUEST: 14
1986-
KUBERNETES_CPU_LIMIT: 14
1987-
KUBERNETES_MEMORY_REQUEST: 20Gi
1988-
KUBERNETES_MEMORY_LIMIT: 20Gi
1989-
tags: ["${AMD64_VIAVI_BUILDER_TAG}"]
1992+
tags: ["${AMD64_AVX512_TAG}"]
19901993
artifacts:
19911994
<<: *build_artifacts
19921995
expire_in: 3 day

0 commit comments

Comments
 (0)