Skip to content

Commit da2b650

Browse files
committed
[nrf mergeup] Merge upstream up to commit 9b17a95
Regular upmerge. Signed-off-by: Gerard Marull-Paretas <[email protected]>
2 parents d4af7ad + 9b17a95 commit da2b650

File tree

17,664 files changed

+294887
-210166
lines changed

Some content is hidden

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

17,664 files changed

+294887
-210166
lines changed

.checkpatch.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@
2929
--ignore MULTISTATEMENT_MACRO_USE_DO_WHILE
3030
--ignore ENOSYS
3131
--ignore IS_ENABLED_CONFIG
32+
--ignore EXPORT_SYMBOL

.github/workflows/bsim-tests.yaml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- "west.yml"
99
- "subsys/bluetooth/**"
1010
- "tests/bsim/**"
11+
- "tests/bluetooth/common/testlib/**"
1112
- "samples/bluetooth/**"
1213
- "boards/posix/**"
1314
- "soc/posix/**"
@@ -30,12 +31,11 @@ concurrency:
3031
jobs:
3132
bsim-test:
3233
if: github.repository_owner == 'zephyrproject-rtos'
33-
runs-on: zephyr-runner-linux-x64-4xlarge
34+
runs-on:
35+
group: zephyr-runner-v2-linux-x64-4xlarge
3436
container:
35-
image: ghcr.io/zephyrproject-rtos/ci:v0.26.7
37+
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.11.20240324
3638
options: '--entrypoint /bin/bash'
37-
volumes:
38-
- /repo-cache/zephyrproject:/github/cache/zephyrproject
3939
env:
4040
ZEPHYR_TOOLCHAIN_VARIANT: zephyr
4141
BSIM_OUT_PATH: /opt/bsim/
@@ -55,10 +55,16 @@ jobs:
5555
# GitHub comes up with a fundamental fix for this problem.
5656
git config --global --add safe.directory ${GITHUB_WORKSPACE}
5757
58+
- name: Print cloud service information
59+
run: |
60+
echo "ZEPHYR_RUNNER_CLOUD_PROVIDER = ${ZEPHYR_RUNNER_CLOUD_PROVIDER}"
61+
echo "ZEPHYR_RUNNER_CLOUD_NODE = ${ZEPHYR_RUNNER_CLOUD_NODE}"
62+
echo "ZEPHYR_RUNNER_CLOUD_POD = ${ZEPHYR_RUNNER_CLOUD_POD}"
63+
5864
- name: Clone cached Zephyr repository
5965
continue-on-error: true
6066
run: |
61-
git clone --shared /github/cache/zephyrproject/zephyr .
67+
git clone --shared /repo-cache/zephyrproject/zephyr .
6268
git remote set-url origin ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
6369
6470
- name: Checkout
@@ -78,7 +84,7 @@ jobs:
7884
west init -l . || true
7985
west config manifest.group-filter -- +ci
8086
west config --global update.narrow true
81-
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)
87+
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)
8288
west forall -c 'git reset --hard HEAD'
8389
8490
echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
@@ -140,31 +146,27 @@ jobs:
140146
echo "Manifest points to bsim sha $BSIM_VERSION"
141147
cd /opt/bsim_west/bsim
142148
git fetch -n origin ${BSIM_VERSION}
143-
git config --global advice.detachedHead false
144-
git checkout ${BSIM_VERSION}
149+
git -c advice.detachedHead=false checkout ${BSIM_VERSION}
145150
west update
146151
make everything -s -j 8
147152
148153
- name: Run Bluetooth Tests with BSIM
149154
if: steps.check-bluetooth-files.outputs.any_changed == 'true' || steps.check-common-files.outputs.any_changed == 'true'
150155
run: |
151156
export ZEPHYR_BASE=${PWD}
152-
export WORK_DIR=${ZEPHYR_BASE}/bsim_bt
153157
# Build and run the BT tests for nrf52_bsim:
154158
nice tests/bsim/bluetooth/compile.sh
155159
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_52_test_results_file} \
156160
TESTS_FILE=tests/bsim/bluetooth/tests.nrf52bsim.txt tests/bsim/run_parallel.sh
157-
# Build and run the BT controller tests also for the nrf5340bsim_nrf5340_cpunet
158-
BOARD=nrf5340bsim_nrf5340_cpunet \
161+
# Build and run the BT controller tests also for the nrf5340bsim/nrf5340/cpunet
159162
nice tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpunet.sh
160-
BOARD=nrf5340bsim_nrf5340_cpunet \
163+
BOARD=nrf5340bsim/nrf5340/cpunet \
161164
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_53_test_results_file} \
162165
TESTS_FILE=tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpunet.txt \
163166
tests/bsim/run_parallel.sh
164167
# Build and run the nrf5340 split stack tests set
165-
BOARD=nrf5340bsim_nrf5340_cpuapp \
166168
nice tests/bsim/bluetooth/compile.nrf5340bsim_nrf5340_cpuapp.sh
167-
BOARD=nrf5340bsim_nrf5340_cpuapp \
169+
BOARD=nrf5340bsim/nrf5340/cpuapp \
168170
RESULTS_FILE=${ZEPHYR_BASE}/${bsim_bt_53split_test_results_file} \
169171
TESTS_FILE=tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpuapp.txt \
170172
tests/bsim/run_parallel.sh

