Skip to content

Commit b8eb231

Browse files
Merge branch 'dev' into agpl_main
2 parents b34f4d0 + f893a6c commit b8eb231

File tree

433 files changed

+8829
-4216
lines changed

Some content is hidden

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

433 files changed

+8829
-4216
lines changed

.gdbinit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2013-2022 Software Radio Systems Limited
2+
# Copyright 2021-2023 Software Radio Systems Limited
33
#
44
# By using this file, you agree to the terms and conditions set
55
# forth in the LICENSE file which can be found at the top level of

.gitlab-ci.yml

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

2626
include:
2727
- project: softwareradiosystems/testing-tools
28-
ref: "45"
28+
ref: "48"
2929
file: .gitlab/ci-shared/setup/all.yml
3030
- project: softwareradiosystems/testing-tools
31-
ref: "45"
31+
ref: "48"
3232
file: .gitlab/ci-shared/features/all.yml
3333
- project: softwareradiosystems/testing-tools
34-
ref: "45"
34+
ref: "48"
3535
file: .gitlab/ci-shared/tools/test_reporter.yml
3636
- local: .gitlab/ci/build.yml
3737
- local: .gitlab/ci/e2e.yml
@@ -43,6 +43,11 @@ stages:
4343
- e2e
4444
- documentation
4545

46+
variables:
47+
SLACK_CHANNEL_OK: "#ci_gnb"
48+
SLACK_CHANNEL_FAIL: "#ci_gnb"
49+
SLACK_CHANNEL_INFO_MSG: "#ci_gnb_verbose"
50+
4651
################################################################################
4752
## Static
4853
################################################################################
@@ -224,6 +229,8 @@ unit coverage:
224229
image:
225230
name: $CR_REGISTRY_URI/testing-tools/report-generator:5.1.10
226231
entrypoint: ["/bin/sh", "-c"]
232+
variables:
233+
GIT_STRATEGY: none
227234
rules:
228235
- if: $ON_MR
229236
variables:
@@ -326,7 +333,7 @@ pages:
326333
- sed -i 's/commit_hash/'$CI_COMMIT_SHA'/' public/index.html
327334
- sed -i 's/zmq_job_id/'$( cat ./zmq/job.env )'/' public/index.html
328335
- sed -i 's/zmq-tsan_job_id/'$( cat ./zmq-tsan/job.env )'/' public/index.html
329-
# - sed -i 's/zmq-asan_job_id/'$( cat ./zmq-asan/job.env )'/' public/index.html
336+
- sed -i 's/zmq-asan_job_id/'$( cat ./zmq-asan/job.env )'/' public/index.html
330337
- sed -i 's/rf_job_id/'$( cat ./rf/job.env )'/' public/index.html
331338

332339
needs:
@@ -342,8 +349,8 @@ pages:
342349
artifacts: true
343350
- job: zmq-tsan
344351
artifacts: true
345-
# - job: zmq-asan
346-
# artifacts: true
352+
- job: zmq-asan
353+
artifacts: true
347354
- job: rf
348355
artifacts: true
349356
artifacts:

.gitlab/ci/build.yml

Lines changed: 59 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
include:
2222
- project: softwareradiosystems/testing-tools
23-
ref: "45"
23+
ref: "48"
2424
file: .gitlab/ci-shared/setup/all.yml
2525

