Skip to content

Commit f2ae794

Browse files
authored
Merge pull request #1353 from luxonis/v3_develop
2 parents 9d96ab2 + 8d7a1ea commit f2ae794

File tree

1,126 files changed

+111427
-20251
lines changed

Some content is hidden

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

1,126 files changed

+111427
-20251
lines changed

.clang-tidy

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,49 @@
11
---
2-
Checks: '-*,clang-analyzer-*,clang-diagnostic-*,readability-*,modernize-*,boost-*,bugprone-*,cppcoreguidelines-*,google-*,hicpp-*,performance-*,readability-*,-google-readability-namespace-comments,-readability-inconsistent-declaration-parameter-name,-readability-braces-around-statements,-hicpp-signed-bitwise,-google-runtime-references,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-readability-magic-numbers,-hicpp-explicit-conversions,-hicpp-uppercase-literal-suffix,-readability-uppercase-literal-suffix,-hicpp-no-array-decay,-hicpp-special-member-functions,-bugprone-narrowing-conversions,-modernize-use-nodiscard,-google-readability-braces-around-statements,-hicpp-braces-around-statements,-bugprone-suspicious-semicolon,-readability-named-parameter,-hicpp-named-parameter,-modernize-use-trailing-return-type,-cppcoreguidelines-non-private-member-variables-in-classes,-cppcoreguidelines-pro-bounds-constant-array-index'
2+
Checks: >
3+
-*,
4+
clang-analyzer-*,
5+
clang-diagnostic-*,
6+
readability-*,
7+
modernize-*,
8+
boost-*,
9+
bugprone-*,
10+
cppcoreguidelines-*,
11+
google-*,
12+
hicpp-*,
13+
performance-*,
14+
readability-*,
15+
-readability-identifier-length,
16+
-google-readability-namespace-comments,
17+
-readability-inconsistent-declaration-parameter-name,
18+
-readability-braces-around-statements,
19+
-hicpp-signed-bitwise,
20+
-google-runtime-references,
21+
-cppcoreguidelines-avoid-magic-numbers,
22+
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
23+
-readability-magic-numbers,
24+
-hicpp-explicit-conversions,
25+
-hicpp-uppercase-literal-suffix,
26+
-readability-uppercase-literal-suffix,
27+
-hicpp-no-array-decay,
28+
-hicpp-special-member-functions,
29+
-bugprone-narrowing-conversions,
30+
-modernize-use-nodiscard,
31+
-google-readability-braces-around-statements,
32+
-hicpp-braces-around-statements,
33+
-bugprone-suspicious-semicolon,
34+
-readability-named-parameter,
35+
-hicpp-named-parameter,
36+
-modernize-use-trailing-return-type,
37+
-cppcoreguidelines-non-private-member-variables-in-classes,
38+
-cppcoreguidelines-pro-bounds-constant-array-index,
39+
-modernize-concat-nested-namespaces,
40+
341
# TODO(themarpe) - Gradually bring back errors
442
#WarningsAsErrors: 'modernize-*,cppcoreguidelines-*,boost-*,performance-*,google-build-using-namespace,readability-else-after-return,google-readability-todo'
5-
WarningsAsErrors: 'bugprone-throw-keyword-missing'
43+
WarningsAsErrors: >
44+
bugprone-throw-keyword-missing,
45+
bugprone-unchecked-optional-access,
46+
647
HeaderFilterRegex: 'core/.*\.hpp'
748
AnalyzeTemporaryDtors: false
849
FormatStyle: .clang-format
@@ -280,6 +321,3 @@ CheckOptions:
280321
value: UPPER_CASE
281322
- key: readability-identifier-naming.IgnoreMainLikeFunctions
282323
value: 1
283-
284-
285-

.github/workflows/bom.yml

Lines changed: 91 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,94 @@
1-
name: BOM
1+
name: BOM Testing
22

3-
# Only allow manual trigger
43
on:
4+
push:
5+
branches:
6+
- v3_develop
7+
tags:
8+
- 'v*'
59
workflow_dispatch:
10+
inputs:
11+
distinct_id:
12+
description: 'run identifier'
13+
required: false
14+
testbed:
15+
description: 'On what testbed will tests be run'
16+
required: false
17+
type: string
18+
reservation_name:
19+
description: 'Reservation name - usually usually unique identifier of root CI run'
20+
required: false
21+
type: string
22+
luxonis_os:
23+
description: 'Which RVC4 os version to install before starting tests'
24+
required: false
25+
type: string
26+
hold_reservation:
27+
description: 'If this is set to true testbed will stay reserved after process is done - reccomended for CI use'
28+
required: false
29+
type: boolean
30+
depthai:
31+
required: false
32+
type: string
33+
default: "v3_develop"
34+
description: "Version for depthai"
35+
36+
jobs:
37+
id:
38+
name: Workflow ID Provider
39+
runs-on: ubuntu-latest
40+
if: github.event_name == 'workflow_dispatch'
41+
steps:
42+
- name: echo distinct ID ${{ github.event.inputs.distinct_id }}
43+
run: echo ${{ github.event.inputs.distinct_id }}
44+
45+
# Testing
46+
rvc4_test_bom:
47+
env:
48+
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
49+
if: github.event_name == 'workflow_dispatch'
50+
strategy:
51+
matrix:
52+
arch: ['x64']
53+
flavor: ['vanilla']
54+
fail-fast: false
55+
runs-on: ['self-hosted', 'testbed-runner']
56+
57+
steps:
58+
- uses: actions/checkout@v3
59+
60+
- name: Checkout source code from tag
61+
uses: actions/checkout@v3
62+
with:
63+
ref: ${{ github.event.inputs.depthai }}
64+
path: depthai-core
65+
submodules: 'recursive'
66+
67+
- name: Prepare HIL Framework
68+
run: source scripts/hil/prepare_hil_framework.sh
69+
70+
- name: Configure, Build and Test
71+
run: |
72+
rm -rf depthai-core/scripts/hil/ && mkdir -p depthai-core/scripts/hil/ && cp -r scripts/hil/* depthai-core/scripts/hil/
73+
rm depthai-core/tests/run_tests.py && cp tests/run_tests.py depthai-core/tests/run_tests.py
74+
cd depthai-core
75+
76+
if [[ -n "${{ github.event.inputs.testbed }}" ]]; then
77+
TESTBED_OPTION="--testbed ${{ github.event.inputs.testbed }}"
78+
fi
79+
80+
if [[ -n "${{ github.event.inputs.reservation_name }}" ]]; then
81+
RESERVATION_OPTION="--reservation-name ${{ github.event.inputs.reservation_name }}"
82+
else
83+
export RESERVATION_NAME="https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID#rvc4-depthai-bom"
84+
RESERVATION_OPTION="--reservation-name $RESERVATION_NAME"
85+
fi
86+
87+
if [[ "${{ github.event.inputs.hold_reservation }}" == 'true' ]]; then
88+
HOLD_RESERVATION="--hold-reservation"
89+
fi
90+
91+
if [[ -n "${{ github.event.inputs.luxonis_os }}" ]]; then
92+
UPDATE_LUXONIS_OS="--rvc4-os-version ${{ github.event.inputs.luxonis_os }}"
93+
fi
94+
exec hil $HOLD_RESERVATION --models "oak4_pro or oak4_d" $TESTBED_OPTION $RESERVATION_OPTION $UPDATE_LUXONIS_OS --wait --sync-workspace --commands 'cd /tmp/depthai-core|| exit' 'scripts/hil/run_hil_tests.sh ${{ matrix.flavor }} --rvc4'

0 commit comments

Comments
 (0)