Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d992b50
[nrf noup] ci: NCS-specific CI tweaks
carlescufi Nov 30, 2018
3ed3718
[nrf noup] ci: set `ZEPHYR_<MODULE_NAME>_KCONFIG` for NCS modules
tejlmand Jan 26, 2021
2f8504d
[nrf noup] include: net: add NCS extensions
rlubos Oct 1, 2018
d46fff0
[nrf noup] net: lib: mqtt: Provide option to enable TLS session caching
jtguggedal May 18, 2020
2b523d3
[nrf noup] drivers: ieee802154: secure services and tf-m
czeslawmakarski Nov 30, 2020
0d411d4
[nrf noup] kconfig: Disallow FPU for SPM
oyvindronningstad Jun 1, 2021
4f41c49
[nrf noup] boards: disable BUILD_WITH_TFM on some non-secure builds
de-nordic Jan 5, 2021
82e7ab8
[nrf noup] tfm: Kconfig: Disable TFM_BL2 when using CryptoCell
oyvindronningstad Jun 3, 2021
fac29a9
[nrf noup] samples: echo_server: add overlay-tfm
frkv Apr 26, 2021
da11516
[nrf noup] samples: bluetooth: hci_pwr_ctrl: add dynamic control
ibaz-nordic Apr 7, 2021
ec6d4e8
[nrf noup] Bluetooth: update experimental for qualification
joerchan Nov 20, 2020
c03da14
[nrf noup] tree-wide: support NCS Partition Manager (PM) definitions
sigvartmh May 3, 2019
8ca7dbb
[nrf noup] dts: choose cryptocell for entropy when available
mbolivar-nordic Apr 24, 2020
460f2d2
[nrf noup] kconfig: Bump python recursion limit from 1k to 5k
SebastianBoe Dec 29, 2021
30f63cb
[nrf noup] fs: littlefs: Fix automount for partition manager
sigvartmh Jan 5, 2022
ef3c068
[nrf fromtree] drivers: net: ppp: async uart support
jhirsi Jan 12, 2022
8dcbf28
[nrf fromtree] drivers: gpio: nrf: Free channel when pin is reconfigured
nordic-krch Jan 13, 2022
45ad1e2
[nrf fromlist] sensors: Implement MPU9250 driver
dchat-nordic Nov 26, 2021
28dff30
[nrf_noup]: Adding PSA configurations to mbed TLS
frkv Nov 30, 2021
f1f8866
[nrf_noup]: TF-M Make use of PSA_HAS_XXXX_SUPPORT
frkv Jan 13, 2022
5bed2be
[nrf fromtree] logging: Improve algorithm for waking up the thread
nordic-krch Dec 29, 2021
e3bb052
[nrf fromtree] logging: Fix counting of buffered messages
nordic-krch Dec 29, 2021
2fdec7b
[nrf noup] tfm: Set CRYPTO_HW_ACCELERATOR=True
SebastianBoe Jan 20, 2022
77b503a
[nrf noup] cmake: linker: rework s1 linking
hakonfam Jan 20, 2022
a19d072
[nrf fromtree] twister: remove spurious quoting of EXTRA_xFLAGS=-Werror
marc-hb Jan 11, 2022
7ff71e7
[nrf noup] modules: Make nrfx_glue work with bluetooth softdevice
ibaz-nordic Jan 21, 2022
e0b8c6a
[nrf fromlist] drivers: net: ppp: asynch api: use microseconds
jhirsi Jan 25, 2022
9f76a85
[nrf noup] action: compliance/doc: set checkout folder name to zephyr
PerMac Jan 26, 2022
31cbbc0
[nrf fromtree] doc: use extlink for github issue links
henrikbrixandersen Jan 17, 2022
d0c2637
[nrf fromtree] doc: fix PDF build issue due to extlink references
gmarull Jan 17, 2022
89cb24b
[nrf fromtree] linker: update posix linker template, linker.ld
tejlmand Jan 7, 2022
d9cc0d3
[nrf fromtree] drivers: ieee802154: extend support for nRF53
Jan 14, 2022
1b6427e
[nrf noup] actions: fix clang
PerMac Jan 27, 2022
fca9111
Merge pull request #9 from PerMac/fix/clang
PerMac Jan 27, 2022
0817f64
[nrf noup] actions: fix bluetooth actions
PerMac Jan 27, 2022
b89ad5a
Merge pull request #11 from PerMac/fix/bluetooth
PerMac Jan 27, 2022
b6e239f
[nrf noup] actions: fix twister actions
PerMac Jan 27, 2022
9045344
Merge pull request #14 from PerMac/fix/twister_action
PerMac Jan 27, 2022
3c5b559
[nrf noup] samples: Good hello_good
PerMac Jan 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/bluetooth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,17 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
path: ./zephyr

