Skip to content

Commit 0fd7c93

Browse files
author
codebot
committed
Update main
# Conflicts: # include/srsran/ofh/ofh_ota_symbol_handler.h # include/srsran/ofh/ofh_timing_notifier.h # lib/ofh/timing/ofh_ota_symbol_dispatcher.cpp # lib/ofh/timing/ofh_ota_symbol_dispatcher.h # lib/pcap/e2ap_pcap.cpp # lib/pcap/e2ap_pcap.h # lib/pcap/f1ap_pcap.cpp # lib/pcap/f1ap_pcap.h # lib/pcap/pcap_rlc_impl.cpp # lib/pcap/pcap_rlc_impl.h # lib/ru/ofh/ru_ofh_timing_handler.h # tests/test_doubles/mac/mac_pcap_dummy.h
2 parents 480a720 + da721ef commit 0fd7c93

File tree

378 files changed

+7254
-2964
lines changed

Some content is hidden

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

378 files changed

+7254
-2964
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ trigger docker:
8989
trigger:
9090
include: .gitlab/ci/docker.yml
9191
strategy: depend
92+
variables:
93+
PY_DIR: docker/metrics_server
9294

9395
################################################################################
9496
## Static
@@ -320,13 +322,10 @@ unit coverage:
320322
expire_in: 10 minutes
321323
retry: 2
322324
needs:
323-
- job: smoke release cached
324-
optional: true
325-
artifacts: true
326-
- job: smoke release clean
325+
- job: intermediate commits
327326
optional: true
328327
artifacts: true
329-
- job: smoke release update cache
328+
- job: smoke relwithdeb update cache
330329
optional: true
331330
artifacts: true
332331

.gitlab/ci/build.yml

Lines changed: 127 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,11 @@ variables:
304304
if [ -z "${SAVE_ARTIFACTS}" ]; then
305305
rm -Rf ${CI_PROJECT_DIR}/build
306306
rm -Rf build_time_metrics.txt
307+
else
308+
mv ${CI_PROJECT_DIR}/build/apps/gnb/gnb /tmp/gnb
309+
cd build
310+
make clean
311+
mv /tmp/gnb ${CI_PROJECT_DIR}/build/apps/gnb/gnb
307312
fi
308313
timeout: 4h
309314
artifacts: &build_artifacts
@@ -314,8 +319,7 @@ variables:
314319
path: ${CI_JOB_ID}_coverage.xml
315320
paths:
316321
- ${CI_JOB_ID}_coverage.xml
317-
- build/apps/gnb/gnb
318-
- build/Testing/Temporary/MemoryChecker.*.log
322+
- build/
319323
- build_time_metrics.txt
320324
expire_in: 10 minutes
321325
cache:
@@ -330,11 +334,22 @@ variables:
330334
COMPILER: gcc
331335
BUILD_TYPE: Release
332336
ASSERT_LEVEL: PARANOID
333-
ENABLE_GCOV: "True"
334337
TEST_MODE: coverage
335338
AUTO_DETECT_ISA: "True"
336339
ENABLE_AVX512: "False"
337-
SAVE_ARTIFACTS: "True"
340+
ENABLE_GCOV: "True"
341+
tags: ["${AMD64_AVX2_TAG}"]
342+
343+
.smoke relwithdeb:
344+
extends: .build_and_unit
345+
variables:
346+
OS: ubuntu-22.04
347+
COMPILER: gcc
348+
BUILD_TYPE: RelWithDebInfo
349+
ASSERT_LEVEL: PARANOID
350+
TEST_MODE: default
351+
AUTO_DETECT_ISA: "True"
352+
ENABLE_AVX512: "False"
338353
tags: ["${AMD64_AVX2_TAG}"]
339354

340355
.smoke tsan:
@@ -375,6 +390,34 @@ variables:
375390
ENABLE_AVX512: "False"
376391
tags: ["${AMD64_TAG}"]
377392

393+
.smoke dpdk:
394+
extends: .build_and_unit
395+
variables:
396+
OS: ubuntu-23.10
397+
COMPILER: clang
398+
BUILD_TYPE: Release
399+
ENABLE_UHD: "False"
400+
ENABLE_ZEROMQ: "False"
401+
ENABLE_DPDK: "True"
402+
ASSERT_LEVEL: PARANOID
403+
AUTO_DETECT_ISA: "True"
404+
ENABLE_AVX512: "False"
405+
DPDK_VERSION: "23.07"
406+
tags: ["${AMD64_TAG}"]
407+
408+
.smoke valgrind:
409+
extends: .build_and_unit
410+
variables:
411+
OS: ubuntu-22.04
412+
COMPILER: gcc
413+
BUILD_TYPE: Debug
414+
ASSERT_LEVEL: PARANOID
415+
TEST_MODE: valgrind
416+
AUTO_DETECT_ISA: "True"
417+
ENABLE_AVX512: "False"
418+
BUILD_ARGS: -DEXIT_TIMEOUT=120
419+
tags: ["${AMD64_AVX2_TAG}"]
420+
378421
# Combinations to use in schedules matrix
379422

