Skip to content

Commit 11c9bba

Browse files
author
codebot
committed
Update main
2 parents fc4e810 + d5e8831 commit 11c9bba

File tree

76 files changed

+1734
-1353
lines changed

Some content is hidden

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

76 files changed

+1734
-1353
lines changed

.gitlab-ci.yml

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ full-code-format:
396396
- |
397397
echo "
398398
-/usr/lib
399+
-*CMakeTmp
400+
-*CompilerIdCXX
399401
-*tests/unittests
400402
-*tests/integrationtests
401403
-*tests/benchmarks
@@ -425,7 +427,7 @@ full-code-format:
425427
done
426428
}
427429
export -f monitor_child_process
428-
script:
430+
script: &codechecker_script
429431
- nohup bash -c monitor_child_process &
430432
- static-analyzer.sh -i /tmp/codechecker_skip --jobs ${KUBERNETES_CPU_REQUEST} --analyzers ${ANALYZER} ${ANALYZER_ARGS} $CI_PROJECT_DIR
431433
after_script:
@@ -440,6 +442,17 @@ full-code-format:
440442

441443
clang-tidy:
442444
extends: .codechecker
445+
rules:
446+
- if: $CI_DESCRIPTION =~ /Nightly Build Unit Tests/
447+
interruptible: false
448+
retry: 2
449+
variables:
450+
ANALYZER: clang-tidy
451+
ANALYZER_ARGS: --analyzer-config clang-tidy:take-config-from-directory=true --tidy-config .clang-tidy
452+
ARTIFACT_EXTRA_PATH: "/index.html"
453+
454+
clang-tidy incremental:
455+
extends: clang-tidy
443456
stage: manual
444457
rules:
445458
- if: $ON_MR == "true" && $CI_MERGE_REQUEST_TARGET_BRANCH_PROTECTED == "true" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
@@ -449,9 +462,26 @@ clang-tidy:
449462
when: manual
450463
allow_failure: false
451464
variables:
452-
ANALYZER: clang-tidy
453-
ANALYZER_ARGS: --analyzer-config clang-tidy:take-config-from-directory=true --tidy-config .clang-tidy
454-
ARTIFACT_EXTRA_PATH: "/index.html"
465+
CCACHE_MAXSIZE: 3G
466+
CACHE_COMPRESSION_LEVEL: slowest
467+
CACHE_REQUEST_TIMEOUT: 5 # minutes - 10 by default
468+
script:
469+
- |
470+
cd $CI_PROJECT_DIR
471+
git config advice.detachedHead false
472+
git config --local core.hooksPath /dev/null
473+
git fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
474+
- |
475+
for rev in $CI_MERGE_REQUEST_TARGET_BRANCH_NAME $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME; do
476+
git checkout $rev
477+
CodeChecker log -o ${CI_PROJECT_DIR}/build/compile_commands.json --build "builder.sh -m -j${KUBERNETES_CPU_REQUEST} -c clang -DMARCH=x86-64-v3 -DENABLE_ARMPL=False -DENABLE_MKL=False -DENABLE_FFTW=True -DASSERT_LEVEL=PARANOID -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=False $CI_PROJECT_DIR"
478+
done
479+
- *codechecker_script
480+
cache:
481+
- key: codechecker-clang-tidy
482+
paths: [ccache]
483+
policy: pull-push
484+
when: always
455485

456486
cppcheck:
457487
extends: .codechecker
@@ -465,7 +495,7 @@ cppcheck:
465495
ANALYZER_ARGS: --cppcheck-max-template-recursion 5
466496
artifacts:
467497
<<: *codechecker_artifacts
468-
expire_in: 1 day
498+
expire_in: 7 days
469499

470500
clangsa:
471501
extends: .codechecker

.gitlab/ci-shared/e2e.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ variables:
3838
- warning
3939
- error
4040
value: "info"
41+
CLUSTER:
42+
description: Kubernetes cluster to use
43+
options:
44+
- "retina-e2e-amd64"
45+
- "new-retina-e2e-amd64"
46+
value: "retina-e2e-amd64"
4147

4248
.load retina variables:
4349
stage: ci
@@ -52,10 +58,16 @@ variables:
5258