- name: west setup
working-directory: ./zephyr
run: |
west init -l . || true
west config --global update.narrow true
west update 2>&1 1> west.update.log || west update 2>&1 1> west.update2.log

- name: Run Bluetooth Tests with BSIM
working-directory: ./zephyr
run: |
export ZEPHYR_BASE=${PWD}
WORK_DIR=${ZEPHYR_BASE}/bsim_bt_out tests/bluetooth/bsim_bt/compile.sh
Expand All @@ -61,7 +64,7 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: Bluetooth Test Results
path: ./bsim_bt_out/bsim_results.xml
path: ./zephyr/bsim_bt_out/bsim_results.xml

bluetooth-test-results:
name: "Publish Bluetooth Test Results"
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/clang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
with:
access_token: ${{ github.token }}
clang-build:
runs-on: zephyr_runner
runs-on: ubuntu-latest
needs: clang-build-prep
container:
image: zephyrprojectrtos/ci:v0.21.0
Expand Down Expand Up @@ -39,8 +39,10 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
path: ./zephyr

- name: Environment Setup
working-directory: ./zephyr
run: |
pip3 install GitPython
echo "$HOME/.local/bin" >> $GITHUB_PATH
Expand All @@ -59,13 +61,15 @@ jobs:
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)

- name: Check Environment
working-directory: ./zephyr
run: |
cmake --version
${CLANG_ROOT_DIR}/bin/clang --version
gcc --version
ls -la

- name: Prepare ccache timestamp/data
working-directory: ./zephyr
id: ccache_cache_timestamp
shell: cmake -P {0}
run: |
Expand All @@ -85,11 +89,13 @@ jobs:
aws-region: us-east-2

- name: ccache stats initial
working-directory: ./zephyr
run: |
test -d github/home/.ccache && rm -rf /github/home/.ccache && mv github/home/.ccache /github/home/.ccache
ccache -M 10G -s

- name: Run Tests with Twister
working-directory: ./zephyr
id: twister
run: |
export ZEPHYR_BASE=${PWD}
Expand All @@ -109,6 +115,7 @@ jobs:
fi

- name: ccache stats post
working-directory: ./zephyr
run: |
ccache -s

Expand All @@ -117,7 +124,7 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: Unit Test Results (Subset ${{ matrix.platform }})
path: twister-out/twister.xml
path: zephyr/twister-out/twister.xml

clang-build-results:
name: "Publish Unit Tests Results"
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
path: ./zephyr
- name: Run Maintainers Script
working-directory: ./zephyr
id: maintainer
env:
BASE_REF: ${{ github.base_ref }}
Expand All @@ -32,6 +34,7 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
path: ./zephyr

- name: cache-pip
uses: actions/cache@v1
Expand All @@ -47,19 +50,23 @@ jobs:
pip3 install west