.github/workflows/clang.yaml

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ concurrency:
99
jobs:
1010
clang-build:
1111
if: github.repository_owner == 'zephyrproject-rtos'
12-
runs-on: zephyr-runner-linux-x64-4xlarge
12+
runs-on:
13+
group: zephyr-runner-v2-linux-x64-4xlarge
1314
container:
14-
image: ghcr.io/zephyrproject-rtos/ci:v0.26.7
15+
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.26.11.20240324
1516
options: '--entrypoint /bin/bash'
16-
volumes:
17-
- /repo-cache/zephyrproject:/github/cache/zephyrproject
1817
strategy:
1918
fail-fast: false
2019
matrix:
2120
platform: ["native_sim"]
2221
env:
22+
CCACHE_DIR: /node-cache/ccache-zephyr
23+
CCACHE_REMOTE_STORAGE: "redis://cache-*.keydb-cache.svc.cluster.local|shards=1,2,3"
24+
CCACHE_REMOTE_ONLY: "true"
2325
LLVM_TOOLCHAIN_PATH: /usr/lib/llvm-16
2426
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
2527
BASE_REF: ${{ github.base_ref }}
@@ -34,10 +36,16 @@ jobs:
3436
# GitHub comes up with a fundamental fix for this problem.
3537
git config --global --add safe.directory ${GITHUB_WORKSPACE}
3638
39+
- name: Print cloud service information
40+
run: |
41+
echo "ZEPHYR_RUNNER_CLOUD_PROVIDER = ${ZEPHYR_RUNNER_CLOUD_PROVIDER}"
42+
echo "ZEPHYR_RUNNER_CLOUD_NODE = ${ZEPHYR_RUNNER_CLOUD_NODE}"
43+
echo "ZEPHYR_RUNNER_CLOUD_POD = ${ZEPHYR_RUNNER_CLOUD_POD}"
44+
3745
- name: Clone cached Zephyr repository
3846
continue-on-error: true
3947
run: |
40-
git clone --shared /github/cache/zephyrproject/zephyr .
48+
git clone --shared /repo-cache/zephyrproject/zephyr .
4149
git remote set-url origin ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
4250
4351
- name: Checkout
@@ -63,7 +71,7 @@ jobs:
6371
# So first retry to update, if that does not work, remove all modules
6472
# and start over. (Workaround until we implement more robust module
6573
# west caching).
66-
west update --path-cache /github/cache/zephyrproject 2>&1 1> west.log || west update --path-cache /github/cache/zephyrproject 2>&1 1> west2.log || ( rm -rf ../modules ../bootloader ../tools && west update --path-cache /github/cache/zephyrproject)
74+
west update --path-cache /repo-cache/zephyrproject 2>&1 1> west.log || west update --path-cache /repo-cache/zephyrproject 2>&1 1> west2.log || ( rm -rf ../modules ../bootloader ../tools && west update --path-cache /repo-cache/zephyrproject)
6775
6876
echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
6977
@@ -74,31 +82,22 @@ jobs:
7482
gcc --version
7583
ls -la
7684
77-
- name: Prepare ccache timestamp/data
78-
id: ccache_cache_timestamp
79-
shell: cmake -P {0}
85+
- name: Set up ccache
8086
run: |
81-
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
82-
string(REPLACE "/" "_" repo ${{github.repository}})
83-
string(REPLACE "-" "_" repo2 ${repo})
84-
file(APPEND $ENV{GITHUB_OUTPUT} "repo=${repo2}\n")
85-
86-
- name: use cache
87-
id: cache-ccache
88-
uses: zephyrproject-rtos/[email protected]
89-
with:
90-
key: ${{ steps.ccache_cache_timestamp.outputs.repo }}-${{ github.ref_name }}-clang-${{ matrix.platform }}-ccache
91-
path: /github/home/.cache/ccache
92-
aws-s3-bucket: ccache.zephyrproject.org
93-
aws-access-key-id: ${{ vars.AWS_CCACHE_ACCESS_KEY_ID }}
94-
aws-secret-access-key: ${{ secrets.AWS_CCACHE_SECRET_ACCESS_KEY }}
95-
aws-region: us-east-2
96-
97-
- name: ccache stats initial
87+
mkdir -p ${CCACHE_DIR}
88+
ccache -M 10G
89+
ccache -p
90+
ccache -z -s -vv
91+
92+
- name: Update BabbleSim to manifest revision
9893
run: |
99-
mkdir -p /github/home/.cache
100-
test -d github/home/.cache/ccache && rm -rf /github/home/.cache/ccache && mv github/home/.cache/ccache /github/home/.cache/ccache
101-
ccache -M 10G -s
94+
export BSIM_VERSION=$( west list bsim -f {revision} )
95+
echo "Manifest points to bsim sha $BSIM_VERSION"
96+
cd /opt/bsim_west/bsim
97+
git fetch -n origin ${BSIM_VERSION}
98+
git -c advice.detachedHead=false checkout ${BSIM_VERSION}
99+
west update
100+
make everything -s -j 8
102101
103102
- name: Run Tests with Twister
104103
id: twister
@@ -119,10 +118,10 @@ jobs:
119118
echo "report_needed=0" >> $GITHUB_OUTPUT
120119
fi
121120
122-
- name: ccache stats post
121+
- name: Print ccache stats
122+
if: always()
123123
run: |
124-
ccache -s
125-
ccache -p
124+
ccache -s -vv
126125
127126
- name: Upload Unit Test Results
128127
if: always() && steps.twister.outputs.report_needed != 0

0 commit comments

Comments
 (0)