Skip to content

Commit 885166f

Browse files
Merge pull request zephyrproject-rtos#12 from FrameworkComputer/marigold.upstream-merge
Marigold: Upstream merge
2 parents 7b88e17 + b3843c5 commit 885166f

File tree

25,627 files changed

+1050098
-378552
lines changed

Some content is hidden

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

25,627 files changed

+1050098
-378552
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ ForEachMacros:
6767
- 'Z_GENLIST_FOR_EACH_NODE_SAFE'
6868
- 'STRUCT_SECTION_FOREACH'
6969
- 'TYPE_SECTION_FOREACH'
70+
- 'K_SPINLOCK'
7071
IfMacros:
7172
- 'CHECKIF'
7273
# Disabled for now, see bug https://github.com/zephyrproject-rtos/zephyr/issues/48520

.github/ISSUE_TEMPLATE/005_hardware_support.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/SECURITY.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ updates:
88
- The most recent release, and the release prior to that.
99
- Active LTS releases.
1010

11-
At this time, with the latest release of v3.3, the supported
11+
At this time, with the latest release of v3.6, the supported
1212
versions are:
1313

1414
- v2.7: Current LTS
15-
- v3.2: Prior release
16-
- v3.3: Current release
15+
- v3.5: Prior release
16+
- v3.6: Current release
1717

1818
## Reporting process
1919

.github/workflows/assigner.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ on:
99
- ready_for_review
1010
branches:
1111
- main
12+
- collab-*
1213
- v*-branch
14+
issues:
15+
types:
16+
- labeled
1317

1418
jobs:
1519
assignment:
@@ -21,18 +25,28 @@ jobs:
2125
- name: Install Python dependencies
2226
run: |
2327
sudo pip3 install -U setuptools wheel pip
24-
pip3 install -U PyGithub>=1.55
28+
pip3 install -U PyGithub>=1.55 west
2529
2630
- name: Check out source code
27-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
2832

2933
- name: Run assignment script
3034
env:
3135
GITHUB_TOKEN: ${{ secrets.ZB_GITHUB_TOKEN }}
3236
run: |
33-
python3 scripts/set_assignees.py \
34-
-v \
35-
-o ${{ github.event.repository.owner.login }} \
36-
-r ${{ github.event.repository.name }} \
37-
-M MAINTAINERS.yml \
38-
-P ${{ github.event.pull_request.number }}
37+
FLAGS="-v"
38+
FLAGS+=" -o ${{ github.event.repository.owner.login }}"
39+
FLAGS+=" -r ${{ github.event.repository.name }}"
40+
FLAGS+=" -M MAINTAINERS.yml"
41+
if [ "${{ github.event_name }}" = "pull_request_target" ]; then
42+
FLAGS+=" -P ${{ github.event.pull_request.number }}"
43+
elif [ "${{ github.event_name }}" = "issues" ]; then
44+
FLAGS+=" -I ${{ github.event.issue.number }}"
45+
elif [ "${{ github.event_name }}" = "schedule" ]; then
46+
FLAGS+=" --modules"
47+
else
48+
echo "Unknown event: ${{ github.event_name }}"
49+
exit 1
50+
fi
51+
52+
python3 scripts/set_assignees.py $FLAGS

.github/workflows/backport_issue_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Check out source code
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

1818
- name: Install Python dependencies
1919
run: |

.github/workflows/bsim-tests.yaml

Lines changed: 81 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ on:
1212
- "boards/posix/**"
1313
- "soc/posix/**"
1414
- "arch/posix/**"
15+
- "include/zephyr/arch/posix/**"
16+
- "scripts/native_simulator/**"
1517
- "samples/net/sockets/echo_*/**"
1618
- "modules/openthread/**"
1719
- "subsys/net/l2/openthread/**"
1820
- "include/zephyr/net/openthread.h"
1921
- "drivers/ieee802154/**"
2022
- "include/zephyr/net/ieee802154*"
23+
- "drivers/serial/*nrfx*"
24+
- "tests/drivers/uart/**"
2125