- name: west setup
working-directory: ./zephyr
env:
BASE_REF: ${{ github.base_ref }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git remote -v
# Sauce tag checks before rebasing
git log --oneline --first-parent origin/${BASE_REF}..HEAD | grep -E -v "\[nrf (mergeup|fromtree|fromlist|noup)\]" && { echo 'Sauce tag missing'; exit 1; }
git rebase origin/${BASE_REF}
# debug
git log --pretty=oneline | head -n 10
west init -l . || true
west update 2>&1 1> west.update.log || west update 2>&1 1> west.update2.log

- name: Run Compliance Tests
working-directory: ./zephyr
continue-on-error: true
id: compliance
env:
Expand All @@ -69,16 +76,17 @@ jobs:
# debug
ls -la
git log --pretty=oneline | head -n 10
./scripts/ci/check_compliance.py -m Codeowners -m Devicetree -m Gitlint -m Identity -m Nits -m pylint -m checkpatch -m Kconfig -c origin/${BASE_REF}..
./scripts/ci/check_compliance.py -m Codeowners -m Devicetree -m Gitlint -m Identity -m Nits -m pylint -m checkpatch -m KconfigBasic -c origin/${BASE_REF}..

- name: upload-results
uses: actions/upload-artifact@master
continue-on-error: True
with:
name: compliance.xml
path: compliance.xml
path: zephyr/compliance.xml

- name: check-warns
working-directory: ./zephyr
run: |
if [[ ! -s "compliance.xml" ]]; then
exit 1;
Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v2
with:
path: ./zephyr

- name: install-pkgs
working-directory: ./zephyr
run: |
sudo apt-get install -y ninja-build graphviz libclang1-9 libclang-cpp9
wget -q https://www.doxygen.nl/files/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz
Expand All @@ -56,20 +59,22 @@ jobs:
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('scripts/requirements-doc.txt') }}
key: pip-${{ hashFiles('zephyr/scripts/requirements-doc.txt') }}

- name: install-pip
run: |
sudo pip3 install -U setuptools wheel pip
pip3 install -r scripts/requirements-doc.txt
pip3 install -r zephyr/scripts/requirements-doc.txt
pip3 install west==${WEST_VERSION}
pip3 install cmake==${CMAKE_VERSION}

- name: west setup
working-directory: ./zephyr
run: |
west init -l .

- name: build-docs
working-directory: ./zephyr
run: |
if [[ "$GITHUB_REF" =~ "refs/tags/v" ]]; then
DOC_TAG="release"
Expand All @@ -86,14 +91,15 @@ jobs:
DOC_TAG=${DOC_TAG} SPHINXOPTS="-q -W -t publish" make -C doc ${DOC_TARGET}

- name: compress-docs
working-directory: ./zephyr
run: |
tar cfJ html-output.tar.xz --directory=doc/_build html

- name: upload-build
uses: actions/upload-artifact@master
with:
name: html-output
path: html-output.tar.xz
path: zephyr/html-output.tar.xz

doc-build-pdf:
name: "Documentation Build (PDF)"
Expand All @@ -107,6 +113,8 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v2
with:
path: ./zephyr

- name: install-pkgs
run: |
Expand All @@ -117,20 +125,22 @@ jobs:
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('scripts/requirements-doc.txt') }}
key: pip-${{ hashFiles('zephyr/scripts/requirements-doc.txt') }}

- name: install-pip
run: |
pip3 install -U setuptools wheel pip
pip3 install -r scripts/requirements-doc.txt
pip3 install -r zephyr/scripts/requirements-doc.txt
pip3 install west==${WEST_VERSION}
pip3 install cmake==${CMAKE_VERSION}

- name: west setup
working-directory: ./zephyr
run: |
west init -l .

- name: build-docs
working-directory: ./zephyr
run: |
if [[ "$GITHUB_REF" =~ "refs/tags/v" ]]; then
DOC_TAG="release"
Expand All @@ -144,4 +154,4 @@ jobs:
uses: actions/upload-artifact@master
with:
name: pdf-output
path: doc/_build/latex/zephyr.pdf
path: zephyr/doc/_build/latex/zephyr.pdf
18 changes: 14 additions & 4 deletions .github/workflows/twister.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

