Skip to content

Commit 21f30bd

Browse files
committed
Merge remote-tracking branch 'cros/main' into marigold.track-upstream
2 parents d08a40d + 27365ac commit 21f30bd

File tree

8,133 files changed

+255906
-83521
lines changed

Some content is hidden

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

8,133 files changed

+255906
-83521
lines changed

.clang-format

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ ColumnLimit: 100
3232
ConstructorInitializerIndentWidth: 8
3333
ContinuationIndentWidth: 8
3434
ForEachMacros:
35+
- 'ARRAY_FOR_EACH'
36+
- 'ARRAY_FOR_EACH_PTR'
3537
- 'FOR_EACH'
3638
- 'FOR_EACH_FIXED_ARG'
3739
- 'FOR_EACH_IDX'

.github/workflows/bsim-tests.yaml

Lines changed: 22 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,13 @@ jobs:
3434
runs-on:
3535
group: zephyr-runner-v2-linux-x64-4xlarge
3636
container:
37-
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.11.20240324
37+
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.13.20240601
3838
options: '--entrypoint /bin/bash'
3939
env:
4040
ZEPHYR_TOOLCHAIN_VARIANT: zephyr
4141
BSIM_OUT_PATH: /opt/bsim/
4242
BSIM_COMPONENTS_PATH: /opt/bsim/components
4343
EDTT_PATH: ../tools/edtt
44-
bsim_bt_52_test_results_file: ./bsim_bt/52_bsim_results.xml
45-
bsim_bt_53_test_results_file: ./bsim_bt/53_bsim_results.xml
46-
bsim_bt_53split_test_results_file: ./bsim_bt/53_bsim_split_results.xml
47-
bsim_net_52_test_results_file: ./bsim_net/52_bsim_results.xml
48-
bsim_uart_test_results_file: ./bsim_uart/uart_bsim_results.xml
4944
steps:
5045
- name: Apply container owner mismatch workaround
5146
run: |
@@ -153,59 +148,39 @@ jobs:
153148
- name: Run Bluetooth Tests with BSIM
154149
if: steps.check-bluetooth-files.outputs.any_changed == 'true' || steps.check-common-files.outputs.any_changed == 'true'
155150
run: |
156-
export ZEPHYR_BASE=${PWD}
157-
# Build and run the BT tests for nrf52_bsim:
158-
nice tests/bsim/bluetooth/compile.sh
159-
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_52_test_results_file} \
160-
TESTS_FILE=tests/bsim/bluetooth/tests.nrf52bsim.txt tests/bsim/run_parallel.sh
161-
# Build and run the BT controller tests also for the nrf5340bsim/nrf5340/cpunet
162-
nice tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpunet.sh
163-
BOARD=nrf5340bsim/nrf5340/cpunet \
164-
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_53_test_results_file} \
165-
TESTS_FILE=tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpunet.txt \
166-
tests/bsim/run_parallel.sh
167-
# Build and run the nrf5340 split stack tests set
168-
nice tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpuapp.sh
169-
BOARD=nrf5340bsim/nrf5340/cpuapp \
170-
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_53split_test_results_file} \
171-
TESTS_FILE=tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpuapp.txt \
172-
tests/bsim/run_parallel.sh
151+
tests/bsim/ci.bt.sh
173152
174153
- name: Run Networking Tests with BSIM
175154
if: steps.check-networking-files.outputs.any_changed == 'true' || steps.check-common-files.outputs.any_changed == 'true'
176155
run: |
177-
export ZEPHYR_BASE=${PWD}
178-
WORK_DIR=${ZEPHYR_BASE}/bsim_net nice tests/bsim/net/compile.sh
179-
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_net_52_test_results_file} \
180-
SEARCH_PATH=tests/bsim/net/ tests/bsim/run_parallel.sh
156+
tests/bsim/ci.net.sh
181157
182158
- name: Run UART Tests with BSIM
183159
if: steps.check-uart-files.outputs.any_changed == 'true' || steps.check-common-files.outputs.any_changed == 'true'
184160
run: |
185-
echo "UART: Single device tests"
186-
./scripts/twister -T tests/drivers/uart/ --force-color --inline-logs -v -M -p nrf52_bsim \
187-
--fixture gpio_loopback -- -uart0_loopback
188-
echo "UART: Multi device tests"
189-
export ZEPHYR_BASE=${PWD}
190-
WORK_DIR=${ZEPHYR_BASE}/bsim_uart nice tests/bsim/drivers/uart/compile.sh
191-
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_uart_test_results_file} \
192-
SEARCH_PATH=tests/bsim/drivers/uart/ tests/bsim/run_parallel.sh
193-
194-
- name: Upload Test Results
161+
tests/bsim/ci.uart.sh
162+
163+
- name: Merge Test Results
164+
run: |
165+
pip3 install junitparser junit2html
166+
junitparser merge --glob "./bsim_*/*bsim_results.*.xml" "./twister-out/twister.xml" junit.xml
167+
junit2html junit.xml junit.html
168+
169+
- name: Upload Unit Test Results in HTML
195170
if: always()
196171
uses: actions/upload-artifact@v4
197172
with:
198-
name: bsim-test-results
173+
name: HTML Unit Test Results
174+
if-no-files-found: ignore
199175
path: |
200-
./bsim_bt/52_bsim_results.xml
201-
./bsim_bt/53_bsim_results.xml
202-
./bsim_bt/53_bsim_split_results.xml
203-
./bsim_net/52_bsim_results.xml
204-
./bsim_uart/uart_bsim_results.xml
205-
./twister-out/twister.xml
206-
./twister-out/twister.json
207-
${{ github.event_path }}
208-
if-no-files-found: warn
176+
junit.html
177+
178+
- name: Publish Unit Test Results
179+
uses: EnricoMi/publish-unit-test-result-action@v2
180+
with:
181+
check_name: Bsim Test Results
182+
files: "junit.xml"
183+
comment_mode: off
209184

