Skip to content

Commit 957c875

Browse files
Merge branch 'main' into logger_levels
2 parents 691cc1b + 6b248f6 commit 957c875

File tree

449 files changed

+67406
-11063
lines changed

Some content is hidden

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

449 files changed

+67406
-11063
lines changed

.clang-format

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@ BasedOnStyle: LLVM
33
IndentWidth: 4
44
UseTab: Never
55
ColumnLimit: 100
6-
BreakBeforeBraces: Linux
6+
BreakBeforeBraces: Custom
7+
BraceWrapping:
8+
AfterClass: false
9+
AfterNamespace: false
10+
AfterFunction: false
711
AllowShortIfStatementsOnASingleLine: false
812
AllowShortEnumsOnASingleLine: false
913
IndentCaseLabels: false
1014
IncludeBlocks: Preserve
1115
SortIncludes: false
16+
ReferenceAlignment: Left
17+
AccessModifierOffset: -4
1218
...

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# .dockerignore
22

3+
_build
4+
_install
35
docs/_build/*
46
build
57
out/*

.github/configs/.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../.clang-format

.github/configs/.golangci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
#########################
3+
#########################
4+
## Golang Linter rules ##
5+
#########################
6+
#########################
7+
8+
# configure golangci-lint
9+
# see https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
10+
issues:
11+
exclude-rules:
12+
- path: _test\.go
13+
linters:
14+
- dupl
15+
- gosec
16+
- goconst
17+
linters:
18+
enable:
19+
- gosec
20+
- unconvert
21+
- gocyclo
22+
- goconst
23+
- goimports
24+
- gocritic
25+
- govet
26+
- revive
27+
linters-settings:
28+
errcheck:
29+
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
30+
# default is false: such cases aren't reported by default.
31+
check-blank: true
32+
govet:
33+
enable:
34+
- shadow
35+
gocyclo:
36+
# minimal code complexity to report, 30 by default
37+
min-complexity: 15
38+
run:
39+
tests: false

.github/configs/.markdown-lint.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
###########################
3+
###########################
4+
## Markdown Linter rules ##
5+
###########################
6+
###########################
7+
8+
# Linter rules doc:
9+
# - https://github.com/DavidAnson/markdownlint
10+
#
11+
# Note:
12+
# To comment out a single error:
13+
# <!-- markdownlint-disable -->
14+
# any violations you want
15+
# <!-- markdownlint-restore -->
16+
#
17+
18+
###############
19+
# Rules by id #
20+
###############
21+
MD004: false # Unordered list style
22+
MD007:
23+
indent: 2 # Unordered list indentation
24+
MD010: false
25+
MD013:
26+
line_length: 400 # Line length 80 is far too short
27+
MD024: false
28+
MD026: false
29+
# punctuation: ".,;:!。,;:" # List of not allowed
30+
MD029: false # Ordered list item prefix
31+
MD033: false # Allow inline HTML
32+
MD036: false # Emphasis used instead of a heading
33+
34+
#################
35+
# Rules by tags #
36+
#################
37+
blank_lines: false # Error on blank lines

.github/configs/.python-lint

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[MASTER]
2+
3+
# Use multiple processes to speed up Pylint.
4+
jobs=0
5+
6+
[MESSAGES CONTROL]
7+
8+
# Ignoring Import Errors is desired as super-linter
9+
# does not support installing dependencies as it runs
10+
disable=import-error

.github/configs/.shellcheckrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../.shellcheckrc

.github/configs/.yaml-lint.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
###########################################
3+
# These are the rules used for #
4+
# linting all the yaml files in the stack #
5+
# NOTE: #
6+
# You can disable line with: #
7+
# # yamllint disable-line #
8+
###########################################
9+
rules:
10+
braces:
11+
level: warning
12+
min-spaces-inside: 0
13+
max-spaces-inside: 0
14+
min-spaces-inside-empty: 1
15+
max-spaces-inside-empty: 5
16+
brackets:
17+
level: warning
18+
min-spaces-inside: 0
19+
max-spaces-inside: 0
20+
min-spaces-inside-empty: 1
21+
max-spaces-inside-empty: 5
22+
colons:
23+
level: warning
24+
max-spaces-before: 0
25+
max-spaces-after: 1
26+
commas:
27+
level: warning
28+
max-spaces-before: 0
29+
min-spaces-after: 1
30+
max-spaces-after: 1
31+
comments: disable
32+
comments-indentation: disable
33+
document-end: disable
34+
document-start:
35+
level: warning
36+
present: true
37+
empty-lines:
38+
level: warning
39+
max: 2
40+
max-start: 0
41+
max-end: 0
42+
hyphens:
43+
level: warning
44+
max-spaces-after: 1
45+
indentation:
46+
level: warning
47+
spaces: consistent
48+
indent-sequences: true
49+
check-multi-line-strings: false
50+
key-duplicates: enable
51+
line-length:
52+
level: warning
53+
max: 80
54+
allow-non-breakable-words: true
55+
allow-non-breakable-inline-mappings: true
56+
new-line-at-end-of-file: disable
57+
new-lines:
58+
type: unix
59+
trailing-spaces: disable

.github/legacy/codeql/codeql.yml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
name: scan-codeql-workflow
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
BUILD_TYPE: "Release"
11+
BUILD_DIR: "${{ github.workspace }}/_build"
12+
BUILD_UNIT_TESTS: "OFF"
13+
PREFIX_DIR: "${{ github.workspace }}/_install"
14+
MTL_BUILD_DISABLE_PCAPNG: true
15+
DEBIAN_FRONTEND: "noninteractive"
16+
TRY_CACHE_REFRESH: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
17+
18+
permissions:
19+
contents: read
20+
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
23+
cancel-in-progress: true
24+
25+
jobs:
26+
analyze:
27+
name: Analyze
28+
runs-on: ${{ matrix.runner-os }}
29+
timeout-minutes: 90
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
runner-os: [ 'ubuntu-22.04' ]
34+
permissions:
35+
actions: read
36+
security-events: write
37+
defaults:
38+
run:
39+
shell: bash
40+
steps:
41+
- name: 'Harden Runner'
42+
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
43+
with:
44+
egress-policy: audit
45+
46+
- name: 'Checkout repository'
47+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
48+
49+
- name: 'Install OS level dependencies'
50+
run: eval 'source scripts/setup_build_env.sh && install_package_dependencies'
51+
52+
- name: 'Check local dependencies build cache'
53+
id: load-local-dependencies-cache
54+
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
55+
with:
56+
path: ${{ env.BUILD_DIR }}
57+
key: ${{ runner.os }}-${{ hashFiles('versions.env') }}-${{ hashFiles('scripts/setup*.sh') }}
58+
59+
- name: 'Download, unpack and patch build dependencies'
60+
if: steps.load-local-dependencies-cache.outputs.cache-hit != 'true'
61+
run: eval 'source scripts/setup_build_env.sh && get_download_unpack_dependencies'
62+
63+
- name: 'Clone and patch ffmpeg 6.1 and 7.0'
64+
if: steps.load-local-dependencies-cache.outputs.cache-hit != 'true'
65+
run: |
66+
ffmpeg-plugin/clone-and-patch-ffmpeg.sh "6.1"
67+
ffmpeg-plugin/clone-and-patch-ffmpeg.sh "7.0"
68+
69+
- name: 'Build and Install xdp and libbpf'
70+
run: eval 'source scripts/setup_build_env.sh && lib_install_xdp_bpf_tools'
71+
72+
- name: 'Build and Install libfabric'
73+
run: eval 'source scripts/setup_build_env.sh && lib_install_fabrics'
74+
75+
- name: 'Build and Install the DPDK'
76+
run: eval 'source scripts/setup_build_env.sh && lib_install_dpdk'
77+
78+
- name: 'Build and Install the MTL'
79+
run: eval 'source scripts/setup_build_env.sh && lib_install_mtl'
80+
81+
- name: 'Build and Install JPEG XS'
82+
run: eval 'source scripts/setup_build_env.sh && lib_install_jpeg_xs'
83+
84+
- name: 'Build and Install JPEG XS ffmpeg plugin'
85+
run: eval 'source scripts/setup_build_env.sh && lib_install_mtl_jpeg_xs_plugin'
86+
87+
- name: 'Build gRPC and dependencies'
88+
run: eval 'source scripts/setup_build_env.sh && lib_install_grpc'
89+
90+
- name: 'Save local dependencies build cache'
91+
if: env.TRY_CACHE_REFRESH == 'true' && steps.load-local-dependencies-cache.outputs.cache-hit != 'true'
92+
id: save-local-dependencies-cache
93+
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
94+
with:
95+
path: ${{ env.BUILD_DIR }}
96+
key: ${{ runner.os }}-${{ hashFiles('versions.env') }}-${{ hashFiles('scripts/setup*.sh') }}
97+
98+
- name: 'Initialize CodeQL'
99+
uses: github/codeql-action/init@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
100+
with:
101+
languages: 'c-cpp'
102+
config-file: ${{ github.workspace }}/.github/codeql/codeql-config.yml
103+
104+
- name: 'Build MCM SDK and Media Proxy'
105+
run: ./build.sh
106+
107+
- name: 'Perform CodeQL Analysis'
108+
uses: github/codeql-action/analyze@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
109+
with:
110+
category: "/language:c-cpp"

0 commit comments

Comments
 (0)