2226
concurrency:
2327
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
@@ -26,20 +30,21 @@ concurrency:
2630
jobs:
2731
bsim-test:
2832
if: github.repository_owner == 'zephyrproject-rtos'
29-
runs-on: zephyr-runner-linux-x64-4xlarge
33+
runs-on:
34+
group: zephyr-runner-v2-linux-x64-4xlarge
3035
container:
31-
image: ghcr.io/zephyrproject-rtos/ci:v0.26.4
36+
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.9.20240223
3237
options: '--entrypoint /bin/bash'
33-
volumes:
34-
- /repo-cache/zephyrproject:/github/cache/zephyrproject
3538
env:
3639
ZEPHYR_TOOLCHAIN_VARIANT: zephyr
37-
ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.16.1
3840
BSIM_OUT_PATH: /opt/bsim/
3941
BSIM_COMPONENTS_PATH: /opt/bsim/components
4042
EDTT_PATH: ../tools/edtt
41-
bsim_bluetooth_test_results_file: ./bsim_bluetooth/bsim_results.xml
42-
bsim_networking_test_results_file: ./bsim_net/bsim_results.xml
43+
bsim_bt_52_test_results_file: ./bsim_bt/52_bsim_results.xml
44+
bsim_bt_53_test_results_file: ./bsim_bt/53_bsim_results.xml
45+
bsim_bt_53split_test_results_file: ./bsim_bt/53_bsim_split_results.xml
46+
bsim_net_52_test_results_file: ./bsim_net/52_bsim_results.xml
47+
bsim_uart_test_results_file: ./bsim_uart/uart_bsim_results.xml
4348
steps:
4449
- name: Apply container owner mismatch workaround
4550
run: |
@@ -49,14 +54,20 @@ jobs:
4954
# GitHub comes up with a fundamental fix for this problem.
5055
git config --global --add safe.directory ${GITHUB_WORKSPACE}
5156
57+
- name: Print cloud service information
58+
run: |
59+
echo "ZEPHYR_RUNNER_CLOUD_PROVIDER = ${ZEPHYR_RUNNER_CLOUD_PROVIDER}"
60+
echo "ZEPHYR_RUNNER_CLOUD_NODE = ${ZEPHYR_RUNNER_CLOUD_NODE}"
61+
echo "ZEPHYR_RUNNER_CLOUD_POD = ${ZEPHYR_RUNNER_CLOUD_POD}"
62+
5263
- name: Clone cached Zephyr repository
5364
continue-on-error: true
5465
run: |
55-
git clone --shared /github/cache/zephyrproject/zephyr .
66+
git clone --shared /repo-cache/zephyrproject/zephyr .
5667
git remote set-url origin ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
5768
5869
- name: Checkout
59-
uses: actions/checkout@v3
70+
uses: actions/checkout@v4
6071
with:
6172
fetch-depth: 0
6273