210185
- name: Upload Event Details
211186
if: always()

.github/workflows/clang.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on:
1313
group: zephyr-runner-v2-linux-x64-4xlarge
1414
container:
15-
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.11.20240324
15+
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.13.20240601
1616
options: '--entrypoint /bin/bash'
1717
strategy:
1818
fail-fast: false

.github/workflows/codecov.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Code Coverage with codecov
22

33
on:
44
schedule:
5-
- cron: '25 06,18 * * 1-5'
5+
- cron: '25 06,18 * * *'
66

77
concurrency:
88
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
@@ -14,7 +14,7 @@ jobs:
1414
runs-on:
1515
group: zephyr-runner-v2-linux-x64-4xlarge
1616
container:
17-
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.11.20240324
17+
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.13.20240601
1818
options: '--entrypoint /bin/bash'
1919
strategy:
2020
fail-fast: false
@@ -220,10 +220,10 @@ jobs:
220220
221221
- name: Upload coverage to Codecov
222222
if: always()
223-
uses: codecov/codecov-action@v3
223+
uses: codecov/codecov-action@v4
224224
with:
225-
directory: ./coverage/reports
226225
env_vars: OS,PYTHON
227226
fail_ci_if_error: false
228227
verbose: true
229-
files: merged.xml
228+
token: ${{ secrets.CODECOV_TOKEN }}
229+
files: coverage/reports/merged.xml

.github/workflows/devicetree_checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
strategy:
2828
matrix:
2929
python-version: ['3.10', '3.11', '3.12']
30-
os: [ubuntu-22.04, macos-11, windows-2022]
30+
os: [ubuntu-22.04, macos-14, windows-2022]
3131
exclude:
32-
- os: macos-11
32+
- os: macos-14
3333
python-version: 3.6
3434
- os: windows-2022
3535
python-version: 3.6

.github/workflows/doc-build.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ env:
1818
# so we fetch that through pip.
1919
CMAKE_VERSION: 3.20.5
2020
DOXYGEN_VERSION: 1.9.6
21+
# Job count is set to 2 less than the vCPU count of 16 because the total available RAM is 32GiB
22+
# and each sphinx-build process may use more than 2GiB of RAM.
23+
JOB_COUNT: 14
2124

