Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend the Bridle test environment #253

Merged
merged 26 commits into from
Jul 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1e79fe7
manifest: support Analog Devices (Maxim) HAL
rexut Jul 26, 2024
5932345
manifest: support Arm Ethos-U NPUs HAL
rexut Jul 26, 2024
11546bf
manifest: support Würth Elektronik HAL
rexut Jul 25, 2024
a6f2571
twister: differentiate alternative specifications
rexut Jul 26, 2024
154a9a4
tests: bridle: common: add integration platforms
rexut Jul 26, 2024
4c01280
snippets: add build all MFD drivers adjustments for tests
rexut Jul 25, 2024
9342788
tests: drivers: mfd: provide alternate configuration
rexut Jul 25, 2024
d2d402f
snippets: add build all I2C drivers adjustments for tests
rexut Jul 25, 2024
153489b
tests: drivers: i2c: provide alternate configuration
rexut Jul 25, 2024
10f37b1
snippets: add build all UART drivers adjustments for tests
rexut Jul 25, 2024
ce4c39e
tests: drivers: uart: provide alternate configuration
rexut Jul 25, 2024
ca953ec
snippets: add build all GPIO drivers adjustments for tests
rexut Jul 25, 2024
32d3ba8
tests: drivers: gpio: provide alternate configuration
rexut Jul 25, 2024
6eb77f8
snippets: add build all RTC drivers adjustments for tests
rexut Jul 25, 2024
bc4b44e
tests: drivers: rtc: provide alternate configuration
rexut Jul 25, 2024
6835168
snippets: add build all Sensor drivers adjustments for tests
rexut Jul 25, 2024
0d0859d
tests: drivers: sensor: provide alternate configuration
rexut Jul 25, 2024
9f318cf
snippets: add build all Display drivers adjustments for tests
rexut Jul 25, 2024
e7c2a55
tests: drivers: display: provide alternate configuration
rexut Jul 25, 2024
87101fb
ci: github: qa: add new jobs for upstream tests
rexut Jul 26, 2024
fe816c3
release: add draft notes for upcoming 3.7.0
rexut Jul 25, 2024
7e90267
manifest: bump Zephyr to TiaC's v3.7-branch
rexut Jul 26, 2024
3f2c239
doc: change Zephyr to 3.7.0 in pick list
rexut Jul 26, 2024
48cf159
doc: add 3.7.0-rc1 to pick list
rexut Jul 26, 2024
346ef89
release: add draft notes for upcoming 3.7.0
rexut Jul 26, 2024
5e396e7
release: bump version to 3.7.0-rc1
rexut Jul 26, 2024
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
118 changes: 116 additions & 2 deletions .github/workflows/qa-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
--retry-failed 5 --retry-interval 60 \
--outdir twister-out --no-clean --inline-logs \
--enable-size-report --platform-reports \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/samples \
--integration --no-detailed-test-id \
--testsuite-root bridle/samples \
--testsuite-root zephyr/samples \
Expand All @@ -150,6 +150,120 @@ jobs:
fail_on_failure: false
if: always()

qa-tests-integration:
name: Run integration tests for tests
if: github.repository_owner == 'tiacsys'
runs-on: [self-hosted, ci-32g-x8, linux, x64, container]
container:
image: ghcr.io/zephyrproject-rtos/ci:v0.26.13
options: '--cpus 4 --memory 8g --entrypoint /bin/bash'
env:
ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.16.8

steps:
- name: Apply container owner mismatch workaround
run: |
# FIXME: The owner UID of the GITHUB_WORKSPACE directory may not
# match the container user UID because of the way GitHub
# Actions runner is implemented. Remove this workaround when
# GitHub comes up with a fundamental fix for this problem.
git config --global --add safe.directory ${GITHUB_WORKSPACE}

- name: Apply container HTTP/2 framing layer workaround
run: |
# FIXME: For unknown reasons, the local development host and CI is
# running in temporary "Error in the HTTP2 framing layer".
# Forcing the historical but still supported HTTP/1.1 layer
# seems to be a stable workaround - happened in Oct. 2023.
git config --global --add http.version HTTP/1.1

- name: Update GitHub PATH for west
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH

# It is important that this is run before any caching tasks as cleanups
# are run in reverse order (and you do not want to cleanup before the
# caching is saved).
- name: Clean working directory
uses: tiacsys/clean-after-action@v3
#
# Could also be implemented with the new pre- and post-job hook scripts:
#
# - https://stackoverflow.com/questions/70483902
# - https://devopsjournal.io/blog/2023/06/21/GitHub-container-based-Action-cleanup
# - https://docs.github.com/actions/hosting-your-own-runners/running-scripts-before-or-after-a-job
#
with:
keep-git: false

- name: Checkout the code
uses: actions/checkout@v4
with:
fetch-depth: 100
show-progress: true
path: workspace/bridle
ref: ${{ github.ref }}