380423
.combinations: &basic_combinations
@@ -388,26 +431,30 @@ variables:
388431

389432
# Smoke builds in PR: with or without cache
390433

391-
smoke release cached:
392-
extends: .smoke release
434+
smoke relwithdeb cached:
435+
extends: .smoke relwithdeb
393436
timeout: 45 min
394437
rules:
395438
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
396439
when: never
397440
- if: $ON_MR
441+
variables:
442+
SAVE_ARTIFACTS: "True"
398443
cache:
399444
- !reference [.fetch_src_cache, cache]
400445
- *cache_build_get
401446

402447
smoke tsan cached:
403448
extends: .smoke tsan
449+
stage: manual
404450
timeout: 45 min
405-
variables:
406-
SAVE_ARTIFACTS: "True"
407451
rules:
408452
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
409453
when: never
454+
- if: $ON_MR == "true" && $CI_MERGE_REQUEST_APPROVED == "true"
410455
- if: $ON_MR
456+
when: manual
457+
allow_failure: false
411458
cache:
412459
- !reference [.fetch_src_cache, cache]
413460
- *cache_build_get
@@ -442,12 +489,27 @@ smoke archlinux cached:
442489
- !reference [.fetch_src_cache, cache]
443490
- *cache_build_get
444491

445-
smoke release clean:
446-
extends: .smoke release
492+
smoke dpdk cached:
493+
extends: .smoke dpdk
494+
stage: manual
495+
timeout: 45 min
447496
rules:
448497
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
498+
when: never
499+
- if: $ON_MR == "true" && $CI_MERGE_REQUEST_APPROVED == "true"
500+
- if: $ON_MR
501+
when: manual
502+
allow_failure: false
449503
cache:
450504
- !reference [.fetch_src_cache, cache]
505+
- *cache_build_get
506+
507+
smoke relwithdeb clean:
508+
extends: .smoke relwithdeb
509+
rules:
510+
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
511+
variables:
512+
SAVE_ARTIFACTS: "True"
451513

452514
smoke tsan clean:
453515
extends: .smoke tsan
@@ -464,46 +526,47 @@ smoke archlinux clean:
464526
rules:
465527
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
466528

529+
smoke dpdk clean:
530+
extends: .smoke dpdk
531+
rules:
532+
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
533+
467534
# Intermediate commits
468535

469536
intermediate commits:
470-
extends: .build_and_unit
471-
stage: manual
537+
extends: .smoke release
472538
rules:
473-
- if: $ON_MR == "true" && $CI_MERGE_REQUEST_APPROVED == "true"
474539
- if: $ON_MR
475-
when: manual
476-
allow_failure: false
477540
timeout: 45 min
478541
variables:
479-
OS: ubuntu-22.04
480-
TEST_MODE: none
481-
COMPILER: gcc
482-
BUILD_TYPE: Release
483-
ASSERT_LEVEL: PARANOID
484-
ENABLE_GCOV: "True"
485-
AUTO_DETECT_ISA: "True"
486-
ENABLE_AVX512: "False"
487-
ENABLE_WERROR: "False"
488-
tags: ["${AMD64_TAG}"]
542+
SAVE_ARTIFACTS: "True"
489543
script:
490544
- git config advice.detachedHead false
491-
- git fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME --depth 20
545+
- git fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
492546
- |
493-
for rev in $(git rev-list --reverse origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME..origin/$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME^1)
547+
TEST_MODE=none
548+
for rev in $(git rev-list --reverse origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME..origin/$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME)
494549
do
495550
echo "##################################################"
496551
echo "#### $rev ####"
497552
echo "##################################################"
498553
git checkout $rev
499554
build_srsgnb
500555
done
556+
- |
557+
TEST_MODE=coverage
558+
git checkout $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
559+
echo "##################################################"
560+
echo "#### $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME ####"
561+
echo "##################################################"
562+
build_srsgnb
563+
- launch_tests
501564
cache:
502565
- !reference [.fetch_src_cache, cache]
503566
- *cache_build_get
504567

