mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-09-14 12:25:34 +00:00
Integrate ExpressLRS TX module support and its stacked ESP32 heap changes. Use the approved Linkflow calibration (17-30 dBm), preserve the PA drive and output path after radio recovery, and keep LoRa OTA enabled. Preserve stored ACLs and filters on allocation failure, release owned client/filter buffers, service heap OTA contexts on Companions, release self-serving workspaces after TempRadio, and reset staged-resume state when a context is released. Keep manual staging and active operations alive. Account for all moved allocations in the runtime RAM gate. Validation: 1,393 native cases; radio-power, heap-context, ACL persistence, shared-queue transfer, display/inbox, radio receive, and memory regressions. Firmware builds passed for Linkflow, Heltec V2 Companion, T-Beam MQTT repeater, Heltec V4 R8 MQTT repeater, RAK4631 repeater, and Indicator Full. Physical verification awaits access to the currently offline lab Pi.
130 lines
4.8 KiB
YAML
130 lines
4.8 KiB
YAML
name: Run Unit Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
- keymindCascade
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
bootloader-version:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone Repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.13'
|
|
|
|
- name: Verify bootloader version regressions without hardware or downloads
|
|
run: python3 -B test/test_nrf52_bootloader_version.py -v
|
|
|
|
- name: Install signed-package verification dependency
|
|
run: python3 -m pip install cryptography
|
|
|
|
- name: Verify old-firmware compatibility in both OTA launchers
|
|
run: python3 -B -m unittest discover -s tools/lora_ota -p test_lora_ota_bootloader_version.py -v
|
|
|
|
- name: Verify all signed OTAFIX 2.4.6 release images
|
|
env:
|
|
MESHCORE_BOOTLOADER_MOTA_ZIP: ${{ runner.temp }}/OTAFIX-2.4.6-bootloader-mota.zip
|
|
# The test pins the archive SHA-256, verifies every .mota signature,
|
|
# and checks the exact MeshTower V2 SD CRC from the bug report.
|
|
run: |
|
|
curl --fail --location --retry 3 --max-time 120 --output "$MESHCORE_BOOTLOADER_MOTA_ZIP" \
|
|
https://github.com/mikecarper/Adafruit_nRF52_Bootloader_OTAFIX/releases/download/0.11.0-OTAFIX2.4.6/OTAFIX-2.4.6-bootloader-mota.zip
|
|
python3 -B test/test_nrf52_bootloader_version.py -v
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Clone Repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Build Environment
|
|
uses: ./.github/actions/setup-build-environment
|
|
|
|
- name: Verify ArduinoJson pin
|
|
run: |
|
|
python3 -B scripts/check_arduinojson_pin.py --self-test
|
|
python3 -B scripts/check_arduinojson_pin.py
|
|
|
|
- name: Run Unit Tests
|
|
run: pio test -e native -e native_kiss_modem -vv
|
|
|
|
- name: Verify receive recovery and pinned radio status transport
|
|
run: |
|
|
python3 -B test/test_radio_receive_contract.py
|
|
python3 - <<'PY'
|
|
from pathlib import Path
|
|
import re
|
|
import subprocess
|
|
dependency = re.search(r'https://github.com/jgromes/RadioLib.git#[0-9a-f]{40}',
|
|
Path('platformio.ini').read_text()).group(0)
|
|
Path('.pio/libdeps/radio-status-test').mkdir(parents=True, exist_ok=True)
|
|
subprocess.run(['pio', 'pkg', 'install', '--global', '--library', dependency,
|
|
'--storage-dir', '.pio/libdeps/radio-status-test'], check=True)
|
|
PY
|
|
python3 -B test/test_sx126x_receive_mode.py
|
|
|
|
- name: Verify ESP32 static DRAM budget
|
|
run: |
|
|
python3 -B test/test_esp32_dram.py
|
|
python3 -B test/test_elrs_power.py
|
|
python3 -B test/test_ota_heap_context.py
|
|
python3 -B test/test_client_acl_spiffs.py
|
|
|
|
- name: Verify ESP32 USB sleep and G3 button wake
|
|
run: python3 -B test/test_esp32_usb_sleep.py
|
|
|
|
- name: Verify message reader buttons, touch targets, and footer layouts
|
|
working-directory: test
|
|
run: >-
|
|
python3 -B -m unittest
|
|
test_message_navigation test_companion_john test_reader_touch_coordinates
|
|
test_touch_debug_overlay test_touch_debug_cli test_color_theme
|
|
test_indicator_messages_profile test_t096_message_footer_profile
|
|
test_indicator_display_profile test_indicator_render_profile
|
|
test_indicator_exclusive_transport test_companion_transport_selector
|
|
|
|
- name: Verify logging sleep guards and instructions
|
|
run: |
|
|
python3 -B test/test_logging_sleep_contract.py
|
|
node test/test_firmware_picker.js
|
|
|
|
- name: Verify nRF52 UF2-reset CLI coverage
|
|
run: python3 -B test/test_nrf52_uf2reset_cli.py
|
|
|
|
- name: Verify firmware memory budgets and nRF52 Bluetooth startup
|
|
run: |
|
|
python3 -B test/test_firmware_ram.py
|
|
python3 -B test/test_cascade_release_package.py
|
|
python3 -B test/test_t096_full_memory.py
|
|
python3 -B test/test_nrf52_ble_startup.py
|
|
python3 -B test/test_nrf52_usb_power.py
|
|
python3 -B test/test_shared_mota_queue.py
|
|
|
|
- name: Verify Companion Bluetooth settings and WebConfig
|
|
run: |
|
|
python3 -B test/test_display_power.py
|
|
python3 -B test/test_companion_inbox.py
|
|
python3 -B test/test_heltec_r8_external_power.py
|
|
python3 -B test/test_bluetooth_mac_contract.py
|
|
python3 -B test/test_companion_settings_persistence_contract.py
|
|
python3 -B test/test_webconfig_ui.py
|
|
python3 -B test/test_webconfig_ui_runtime.py
|
|
|
|
- name: Upload Test Results
|
|
# Upload test results even if the test step failed.
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: test-results
|
|
path: .pio/build/native/
|