- name: Restore PIP Cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-qa-pip

- name: Install base dependencies
working-directory: workspace
run: |
pip3 install --upgrade pip
pip3 install --upgrade setuptools
pip3 install --upgrade --requirement bridle/scripts/requirements-base.txt

- name: West init and update
working-directory: workspace
run: |
west init --local bridle
west update --fetch-opt=--depth=100 --fetch=always --narrow --stats
west zephyr-export
west bridle-export

- name: Install build and test dependencies
working-directory: workspace
run: |
pip3 install --upgrade --requirement zephyr/scripts/requirements-base.txt
pip3 install --upgrade --requirement zephyr/scripts/requirements-build-test.txt
pip3 install --upgrade --requirement zephyr/scripts/requirements-run-test.txt
pip3 install --upgrade --requirement zephyr/scripts/requirements-extras.txt
pip3 install --upgrade --requirement zephyr/scripts/requirements-compliance.txt
pip3 install --upgrade --requirement bridle/scripts/requirements-build.txt

- name: Build tests
working-directory: workspace
run: |
west twister --verbose --jobs 6 \
--retry-failed 5 --retry-interval 60 \
--outdir twister-out --no-clean --inline-logs \
--enable-size-report --platform-reports \
--alt-config-root bridle/zephyr/alt-config/tests \
--integration --no-detailed-test-id \
--testsuite-root bridle/tests \
--testsuite-root zephyr/tests \
--tag bridle \
--tag zephyr

- name: Upload integration test results
uses: actions/upload-artifact@v4
with:
name: twister-tests.xml
path: workspace/twister-out/twister.xml

- name: Convert integration test reports to annotations
uses: mikepenz/action-junit-report@v4
with:
check_name: twister-report (tests)
report_paths: "**/twister-out/twister.xml"
require_tests: true
fail_on_failure: false
if: always()

qa-shield-integration:
name: Run integration tests for shields
if: github.repository_owner == 'tiacsys'
Expand Down Expand Up @@ -361,7 +475,7 @@ jobs:
--enable-size-report --platform-reports \
--device-testing --hardware-map ${HARDWARE_MAP} \
--extra-args SHIELD="loopback_test_tmph" \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root bridle/tests \
--testsuite-root zephyr/tests \
--tag bridle \
Expand Down
6 changes: 3 additions & 3 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_MAJOR = 3
VERSION_MINOR = 6
PATCHLEVEL = 99
VERSION_MINOR = 7
PATCHLEVEL = 0
VERSION_TWEAK = 0
EXTRAVERSION =
EXTRAVERSION = rc1
2 changes: 1 addition & 1 deletion boards/tiac/magpie_f777ni/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ with a single call to Twister.
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--extra-args SHIELD="loopback_test_tmph" \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root bridle/tests \
--testsuite-root zephyr/tests \
--tag arm --tag vector_relay \
Expand Down
2 changes: 1 addition & 1 deletion boards/tiac/magpie_f777ni/doc/tests/arch/arm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Building and Running
--verbose --jobs 4 --inline-logs \
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag arm --tag vector_relay

.. group-tab:: Results
Expand Down
2 changes: 1 addition & 1 deletion boards/tiac/magpie_f777ni/doc/tests/drivers/adc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Building and Running
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--extra-args SHIELD="loopback_test_tmph" \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag adc

.. group-tab:: Results
Expand Down
2 changes: 1 addition & 1 deletion boards/tiac/magpie_f777ni/doc/tests/drivers/can.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Building and Running
--verbose --jobs 4 --inline-logs \
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag can

.. group-tab:: Results
Expand Down
2 changes: 1 addition & 1 deletion boards/tiac/magpie_f777ni/doc/tests/drivers/counter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Building and Running
--verbose --jobs 4 --inline-logs \
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag counter

.. group-tab:: Results
Expand Down
4 changes: 2 additions & 2 deletions boards/tiac/magpie_f777ni/doc/tests/drivers/entropy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Drivers
--verbose --jobs 4 --inline-logs \
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag entropy

.. group-tab:: Results
Expand Down Expand Up @@ -91,7 +91,7 @@ Cryptography
--verbose --jobs 4 --inline-logs \
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag random

.. group-tab:: Results
Expand Down
2 changes: 1 addition & 1 deletion boards/tiac/magpie_f777ni/doc/tests/drivers/gpio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Building and Running
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--extra-args SHIELD="loopback_test_tmph" \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag gpio

.. group-tab:: Results
Expand Down
2 changes: 1 addition & 1 deletion boards/tiac/magpie_f777ni/doc/tests/drivers/hwinfo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Building and Running
--verbose --jobs 4 --inline-logs \
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag hwinfo