5359
.prepare_test:
5460
variables: &setup_kube_variables
55-
KUBECONFIG_VAR_NAME: "RETINA_NAMESPACE_KUBECONFIG"
56-
KUBECONFIG_VAR_NAME_EXTRA: "RETINA_NAMESPACE_KUBECONFIG_EXTRA"
5761
GIT_LFS_SKIP_SMUDGE: 1
5862
before_script: &setup_kube_config
63+
- |
64+
if [ "$CLUSTER" = "new-retina-e2e-amd64" ]; then
65+
export KUBECONFIG_VAR_NAME="RETINA_NAMESPACE_KUBECONFIG_LAB_BCN"
66+
export KUBECONFIG_VAR_NAME_EXTRA=""
67+
else
68+
export KUBECONFIG_VAR_NAME="RETINA_NAMESPACE_KUBECONFIG"
69+
export KUBECONFIG_VAR_NAME_EXTRA="RETINA_NAMESPACE_KUBECONFIG_EXTRA"
70+
fi
5971
- |
6072
export FORCE_COLOR=1
6173
eval K_PATH="\$$KUBECONFIG_VAR_NAME"
@@ -83,7 +95,7 @@ variables:
8395
<<: *setup_kube_variables
8496
GROUP: zmq
8597
tags:
86-
- retina-e2e-amd64
98+
- ${CLUSTER}
8799
artifacts:
88100
paths:
89101
- ${SRSRANDIR}/tests/e2e/log
@@ -95,6 +107,7 @@ variables:
95107
- *setup_kube_config
96108
- |
97109
# Print E2E parameters
110+
echo "CLUSTER=${CLUSTER}"
98111
echo "GROUP=${GROUP}"
99112
echo "TESTBED=${TESTBED}"
100113
echo "E2E_FILE_OR_DIR=${E2E_FILE_OR_DIR}"

.gitlab/ci/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ variables:
263263
ENABLE_TSAN: "True"
264264
TEST_MODE: tsan
265265
MARCH: x86-64-v3
266-
LINKER: lld
267266
INFRASTRUCTURE_TAG: amd64-avx2
268267

269268
.smoke archlinux:

.gitlab/ci/builders/archlinux/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# the distribution.
77
#
88

9-
ARG VERSION=base-20250810.0.398652
9+
ARG VERSION=base-20250824.0.410029
1010
FROM archlinux:$VERSION
1111

1212
ADD install_dependencies.sh /usr/local/bin

.gitlab/ci/builders/codechecker/Dockerfile

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

99
ARG CR_REGISTRY_URI
1010
ARG CI_TOOLS_REPO
11-
ARG CODECHECKER_VERSION=1.0.1
11+
ARG CODECHECKER_VERSION=6.26.1
1212

1313
FROM ${CR_REGISTRY_URI}/${CI_TOOLS_REPO}/codechecker:${CODECHECKER_VERSION}
1414

15-
ADD install_dependencies.sh /usr/local/bin
16-
RUN chmod +x /usr/local/bin/install_dependencies.sh
15+
ADD install_dependencies.sh builder.sh /usr/local/bin/
16+
RUN chmod +x /usr/local/bin/install_dependencies.sh /usr/local/bin/builder.sh
1717

1818
RUN DEBIAN_FRONTEND=noninteractive apt-get update && install_dependencies.sh \
1919
&& apt-get install -y --no-install-recommends git \

.gitlab/ci/e2e.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,7 @@ smoke zmq:
102102
RETINA_LAUNCHER_ARGS: -x ${EXTRA_SMOKE_ZMQ}
103103
RETINA_PARAM_ARGS: gnb.all.pcap=True gnb.all.mac_enable=True gnb.all.rlc_enable=True gnb.all.enable_integrity_protection=True
104104
E2E_LOG_LEVEL: info
105-
KUBECONFIG_VAR_NAME: "RETINA_NAMESPACE_KUBECONFIG_LAB_BCN"
106-
KUBECONFIG_VAR_NAME_EXTRA: ""
107-
tags:
108-
- new-retina-e2e-amd64
105+
CLUSTER: new-retina-e2e-amd64
109106
before_script:
110107
- |
111108
export TESTBED=zmq
@@ -129,10 +126,7 @@ smoke zmq:
129126
variables:
130127
TESTBED: zmq
131128
E2E_LOG_LEVEL: info
132-
KUBECONFIG_VAR_NAME: "RETINA_NAMESPACE_KUBECONFIG_LAB_BCN"
133-
KUBECONFIG_VAR_NAME_EXTRA: ""
134-
tags:
135-
- new-retina-e2e-amd64
129+
CLUSTER: new-retina-e2e-amd64
136130
needs:
137131
- job: basic relwithdeb
138132
artifacts: true
@@ -363,10 +357,7 @@ test mode ue:
363357
MARKERS: test_mode
364358
KEYWORDS: test_ue
365359
E2E_LOG_LEVEL: warning
366-
KUBECONFIG_VAR_NAME: "RETINA_NAMESPACE_KUBECONFIG_LAB_BCN"
367-
KUBECONFIG_VAR_NAME_EXTRA: ""
368-
tags:
369-
- new-retina-e2e-amd64
360+
CLUSTER: new-retina-e2e-amd64
370361
needs:
371362
- job: basic relwithdeb
372363
artifacts: true
@@ -728,12 +719,16 @@ retina setup:
728719
name: ${RETINA_REGISTRY_PREFIX}/launcher:${RETINA_VERSION}
729720
entrypoint: ["/bin/sh", "-c"]
730721
tags:
731-
- retina-e2e-amd64
722+
- ${CLUSTER}
732723
script:
733724
- |
734725
retina-garbage-collector --mode demolition
735726
needs:
736727
- *retina-needs
728+
parallel:
729+
matrix:
730+
- CLUSTER: retina-e2e-amd64
731+
- CLUSTER: new-retina-e2e-amd64
737732