2626
stages:
@@ -34,7 +34,7 @@ stages:
3434
- ${SRS_INFRASTRUCTURE_TAG}-${PLATFORM}
3535
stage: build and unit tests
3636
variables:
37-
DOCKER_BUILDER_VERSION: "1.7.4"
37+
DOCKER_BUILDER_VERSION: "1.7.7"
3838
# General
3939
OS: ubuntu-22.04
4040
# Build
@@ -105,6 +105,7 @@ stages:
105105
echo "${BUILD_CMD}"
106106
echo "============================================================================================="
107107
$BUILD_CMD
108+
cd build && ninja install && cd ..
108109
}
109110
- |
110111
launch_tests() {
@@ -214,7 +215,7 @@ stages:
214215
COMPILER: gcc
215216
BUILD_TYPE: Release
216217
ENABLE_EXPORT: "True"
217-
- OS: rhel8
218+
- OS: rhel-8
218219
TEST_MODE: default
219220
COMPILER: gcc
220221
BUILD_TYPE: Release
@@ -413,36 +414,66 @@ build alt [archlinux-latest, amd64, RelWithDebInfo]:
413414
BUILD_TYPE: RelWithDebInfo
414415
cache: []
415416

416-
build alt [rhel8, amd64, Debug]:
417+
build alt [rhel-8, amd64, Debug]:
417418
extends: .build_and_unit_alt
418419
rules:
419420
- if: $CI_DESCRIPTION =~ /Nightly/
420421
variables:
421-
OS: rhel8
422+
OS: rhel-8
422423
PLATFORM: amd64
423424
BUILD_TYPE: Debug
424425
cache: []
425426

426-
build alt [rhel8, amd64, Release]:
427+
build alt [rhel-8, amd64, Release]:
427428
extends: .build_and_unit_alt
428429
rules:
429430
- if: $CI_DESCRIPTION =~ /Nightly/
430431
variables:
431-
OS: rhel8
432+
OS: rhel-8
432433
PLATFORM: amd64
433434
BUILD_TYPE: Release
434435
cache: []
435436

436-
build alt [rhel8, amd64, RelWithDebInfo]:
437+
build alt [rhel-8, amd64, RelWithDebInfo]:
437438
extends: .build_and_unit_alt
438439
rules:
439440
- if: $CI_DESCRIPTION =~ /Weekly/
440441
variables:
441-
OS: rhel8
442+
OS: rhel-8
442443
PLATFORM: amd64
443444
BUILD_TYPE: RelWithDebInfo
444445
cache: []
445446

447+
build alt [rhel-8, arm64, Debug]:
448+
extends: .build_and_unit_alt
449+
rules:
450+
- if: $CI_DESCRIPTION =~ /Nightly/
451+
variables:
452+
OS: rhel-8
453+
PLATFORM: arm64
454+
BUILD_TYPE: Debug
455+
cache: []
456+
457+
build alt [rhel-8, arm64, Release]:
458+
extends: .build_and_unit_alt
459+
rules:
460+
- if: $CI_DESCRIPTION =~ /Nightly/
461+
variables:
462+
OS: rhel-8
463+
PLATFORM: arm64
464+
BUILD_TYPE: Release
465+
cache: []
466+
467+
build alt [rhel-8, arm64, RelWithDebInfo]:
468+
extends: .build_and_unit_alt
469+
rules:
470+
- if: $CI_DESCRIPTION =~ /Weekly/
471+
variables:
472+
OS: rhel-8
473+
PLATFORM: arm64
474+
BUILD_TYPE: RelWithDebInfo
475+
cache: []
476+
446477
# UHD
447478

448479
build uhd alt:
@@ -563,20 +594,20 @@ avx2 [tsan, clean]:
563594
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
564595
cache: []
565596

566-
# avx2 [asan]:
567-
# extends: .avx
568-
# rules:
569-
# - if: $CI_DESCRIPTION =~ /Nightly/
570-
# variables:
571-
# OS: ubuntu-22.04
572-
# TEST_MODE: asan
573-
# COMPILER: gcc
574-
# BUILD_TYPE: Debug
575-
# ENABLE_ASAN: "True"
576-
# ASSERT_LEVEL: PARANOID
577-
# CPU_FLAG: "avx2"
578-
# ENABLE_AVX512: "False"
579-
# ENABLE_AVX2: "True"
597+
avx2 [asan]:
598+
extends: .avx
599+
rules:
600+
- if: $CI_DESCRIPTION =~ /Nightly/
601+
variables:
602+
OS: ubuntu-22.04
603+
TEST_MODE: asan
604+
COMPILER: gcc
605+
BUILD_TYPE: Debug
606+
ENABLE_ASAN: "True"
607+
ASSERT_LEVEL: PARANOID
608+
CPU_FLAG: "avx2"
609+
ENABLE_AVX512: "False"
610+
ENABLE_AVX2: "True"
580611

581612
avx512:
582613
extends: .avx
@@ -598,8 +629,12 @@ avx extended:
598629
matrix:
599630
- CPU_FLAG: ["avx2", "avx2-avx512"]
600631
AUTO_DETECT_ISA: ["True", "False"]
632+
ENABLE_AVX2: "True"
601633
ENABLE_AVX512: ["True", "False"]
602-
ENABLE_AVX2: ["True", "False"]
634+
- CPU_FLAG: ["avx2", "avx2-avx512"]
635+
AUTO_DETECT_ISA: ["True", "False"]
636+
ENABLE_AVX2: "False"
637+
ENABLE_AVX512: "False"
603638

604639
# Custom
605640

.gitlab/ci/e2e.yml

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
# the LICENSE file in the top-level directory of this distribution
1818
# and at http://www.gnu.org/licenses/.
1919
#
20+
include:
21+
- project: softwareradiosystems/testing-tools
22+
ref: "48"
23+
file: .gitlab/ci-shared/setup/all.yml
2024

2125
.prepare_test:
2226
before_script:
@@ -28,19 +32,17 @@
2832
.e2e-run:
2933
stage: e2e
3034
resource_group: e2e
31-
timeout: 4h
35+
timeout: 6h
3236
interruptible: false
3337
image:
34-
name: registry.gitlab.com/softwareradiosystems/retina/launcher/3.11-alpine:0.0.18
38+
name: registry.gitlab.com/softwareradiosystems/retina/launcher/3.11-alpine:0.0.26
3539
entrypoint: ["/bin/sh", "-c"]
3640
variables:
3741
REQUEST: "" # Retina YAML request
38-
LOG_LEVEL: "info"
3942
MARKERS: ""
40-
ARGS: ""
41-
FORCE_DOWNLOAD: "false" # Download only failed tests by default
42-
PCAP: "" # Disabled by default
43-
FAIL_IF_INTERNAL_ERRORS: "true" # Enabled by default
43+
PYTEST_ARGS: ""
44+
RETINA_ARGS: ""
45+
LOG_LEVEL: "info"
4446
tags:
4547
- on-prem-amd64
4648
extends:
@@ -57,12 +59,8 @@
5759
script:
5860
- |
5961
cd tests/e2e
60-
export LOGNAME=$GITLAB_USER_LOGIN
61-
export RETINA_LOGLEVEL="$LOG_LEVEL"
62-
export RETINA_FORCE_DOWNLOAD_REPORT="$FORCE_DOWNLOAD"
63-
export RETINA_PCAP_ENABLE="$PCAP"
64-
export RETINA_FAIL_IF_INTERNAL_ERRORS="$FAIL_IF_INTERNAL_ERRORS"
65-
- retina-launcher --retina-request ${REQUEST} --self-contained-html --html=./log/report.html --junitxml=out.xml "${ARGS}" -m "${MARKERS}" .
62+
export LOGNAME=ci_$GITLAB_USER_LOGIN
63+
- retina-launcher --retina-request ${REQUEST} --self-contained-html --html=./log/report.html --junitxml=out.xml "${PYTEST_ARGS}" -m "${MARKERS}" --register-parameter ue.all.log_level=$LOG_LEVEL gnb.all.log_level=$LOG_LEVEL "${RETINA_ARGS}"
6664
after_script:
6765
- |
6866
echo "*******************************************************************************************************************************"
@@ -81,10 +79,10 @@ smoke-zmq-tsan:
8179
allow_failure: false
8280
variables:
8381
REQUEST: "${CI_PROJECT_DIR}/.gitlab/ci/retina_request_zmq.yml"
84-
MARKERS: "smoke and not tcp and not multiue"
85-
ARGS: "-x"
82+
MARKERS: "smoke and not tcp and multiue"
83+
PYTEST_ARGS: "-x"
84+
RETINA_ARGS: "gnb.all.pcap=True"
8685
LOG_LEVEL: "debug"
87-
PCAP: "true"
8886
needs:
8987
- job: "avx2 [tsan, cached]"
9088
artifacts: true
@@ -102,13 +100,17 @@ zmq:
102100
- if: $CI_DESCRIPTION =~ /Nightly/
103101
variables:
104102
REQUEST: "${CI_PROJECT_DIR}/.gitlab/ci/retina_request_zmq.yml"
105-
MARKERS: "zmq and not multiue"
103+
MARKERS: "zmq and multiue and not smoke"
104+
# PYTEST_ARGS: "-n 2"
105+
LOG_LEVEL: "info"
106106
needs:
107107
- job: "avx2 [basic]"
108108
artifacts: true
109109

110110
zmq-tsan:
111111
extends: zmq
112+
variables:
113+
PYTEST_ARGS: "-n 2"
112114
needs:
113115
- job: "avx2 [tsan, cached]"
114116
artifacts: true
@@ -120,26 +122,25 @@ zmq-tsan:
120122
artifacts: true
121123
optional: true
122124

123-
# zmq-asan:
124-
# extends: zmq
125-
# needs:
126-
# - job: "avx2 [asan]"
127-
# artifacts: true
128-
129-
zmq-multiue:
125+
zmq-asan:
130126
extends: zmq
131127
variables:
132-
MARKERS: "zmq and multiue"
128+
PYTEST_ARGS: "-n 2"
129+
needs:
130+
- job: "avx2 [asan]"
131+
artifacts: true
133132

134133
rf:
135134
extends: .e2e-run
136135
rules:
136+
- if: $ON_MR
137+
when: manual
138+
allow_failure: true
137139
- if: $CI_DESCRIPTION =~ /Nightly/
138140
variables:
139141
REQUEST: "${CI_PROJECT_DIR}/.gitlab/ci/retina_request_rf.yml"
140-
MARKERS: "rf and not tcp and not multiue"
141-
LOG_LEVEL: "warning"
142-
FAIL_IF_INTERNAL_ERRORS: ""
142+
MARKERS: "rf and not tcp and multiue"
143+
LOG_LEVEL: "info"
143144
needs:
144145
- job: "avx2 [basic]"
145146
artifacts: true

.gitlab/ci/retina_request_rf.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
- name: amarisoft-ue
2222
type: ue
23-
image: registry.gitlab.com/softwareradiosystems/retina/images/amarisoftue:2021-09-18_97e143d_344d33aee_0.2.8
23+
image: registry.gitlab.com/softwareradiosystems/retina/images/amarisoftue:2023-02-06_17b9ea2_220ca4502_0.2.13
24+
debug-labels: [retina.cpu.high]
2425
resources:
2526
- type: sdr
2627
model: b200
@@ -29,12 +30,14 @@
2930

3031
- name: srs-gnb
3132
type: gnb
32-
image: registry.gitlab.com/softwareradiosystems/retina/images/srsgnb:0.1.1_0.2.8
33+
image: registry.gitlab.com/softwareradiosystems/retina/images/srsgnb:0.1.2_0.2.13
34+
debug-labels: [retina.cpu.low]
3335
resources:
3436
- type: sdr
3537
model: b200
3638
path: ../../build/apps/gnb/gnb
3739

3840
- name: open5gs
3941
type: epc
40-
image: registry.gitlab.com/softwareradiosystems/retina/images/open5gs:2.5.6_0.2.4
42+
image: registry.gitlab.com/softwareradiosystems/retina/images/open5gs:2.5.6_0.2.10
43+
debug-labels: [retina.cpu.low]

.gitlab/ci/retina_request_zmq.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,22 @@
2020

2121
- name: amarisoft-ue
2222
type: ue
23-
image: registry.gitlab.com/softwareradiosystems/retina/images/amarisoftue:2021-09-18_97e143d_344d33aee_0.2.8
23+
image: registry.gitlab.com/softwareradiosystems/retina/images/amarisoftue:2023-02-06_17b9ea2_220ca4502_0.2.13
24+
debug-labels: [retina.cpu.high]
2425
resources:
2526
- type: zmq
2627
- type: license
2728
model: amarisoft-5g
2829

2930
- name: srs-gnb
3031
type: gnb
31-
image: registry.gitlab.com/softwareradiosystems/retina/images/srsgnb:0.1.1_0.2.8
32+
image: registry.gitlab.com/softwareradiosystems/retina/images/srsgnb:0.1.2_0.2.13
33+
debug-labels: [retina.cpu.low]
3234
resources:
3335
- type: zmq
3436
path: ../../build/apps/gnb/gnb
3537

3638
- name: open5gs
3739
type: epc
38-
image: registry.gitlab.com/softwareradiosystems/retina/images/open5gs:2.5.6_0.2.4
40+
image: registry.gitlab.com/softwareradiosystems/retina/images/open5gs:2.5.6_0.2.10
41+
debug-labels: [retina.cpu.low]

0 commit comments

Comments
 (0)