2225
jobs:
2326
doc-file-check:
@@ -50,6 +53,8 @@ jobs:
5053
scripts/dts/
5154
doc/requirements.txt
5255
.github/workflows/doc-build.yml
56+
scripts/pylib/pytest-twister-harness/src/twister_harness/device/device_adapter.py
57+
scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/shell.py
5358
5459
doc-build-html:
5560
name: "Documentation Build (HTML)"
@@ -130,7 +135,11 @@ jobs:
130135
else
131136
DOC_TARGET="html"
132137
fi
133-
DOC_TAG=${DOC_TAG} SPHINXOPTS_EXTRA="-q -t publish" make -C doc ${DOC_TARGET}
138+
139+
DOC_TAG=${DOC_TAG} \
140+
SPHINXOPTS="-j ${JOB_COUNT} -W --keep-going -T" \
141+
SPHINXOPTS_EXTRA="-q -t publish" \
142+
make -C doc ${DOC_TARGET}
134143
135144
# API documentation coverage
136145
python3 -m coverxygen --xml-dir doc/_build/html/doxygen/xml/ --src-dir include/ --output doc-coverage.info
@@ -208,7 +217,7 @@ jobs:
208217
- name: install-pkgs
209218
run: |
210219
apt-get update
211-
apt-get install -y python3-pip python3-venv ninja-build doxygen graphviz librsvg2-bin
220+
apt-get install -y python3-pip python3-venv ninja-build doxygen graphviz librsvg2-bin imagemagick
212221
213222
- name: cache-pip
214223
uses: actions/cache@v4
@@ -243,7 +252,10 @@ jobs:
243252
DOC_TAG="development"
244253
fi
245254
246-
DOC_TAG=${DOC_TAG} SPHINXOPTS="-q -j auto" LATEXMKOPTS="-quiet -halt-on-error" make -C doc pdf
255+
DOC_TAG=${DOC_TAG} \
256+
SPHINXOPTS="-q -j ${JOB_COUNT}" \
257+
LATEXMKOPTS="-quiet -halt-on-error" \
258+
make -C doc pdf
247259
248260
- name: upload-build
249261
if: always()

.github/workflows/errno.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
check-errno:
1111
runs-on: ubuntu-22.04
1212
container:
13-
image: ghcr.io/zephyrproject-rtos/ci:v0.26.11
13+
image: ghcr.io/zephyrproject-rtos/ci:v0.26.13
1414

1515
steps:
1616
- name: Apply container owner mismatch workaround

.github/workflows/footprint-tracking.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
group: zephyr-runner-v2-linux-x64-4xlarge
2727
if: github.repository_owner == 'zephyrproject-rtos'
2828
container:
29-
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.11.20240324
29+
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.13.20240601
3030
options: '--entrypoint /bin/bash'
3131
strategy:
3232
fail-fast: false

.github/workflows/hello_world_multiplatform.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
os: [ubuntu-22.04, macos-12, macos-14, windows-2022]
29+
os: [ubuntu-22.04, macos-13, macos-14, windows-2022]
3030
runs-on: ${{ matrix.os }}
3131
steps:
3232
- name: Checkout

.github/workflows/twister.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on:
2626
group: zephyr-runner-v2-linux-x64-4xlarge
2727
container:
28-
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.11.20240324
28+
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.13.20240601
2929
options: '--entrypoint /bin/bash'
3030
outputs:
3131
subset: ${{ steps.output-services.outputs.subset }}
@@ -129,7 +129,7 @@ jobs:
129129
needs: twister-build-prep
130130
if: needs.twister-build-prep.outputs.size != 0
131131
container:
132-
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.11.20240324
132+
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.13.20240601
133133
options: '--entrypoint /bin/bash'
134134
strategy:
135135
fail-fast: false

0 commit comments

Comments
 (0)