twister-build-prep:

runs-on: zephyr_runner
runs-on: ubuntu-latest
needs: twister-build-cleanup
container:
image: zephyrprojectrtos/ci:v0.21.0
Expand Down Expand Up @@ -53,8 +53,10 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
path: ./zephyr

- name: Environment Setup
working-directory: ./zephyr
if: github.event_name == 'pull_request_target'
run: |
pip3 install GitPython
Expand All @@ -67,6 +69,7 @@ jobs:
# no need for west update here

- name: Generate Test Plan with Twister
working-directory: ./zephyr
if: github.event_name == 'pull_request_target'
id: test-plan
run: |
Expand All @@ -83,6 +86,7 @@ jobs:
rm -f testplan.csv .testplan

- name: Determine matrix size
working-directory: ./zephyr
id: output-services
run: |
if [ "${{github.event_name}}" = "pull_request_target" ]; then
Expand All @@ -105,7 +109,7 @@ jobs:
echo "::set-output name=size::${size}";

twister-build:
runs-on: zephyr_runner
runs-on: ubuntu-latest
needs: twister-build-prep
if: needs.twister-build-prep.outputs.size != 0
container:
Expand Down Expand Up @@ -137,8 +141,10 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
path: ./zephyr

- name: Environment Setup
working-directory: ./zephyr
run: |
pip3 install GitPython
if [ "${{github.event_name}}" = "pull_request_target" ]; then
Expand All @@ -156,6 +162,7 @@ jobs:
west forall -c 'git reset --hard HEAD'

- name: Check Environment
working-directory: ./zephyr
run: |
cmake --version
${CLANG_ROOT_DIR}/bin/clang --version
Expand Down Expand Up @@ -192,13 +199,15 @@ jobs:

- if: github.event_name == 'push'
name: Run Tests with Twister (Push)
working-directory: ./zephyr
run: |
export ZEPHYR_BASE=${PWD}
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
./scripts/twister --subset ${{matrix.subset}}/${{ strategy.job-total }} ${TWISTER_COMMON} ${PUSH_OPTIONS}

- if: github.event_name == 'pull_request_target'
name: Run Tests with Twister (Pull Request)
working-directory: ./zephyr
run: |
rm -f testplan.csv
export ZEPHYR_BASE=${PWD}
Expand All @@ -208,6 +217,7 @@ jobs:

- if: github.event_name == 'schedule'
name: Run Tests with Twister (Daily)
working-directory: ./zephyr
run: |
export ZEPHYR_BASE=${PWD}
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
Expand All @@ -224,8 +234,8 @@ jobs:
name: Unit Test Results (Subset ${{ matrix.subset }})
if-no-files-found: ignore
path: |
twister-out/twister.xml
testplan.csv
zephyr/twister-out/twister.xml
zephyr/testplan.csv

twister-test-results:
name: "Publish Unit Tests Results"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/twister_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v2
with:
path: ./zephyr
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
Expand All @@ -44,6 +46,7 @@ jobs:
run: |
pip3 install pytest colorama pyyaml ply mock
- name: Run pytest
working-directory: ./zephyr
env:
ZEPHYR_BASE: ./
ZEPHYR_TOOLCHAIN_VARIANT: zephyr
Expand Down
4 changes: 2 additions & 2 deletions .gitlint
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ debug = false
extra-path=scripts/gitlint

[title-max-length-no-revert]
line-length=75
line-length=120

[body-min-line-count]
min-line-count=1
Expand All @@ -39,7 +39,7 @@ words=wip

[max-line-length-with-exceptions]
# B1 = body-max-line-length
line-length=75
line-length=120

[body-min-length]
min-length=3
Expand Down
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@Library("CI_LIB") _

def pipeline = new ncs.sdk_zephyr.Main()

pipeline.run(JOB_NAME)
Loading