@@ -72,11 +83,13 @@ jobs:
7283
west init -l . || true
7384
west config manifest.group-filter -- +ci
7485
west config --global update.narrow true
75-
west update --path-cache /github/cache/zephyrproject 2>&1 1> west.update.log || west update --path-cache /github/cache/zephyrproject 2>&1 1> west.update.log || ( rm -rf ../modules ../bootloader ../tools && west update --path-cache /github/cache/zephyrproject)
86+
west update --path-cache /repo-cache/zephyrproject 2>&1 1> west.update.log || west update --path-cache /repo-cache/zephyrproject 2>&1 1> west.update.log || ( rm -rf ../modules ../bootloader ../tools && west update --path-cache /repo-cache/zephyrproject)
7687
west forall -c 'git reset --hard HEAD'
7788
89+
echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
90+
7891
- name: Check common triggering files
79-
uses: tj-actions/changed-files@v35
92+
uses: tj-actions/changed-files@v41
8093
id: check-common-files
8194
with:
8295
files: |
@@ -86,10 +99,12 @@ jobs:
8699
boards/posix/**
87100
soc/posix/**
88101
arch/posix/**
102+
include/zephyr/arch/posix/**
103+
scripts/native_simulator/**
89104
tests/bsim/*
90105
91106
- name: Check if Bluethooth files changed
92-
uses: tj-actions/changed-files@v35
107+
uses: tj-actions/changed-files@v41
93108
id: check-bluetooth-files
94109
with:
95110
files: |
@@ -98,7 +113,7 @@ jobs:
98113
subsys/bluetooth/**
99114
100115
- name: Check if Networking files changed
101-
uses: tj-actions/changed-files@v35
116+
uses: tj-actions/changed-files@v41
102117
id: check-networking-files
103118
with:
104119
files: |
@@ -110,51 +125,93 @@ jobs:
110125
drivers/ieee802154/**
111126
include/zephyr/net/ieee802154*
112127
128+
- name: Check if UART files changed
129+
uses: tj-actions/changed-files@v41
130+
id: check-uart-files
131+
with:
132+
files: |
133+
tests/bsim/drivers/uart/**
134+
drivers/serial/*nrfx*
135+
tests/drivers/uart/**
136+
113137
- name: Update BabbleSim to manifest revision
114138
if: >
115139
steps.check-bluetooth-files.outputs.any_changed == 'true'
116140
|| steps.check-networking-files.outputs.any_changed == 'true'
141+
|| steps.check-uart-files.outputs.any_changed == 'true'
117142
|| steps.check-common-files.outputs.any_changed == 'true'
118143
run: |
119144
export BSIM_VERSION=$( west list bsim -f {revision} )
120145
echo "Manifest points to bsim sha $BSIM_VERSION"
121146
cd /opt/bsim_west/bsim
122147
git fetch -n origin ${BSIM_VERSION}
123-
git config --global advice.detachedHead false
124-
git checkout ${BSIM_VERSION}
148+
git -c advice.detachedHead=false checkout ${BSIM_VERSION}
125149
west update
126150
make everything -s -j 8
127151
128152
- name: Run Bluetooth Tests with BSIM
129153
if: steps.check-bluetooth-files.outputs.any_changed == 'true' || steps.check-common-files.outputs.any_changed == 'true'
130154
run: |
131155
export ZEPHYR_BASE=${PWD}
132-
WORK_DIR=${ZEPHYR_BASE}/bsim_bluetooth tests/bsim/bluetooth/compile.sh
133-
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bluetooth_test_results_file} \
134-
SEARCH_PATH=tests/bsim/bluetooth/ tests/bsim/run_parallel.sh
156+
export WORK_DIR=${ZEPHYR_BASE}/bsim_bt
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+
BOARD=nrf5340bsim_nrf5340_cpunet \
163+
nice tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpunet.sh
164+
BOARD=nrf5340bsim_nrf5340_cpunet \
165+
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_53_test_results_file} \
166+
TESTS_FILE=tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpunet.txt \
167+
tests/bsim/run_parallel.sh
168+
# Build and run the nrf5340 split stack tests set
169+
BOARD=nrf5340bsim_nrf5340_cpuapp \
170+
nice tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpuapp.sh
171+
BOARD=nrf5340bsim_nrf5340_cpuapp \
172+
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_53split_test_results_file} \
173+
TESTS_FILE=tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpuapp.txt \
174+
tests/bsim/run_parallel.sh
135175
136176
- name: Run Networking Tests with BSIM
137177
if: steps.check-networking-files.outputs.any_changed == 'true' || steps.check-common-files.outputs.any_changed == 'true'
138178
run: |
139179
export ZEPHYR_BASE=${PWD}
140-
WORK_DIR=${ZEPHYR_BASE}/bsim_net tests/bsim/net/compile.sh
141-
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_networking_test_results_file} \
180+
WORK_DIR=${ZEPHYR_BASE}/bsim_net nice tests/bsim/net/compile.sh
181+
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_net_52_test_results_file} \
142182
SEARCH_PATH=tests/bsim/net/ tests/bsim/run_parallel.sh
143183
184+
- name: Run UART Tests with BSIM
185+
if: steps.check-uart-files.outputs.any_changed == 'true' || steps.check-common-files.outputs.any_changed == 'true'
186+
run: |
187+
echo "UART: Single device tests"
188+
./scripts/twister -T tests/drivers/uart/ --force-color --inline-logs -v -M -p nrf52_bsim \
189+
--fixture gpio_loopback -- -uart0_loopback
190+
echo "UART: Multi device tests"
191+
export ZEPHYR_BASE=${PWD}
192+
WORK_DIR=${ZEPHYR_BASE}/bsim_uart nice tests/bsim/drivers/uart/compile.sh
193+
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_uart_test_results_file} \
194+
SEARCH_PATH=tests/bsim/drivers/uart/ tests/bsim/run_parallel.sh
195+
144196
- name: Upload Test Results
145197
if: always()
146-
uses: actions/upload-artifact@v3
198+
uses: actions/upload-artifact@v4
147199
with:
148200
name: bsim-test-results
149201
path: |
150-
./bsim_bluetooth/bsim_results.xml
151-
./bsim_net/bsim_results.xml
202+
./bsim_bt/52_bsim_results.xml
203+
./bsim_bt/53_bsim_results.xml
204+
./bsim_bt/53_bsim_split_results.xml
205+
./bsim_net/52_bsim_results.xml
206+
./bsim_uart/uart_bsim_results.xml
207+
./twister-out/twister.xml
208+
./twister-out/twister.json
152209
${{ github.event_path }}
153210
if-no-files-found: warn
154211

155212
- name: Upload Event Details
156213
if: always()
157-
uses: actions/upload-artifact@v3
214+
uses: actions/upload-artifact@v4
158215
with:
159216
name: event
160217
path: |

.github/workflows/bug_snapshot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

2626
- name: Install Python dependencies
2727
run: |

0 commit comments

Comments
 (0)