505568
valgrind changed tests:
506-
extends: .build_and_unit
569+
extends: .smoke valgrind
507570
stage: manual
508571
rules:
509572
- if: $CI_MERGE_REQUEST_LABELS =~ /urgent/
@@ -514,16 +577,9 @@ valgrind changed tests:
514577
allow_failure: true
515578
timeout: 2h
516579
variables:
517-
OS: ubuntu-22.04
518-
COMPILER: gcc
519-
BUILD_TYPE: Debug
520-
AUTO_DETECT_ISA: "True"
521-
ENABLE_AVX512: "False"
522580
CLEAN_BUILD: "False"
523-
TEST_MODE: valgrind
524581
FINGERPRINT: "fingerprints.csv"
525582
SAVE_ARTIFACTS: "True"
526-
tags: ["${AMD64_TAG}"]
527583
script:
528584
- git config advice.detachedHead false
529585
- git fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME --depth 40
@@ -564,11 +620,25 @@ check builders ubuntu versions:
564620
smoke release update cache:
565621
extends: .smoke release
566622
rules:
567-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
568-
when: never
569623
- if: $CI_DESCRIPTION =~ /Nightly/
570624
when: delayed
571625
start_in: 30 minutes
626+
retry: 2
627+
interruptible: false
628+
variables:
629+
SAVE_ARTIFACTS: "True"
630+
cache:
631+
- !reference [.fetch_src_cache, cache]
632+
- *cache_build_set
633+
artifacts:
634+
<<: *build_artifacts
635+
expire_in: 1 day
636+
637+
smoke relwithdeb update cache:
638+
extends: .smoke relwithdeb
639+
rules:
640+
- if: $CI_DESCRIPTION =~ /Nightly/
641+
retry: 2
572642
interruptible: false
573643
variables:
574644
SAVE_ARTIFACTS: "True"
@@ -582,8 +652,6 @@ smoke release update cache:
582652
smoke tsan update cache:
583653
extends: .smoke tsan
584654
rules:
585-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
586-
when: never
587655
- if: $CI_DESCRIPTION =~ /Nightly/
588656
interruptible: false
589657
retry: 2
@@ -599,11 +667,10 @@ smoke tsan update cache:
599667
smoke rhel update cache:
600668
extends: .smoke rhel
601669
rules:
602-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
603-
when: never
604670
- if: $CI_DESCRIPTION =~ /Nightly/
605671
when: delayed
606672
start_in: 30 minutes
673+
retry: 2
607674
interruptible: false
608675
cache:
609676
- !reference [.fetch_src_cache, cache]
@@ -612,38 +679,44 @@ smoke rhel update cache:
612679
smoke archlinux update cache:
613680
extends: .smoke archlinux
614681
rules:
615-
- if: $CI_MERGE_REQUEST_LABELS =~ /no-cache/
616-
when: never
617682
- if: $CI_DESCRIPTION =~ /Nightly/
618683
when: delayed
619684
start_in: 30 minutes
685+
retry: 2
620686
interruptible: false
621687
cache:
622688
- !reference [.fetch_src_cache, cache]
623689
- *cache_build_set
624690

625-
# High priority smoke checks. Some of them save the binary for e2e tests
691+
smoke dpdk update cache:
692+
extends: .smoke dpdk
693+
rules:
694+
- if: $CI_DESCRIPTION =~ /Nightly/
695+
when: delayed
696+
start_in: 30 minutes
697+
retry: 2
698+
interruptible: false
699+
cache:
700+
- !reference [.fetch_src_cache, cache]
701+
- *cache_build_set
626702

627-
basic rel with deb info:
628-
extends: .build_and_unit
703+
smoke valgrind update cache:
704+
extends: .smoke valgrind
629705
rules:
630706
- if: $CI_DESCRIPTION =~ /Nightly/
631707
interruptible: false
632708
retry: 2
633709
variables:
634-
OS: ubuntu-22.04
635-
COMPILER: gcc
636-
BUILD_TYPE: RelWithDebInfo
637-
ASSERT_LEVEL: PARANOID
638-
TEST_MODE: none
639-
AUTO_DETECT_ISA: "True"
640-
ENABLE_AVX512: "False"
641710
SAVE_ARTIFACTS: "True"
642-
tags: ["${AMD64_AVX2_TAG}"]
711+
cache:
712+
- !reference [.fetch_src_cache, cache]
713+
- *cache_build_set
643714
artifacts:
644715
<<: *build_artifacts
645716
expire_in: 1 day
646717

718+
# High priority smoke checks. Some of them save the binary for e2e tests
719+
647720
basic asan:
648721
extends: .build_and_unit
649722
rules:
@@ -665,26 +738,6 @@ basic asan:
665738
<<: *build_artifacts
666739
expire_in: 1 day
667740

668-
basic valgrind:
669-
extends: .build_and_unit
670-
rules:
671-
- if: $CI_DESCRIPTION =~ /Nightly/
672-
interruptible: false
673-
retry: 2
674-
variables:
675-
OS: ubuntu-22.04
676-
COMPILER: gcc
677-
BUILD_TYPE: Debug
678-
BUILD_ARGS: -DEXIT_TIMEOUT=120
679-
AUTO_DETECT_ISA: "True"
680-
ENABLE_AVX512: "False"
681-
TEST_MODE: valgrind
682-
SAVE_ARTIFACTS: "True"
683-
tags: ["${AMD64_TAG}"]
684-
artifacts:
685-
<<: *build_artifacts
686-
expire_in: 1 day
687-
688741
# Packaging
689742

690743
package:

0 commit comments

Comments
 (0)