738733
retina runners:
739734
stage: ci

.gitlab/ci/e2e/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ OPEN5GS_VERSION=2.7.0
99
FLEXRIC_VERSION=br-flexric
1010
NTN_CHANNEL_EMULATOR_VERSION=0.1
1111
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
12-
SRS_TELEGRAF_VERSION=0.14.0
12+
SRS_TELEGRAF_VERSION=0.16.0
1313
DPDK_VERSION=24.11.2
1414
ZMQ_HOSTLABEL_0=kubernetes.io/hostname=hp-generic-2
1515
ZMQ_HOSTLABEL_1=kubernetes.io/hostname=ci-buildmaster

.gitlab/ci/release.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ generate plugin pipeline:
119119
- cat update_plugin.yml
120120
needs:
121121
- job: load release variables
122-
artifacts: true
122+
artifacts: true
123123
artifacts:
124124
paths:
125125
- update_plugin.yml
@@ -333,8 +333,10 @@ basic build final branch:
333333
if [[ $CI_COMMIT_TAG =~ ^([a-zA-Z0-9_]+)_([0-9]{4})\.([0-9]{2})\.([0-9]{2})$ ]]; then
334334
KEY="${BASH_REMATCH[1]}"
335335
if ! echo "$TAG_NAME_ARRAY" | grep -qw "$KEY"; then
336-
git tag $(date -u +"%Y.%m.%d")
337-
git push github_public tag $(date -u +"%Y.%m.%d")
336+
TAG_DATE="$(date -u +'%Y.%m.%d')"
337+
git tag -d "$TAG_DATE" 2>/dev/null || true
338+
git tag "custom/$TAG_DATE" HEAD
339+
git push github_public "refs/tags/custom/$TAG_DATE:refs/tags/$TAG_DATE"
338340
fi
339341
fi
340342
@@ -415,16 +417,12 @@ notify branch published:
415417
rules:
416418
- if: *on_public_push
417419
- if: *on_public_release
418-
- if: *on_custom_push
419420
needs:
420421
- job: load release variables
421422
artifacts: true
422423
- job: publish main
423424
optional: true
424425
artifacts: true
425-
- job: publish custom
426-
optional: true
427-
artifacts: true
428426
variables:
429427
CI_DESCRIPTION: "$PUBLIC_REPO GitHub Updated"
430428
SLACK_CHANNEL: $SLACK_CHANNEL_OK
@@ -441,6 +439,7 @@ create tags after published:
441439
- |
442440
for name in $TAG_GH_PUSH_NAME_ARRAY; do
443441
create_tag "${name}_$(date -u +"%Y.%m.%d")"
442+
sleep 3 # To avoid saturating gitlab CI
444443
done
445444
needs:
446445
- job: publish main
@@ -658,8 +657,6 @@ notify release failed:
658657
when: on_failure
659658
- if: *on_public_release
660659
when: on_failure
661-
- if: *on_custom_push
662-
when: on_failure
663660
variables:
664661
CI_DESCRIPTION: "GitHub Update Process Failed"
665662
SLACK_CHANNEL: $SLACK_CHANNEL_FAIL

.gitlab/ci/trx.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,12 @@ build trx driver:
8888
artifacts: &trx_artifacts
8989
paths:
9090
- build_trx_srsran/libtrx_srsran.so
91-
expire_in: 4 hours
91+
expire_in: 3 days
9292

9393
build amariue zmq driver:
9494
extends: build trx driver
9595
rules:
9696
- if: $CI_DESCRIPTION =~ /Nightly E2E Tests/
97-
artifacts:
98-
<<: *trx_artifacts
99-
expire_in: 3 days
10097

10198
build uesim zmq driver:
10299
extends: build trx driver
@@ -105,16 +102,10 @@ build uesim zmq driver:
105102
variables:
106103
OS: fedora-39
107104
AMARISOFT_VERSION: "2024-03-15"
108-
artifacts:
109-
<<: *trx_artifacts
110-
expire_in: 3 days
111105

112106
build amariue ntn zmq driver:
113107
extends: build trx driver
114108
rules:
115109
- if: $CI_DESCRIPTION =~ /Nightly E2E Tests/
116110
variables:
117111
AMARISOFT_VERSION: "2024-12-13"
118-
artifacts:
119-
<<: *trx_artifacts
120-
expire_in: 3 days

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ endif()
286286
########################################################################
287287
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/external/cmake-sbom")
288288
include(sbom)
289+
include(copyright)
289290
include(GNUInstallDirs)
290291

291292
sbom_generate(
@@ -655,6 +656,7 @@ message(STATUS "Building srsRAN version ${SRSRAN_VERSION_STRING}")
655656
########################################################################
656657
# Generate SBOM
657658
########################################################################
659+
parse_copyright_file("${CMAKE_SOURCE_DIR}/COPYRIGHT")
658660
sbom_add(
659661
LICENSE "LicenseRef-srsRAN"
660662
NAME "AGPL-3.0-only"

0 commit comments

Comments
 (0)