.. group-tab:: Results
Expand Down
2 changes: 1 addition & 1 deletion boards/tiac/magpie_f777ni/doc/tests/drivers/i2c.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Building and Running
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--extra-args SHIELD="loopback_test_tmph" \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag i2c

.. group-tab:: Results
Expand Down
2 changes: 1 addition & 1 deletion boards/tiac/magpie_f777ni/doc/tests/drivers/pwm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Building and Running
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--extra-args SHIELD="loopback_test_tmph" \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag pwm

.. group-tab:: Results
Expand Down
2 changes: 1 addition & 1 deletion boards/tiac/magpie_f777ni/doc/tests/drivers/spi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Building and Running
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--extra-args SHIELD="loopback_test_tmph" \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag spi

.. group-tab:: Results
Expand Down
2 changes: 1 addition & 1 deletion boards/tiac/magpie_f777ni/doc/tests/drivers/uart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Building and Running
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--extra-args SHIELD="loopback_test_tmph" \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag uart

.. group-tab:: Results
Expand Down
2 changes: 1 addition & 1 deletion boards/tiac/magpie_f777ni/doc/tests/drivers/watchdog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Building and Running
--verbose --jobs 4 --inline-logs \
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag watchdog

.. group-tab:: Results
Expand Down
2 changes: 1 addition & 1 deletion boards/tiac/magpie_f777ni/doc/tests/os/bridle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Building and Running
--verbose --jobs 4 --inline-logs \
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root bridle/tests --tag bridle

.. group-tab:: Results
Expand Down
2 changes: 1 addition & 1 deletion boards/tiac/magpie_f777ni/doc/tests/os/kernel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Building and Running
--verbose --jobs 4 --inline-logs \
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--alt-config-root bridle/zephyr/alt-config \
--alt-config-root bridle/zephyr/alt-config/tests \
--testsuite-root zephyr/tests --tag kernel --exclude-tag security

.. group-tab:: Results
Expand Down
16 changes: 15 additions & 1 deletion doc/bridle/releases/release-notes-3.7.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ For more details, see: :ref:`repos_and_revs`.
* - `tiac-bridle`_
-
- v3.7-branch
- v3.7.0
- v3.7.0-rc1
* - | `tiac-ubxlib`_
| (`u-blox-ubxlib`_)
- | *geographiclib*
Expand All @@ -49,10 +49,12 @@ For more details, see: :ref:`repos_and_revs`.
| *openthread*
| *picolibc*
| **hal** : *cmsis*
| **hal** : *hal_adi*
| **hal** : *hal_altera*
| **hal** : *hal_ambiq*
| **hal** : *hal_atmel*
| **hal** : *hal_espressif*
| **hal** : *hal_ethos_u*
| **hal** : *hal_gigadevice*
| **hal** : *hal_infineon*
| **hal** : *hal_intel*
Expand All @@ -69,6 +71,7 @@ For more details, see: :ref:`repos_and_revs`.
| **hal** : *hal_stm32*
| **hal** : *hal_telink*
| **hal** : *hal_ti*
| **hal** : *hal_wurthelektronik*
| **hal** : *hal_xtensa*
| **hal** : *libmetal*
| **fs** : *fatfs*
Expand Down Expand Up @@ -210,6 +213,16 @@ Take over the new build principles from Zephyr:
* use Bridle's ``.gitlint``
* use Bridle's ``.yamllint``

* Add more Zephyr upstream projects to West submanifest as needed by Zephyr
upstream test suites:

* HAL modules for: Analog Devices (formerly Maxim)
* HAL modules for: Arm Ethos-U NPUs
* HAL modules for: Würth Elektronik

* Use the Twister CLI argument ``--alt-config-root`` to reuse Zephyr upstream
test suites for building all drivers together with Bridle's own snippets.

Documentation
=============

Expand All @@ -225,6 +238,7 @@ Issue Related Items

These GitHub issues were addressed since project bootstrapping:

* :github:`254` - [FCR] Bump to Zephyr v3.7
* :github:`252` - [FCR] Upgrade to Zephyr SDK 0.16.8
* :github:`244` - [HW] Spotpear Raspberry Pi Pico LCD Modules as Shields
* :github:`242` - [HW] 52Pi (GeeekPi) Pico Breadboard Kit -/Plus (EP-0164/0172)
Expand Down
4 changes: 3 additions & 1 deletion doc/versions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"VERSIONS": [
"latest",
"3.7",
"3.7.0-rc1",
"3.6",
"3.6.0",
"3.5",
Expand Down Expand Up @@ -29,7 +31,7 @@
"COMPONENTS_BY_VERSION": {
"latest": {
"bridle": "3.6.99",
"zephyr": "3.6.99"
"zephyr": "3.7.0"
},
"3.6": {
"bridle": "3.6.0",
Expand Down
Loading
Loading