-
Notifications
You must be signed in to change notification settings - Fork 0
Add Multi-Board Treadmill Descriptors & BLE Advertise+Scan Test #17
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
Closed
Closed
Changes from 25 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
7af45c3
Multi-Board Treadmill Descriptors & BLE Advertise+Scan Test init
charles37 de736f2
Enhanced BLE Advertising Scanning Test
charles37 54a7f6a
ble workflow
charles37 36b4627
Merge branch 'main' into dev/mult-board-treadmill
charles37 d27c661
change workflow to trigger on commit to dev/multi-board-treadmill
charles37 9a798a4
Merge branch 'dev/mult-board-treadmill' of https://github.com/tock/to…
charles37 f89516a
change workflow for board path modifications
charles37 07168d3
modify start path for testing script
charles37 3babc3d
test commit
charles37 5b4cd0b
change workflow for board path modifications
charles37 ceae7a8
test commit with ls for debug
charles37 43abda4
test
charles37 63e17f4
test commit
charles37 0bb9b25
test commit
charles37 93bdd4f
test commit
charles37 a57f4ba
correct paths
charles37 9dfbb12
test
charles37 c4988b3
test
charles37 be1c21f
test commit
charles37 8d91f3c
test commit for logging
charles37 90492c4
finally fixed
charles37 5364663
fix faulty condition
charles37 46223df
test commit
charles37 726ed35
test commit
charles37 f1e46e7
test commit final
charles37 72863ad
fix test
charles37 1f90a9a
finally fixed this test
charles37 2614b9d
test
charles37 1d6e2b5
new manufacturer specific header check
charles37 b044856
remove manual tockloader install
charles37 022df4f
add tockloader back to requirements.txt
charles37 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Licensed under the Apache License, Version 2.0 or the MIT License. | ||
# SPDX-License-Identifier: Apache-2.0 OR MIT | ||
# Copyright Tock Contributors 2024. | ||
# This workflow contains Treadmill-based hardware CI for nightly BLE testing. | ||
# | ||
# Treadmill is a distributed hardware testbed developed within the Tock OS | ||
# project. For more information on Treadmill, have a look at its documentation | ||
# [1] or repository [2]. | ||
# | ||
# This workflow specifically targets BLE advertising and scanning tests on multiple | ||
# boards attached to a specific supervisor. | ||
# | ||
# [1]: https://book.treadmill.ci/ | ||
# [2]: https://github.com/treadmill-tb/treadmill | ||
# [3]: https://book.treadmill.ci/user-guide/github-actions-integration.html | ||
# TEST | ||
name: treadmill-ci-ble-test | ||
env: | ||
TERM: xterm # Makes tput work in actions output | ||
# Controls when the action will run. | ||
on: | ||
# Manual trigger | ||
workflow_dispatch: | ||
inputs: | ||
tock-kernel-ref: | ||
description: 'Ref (revision/branch/tag) of the upstream Tock repo to test' | ||
required: true | ||
default: 'master' | ||
libtock-c-ref: | ||
description: 'Ref (revision/branch/tag) of the upstream libtock-c repo to test' | ||
required: true | ||
default: 'master' | ||
# Add push trigger for your branch | ||
push: | ||
branches: | ||
- dev/mult-board-treadmill | ||
permissions: | ||
contents: read | ||
jobs: | ||
prepare-ble-test: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
# This is a fixed list containing just the BLE advertising and scanning test | ||
hwci-tests-json: ${{ steps.prepare-test.outputs.hwci-tests-json }} | ||
steps: | ||
- name: Prepare BLE test | ||
id: prepare-test | ||
run: | | ||
# Instead of analyzing changes, we specifically select the BLE test | ||
echo 'hwci-tests-json=["tests/ble_advertising_scanning_test.py"]' >> "$GITHUB_OUTPUT" | ||
echo "Selected test: tests/ble_advertising_scanning_test.py" | ||
run-treadmill-ci: | ||
needs: [prepare-ble-test] | ||
uses: ./.github/workflows/treadmill-ci.yml | ||
with: | ||
# Only run on a specific repository | ||
repository-filter: 'tock/tock-hardware-ci' | ||
# Provide access to the required Treadmill secrets | ||
job-environment: 'treadmill-ci' | ||
# This workflow tests the tock-hardware-ci scripts itself, so take the | ||
# current GITHUB_SHA: | ||
tock-hardware-ci-ref: ${{ github.sha }} | ||
# Use the provided upstream Tock kernel / userspace components: | ||
tock-kernel-ref: ${{ inputs.tock-kernel-ref }} | ||
libtock-c-ref: ${{ inputs.libtock-c-ref }} | ||
# Pass our fixed test JSON | ||
tests-json: ${{ needs.prepare-ble-test.outputs.hwci-tests-json }} | ||
# Specify that this is for the BLE test which needs multiple boards | ||
multi-board: 'true' | ||
supervisor-id: 'fb1384d5-e1a5-469c-beb4-0d4d215c9793' | ||
board-descriptors: >- | ||
board_descriptors/fb1384d5-e1a5-469c-beb4-0d4d215c9793/board-nrf52840dk-001050202501.yml board_descriptors/fb1384d5-e1a5-469c-beb4-0d4d215c9793/board-nrf52840dk-001050244773.yml | ||
secrets: inherit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
model: nrf52840dk | ||
hw_rev: '3.2' | ||
serial_number: 0xfoobar | ||
serial_number: '0679be07-6106-48aa-8057-b1d4f2e18a99' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think |
||
board_module: hwci/boards/nrf52dk.py | ||
features: | ||
ble: true | ||
debugger: jlink | ||
gpio: true | ||
pin_mappings: | ||
P0.13: | ||
io_interface: raspberrypi5gpio | ||
|
@@ -26,11 +30,3 @@ pin_mappings: | |
target_pin_function: BUTTON2 | ||
target_pin_mode: input | ||
target_pin_active: low | ||
P1.01: | ||
io_interface: raspberrypi5gpio | ||
io_pin_spec: 16 | ||
target_pin_function: GPIO0 | ||
P1.02: | ||
io_interface: raspberrypi5gpio | ||
io_pin_spec: 13 | ||
target_pin_function: GPIO1 |
8 changes: 8 additions & 0 deletions
8
board_descriptors/0af84b36-1d44-4e0e-9046-1f3fd8ec1cbf/board-nrf52840dk-SERIAL.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
model: nrf52840dk | ||
serial_number: '0af84b36-1d44-4e0e-9046-1f3fd8ec1cbf' | ||
board_module: boards/nrf52dk.py | ||
host_type: QEMU | ||
features: | ||
ble: true | ||
debugger: jlink | ||
gpio: false |
8 changes: 8 additions & 0 deletions
8
board_descriptors/1bdc10a7-9bea-4da5-9e9c-02c046223dfb/board-nrf52840dk-SERIAL.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
model: nrf52840dk | ||
serial_number: '1bdc10a7-9bea-4da5-9e9c-02c046223dfb' | ||
board_module: hwci/boards/nrf52dk.py | ||
host_type: QEMU | ||
features: | ||
ble: true | ||
debugger: jlink | ||
gpio: false |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add descriptions on what these inputs are for, and their expected format?