Commit Graph

173 Commits

Author SHA1 Message Date
Andrew Tridgell 591d65ec91 CI: fix ESP32 CI issue
ensure apt db is up to date before first install
2024-02-25 17:16:46 +11:00
Dr.-Ing. Amilcar do Carmo Lucas b6b4c972f9 Tools: Script to fetch online ArduPilot parameter documentation (if not cached) and
add it to the specified file or to all *.param and *.parm files in the specified directory.

1. Checks if a local cache of the XML file exists in the target directory or on the directory of the target file:
 - If it does, the script loads the file content.
 - If it doesn't, the script sends a GET request to the URL to fetch the XML data for the requested vehicle type.
2. Parses the XML data and creates a dictionary of parameter documentation.
3. DELETES all comments that start at the beginning of a line
4. Adds the parameter documentation to the target file or to all *.param,*.parm files in the target directory.

Supports AP_Periph, AntennaTracker, ArduCopter, ArduPlane, ArduSub, Blimp, Heli, Rover and SITL vehicle types
Supports both Mission Planner and MAVProxy file formats
Supports sorting the parameters
Has unit tests with 88% coverage

AP_FLAKE8_CLEAN

Author: Amilcar do Carmo Lucas, IAV GmbH

# Conflicts:
#	.github/workflows/test_unit_tests.yml
2024-02-22 08:31:57 +11:00
Dr.-Ing. Amilcar do Carmo Lucas 74640c9e65 Tools: Extracts parameter default values from an ArduPilot .bin file.
Supports Mission Planner, MAVProxy and QGCS file format output

Contains unittests with 95% coverage

Amilcar do Carmo Lucas, IAV GmbH
2024-02-21 18:24:16 +11:00
Andrew Tridgell eaf40fbfb3 waf: help diagnose dronecangen errors 2024-02-11 16:48:52 +11:00
Pierre Kancir e728176d4e .github: Autotest build need debug flag, rover also need enable-math-check-indexes. Fix caching 2024-02-10 11:48:40 +11:00
David Buzz cd44d09d84 github: actions problem solvers , annotations and summary 2024-01-16 13:43:06 +11:00
Peter Barker 48b555f8e6 .github: rename sim_periph_gps to sim_gps_universal, recreate sim_periph_gps 2024-01-16 12:16:35 +11:00
Andrew Tridgell 2e8be66353 CI: added Pixhawk6X-PPPGW to CI builds 2024-01-12 19:06:49 -08:00
Andrew Tridgell 40e9b94f58 CI: test sim-on-hw build in CI 2024-01-07 20:51:55 +11:00
David Buzz 5560bd8ed8 esp32 CI typo, sorry tridge 2024-01-07 16:30:21 +11:00
David 'Buzz' Bussenschutt 03d25708ff Tools: fix esp32 build to use python 3.11 2024-01-07 08:32:44 +11:00
David 'Buzz' Bussenschutt 6d4747a38c Tools: fix esp32 CI build
install gevent as a package first seems to allow it to avoid issues.
also 3.11 is reqd, and 3.10 usn't good enough.
2024-01-07 08:09:21 +11:00
Andrew Tridgell f4e731781d CI: debug ppp install 2024-01-03 12:14:47 +11:00
Andrew Tridgell eb6c62f319 CI: added CubeOrange-PPP build test 2024-01-03 12:14:47 +11:00
Andrew Tridgell 39f029d60b CI: install ppp for rover test 2024-01-03 12:14:47 +11:00
Ka Ru c5b9f5051f CI: build can-zero board 2023-12-05 07:41:06 -06:00
Peter Barker 96ede5524c .github: clamp empy to version 3
API and syntax hanges make 4 problematic
2023-12-03 17:08:00 +11:00
Ryan Friedman bf6bd3a023 .github: Enable colcon tests in DDS CI
* Use checkout v4 to pull in ArduPilot into a subdir first
* Enable console cohesion during test since JUnit reporting is out of
  scope
* Install mavproxy separately as needed, alternative to --console
* Hide wget progress
* Install local pymavlink

Co-authored-by: Pierre Kancir <khancyr@gmail.com>
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-11-26 10:36:20 +11:00
Pierre Kancir 879937fffe .github: update actions/checkout to v4 2023-11-22 18:32:19 +11:00
Pierre Kancir aeed2c113c .github: move containers to v0.1.3 to include latest python stuff 2023-11-22 18:32:19 +11:00
Pierre Kancir 63a836e013 .github: move containers to v0.1.1 to include junitparser 2023-11-22 18:32:19 +11:00
Peter Barker 816adbf820 github: test mantic not bionic
bionic no longer builds  SITL:
../../libraries/AP_Logger/AP_Logger_Backend.cpp: In member function 'bool AP_Logger_Backend::Write_VER()':
../../libraries/AP_Logger/AP_Logger_Backend.cpp:577:5: sorry, unimplemented: non-trivial designated initializers not supported
     };
     ^
compilation terminated due to -Wfatal-errors.
2023-10-16 09:12:42 +11:00
Michelle Rossouw e9331827ac .github: Add KakuteF7 and MatekH743-bdshot boards to test size boards 2023-10-01 16:36:56 +11:00
Pierre Kancir 765ac299e7 .github: as per archlinux wiki don't do partial upgrade
https://wiki.archlinux.org/title/System_maintenance#Upgrading_the_system
2023-09-07 07:48:31 +10:00
Pierre Kancir d620a1905a .github: use ubuntu-22.04 instead of ubuntu-latest 2023-09-07 07:48:31 +10:00
Pierre Kancir 35b2463069 .github: migrate to docker container based on 22.04 2023-09-07 07:48:31 +10:00
Pierre Kancir c1accc7915 .github: move github action to ubuntu22.04
# Conflicts:
#	.github/workflows/test_scripts.yml
2023-09-07 07:48:31 +10:00
Pierre Kancir f404490a76 .github: remove astyle install as part of docker now 2023-09-07 07:48:31 +10:00
Andrew Tridgell 47eb597dd6 CI: don't load vcan kernel modules
not needed any more
2023-08-29 15:09:48 +10:00
Michelle Rossouw 1d138c7630 .github: Add Blimp autotest to github workflows 2023-08-26 22:21:59 +10:00
Andy Piper cfd03aace7 github: reduce ccache percentage to allow tests to pass 2023-08-23 18:25:26 +10:00
Pierre Kancir 17b1a4c387 .github: don't tests everyting for environment tests workflow change 2023-08-23 17:15:56 +10:00
Pierre Kancir f7ddb69367 .github: fix environement test workflow 2023-08-23 17:15:56 +10:00
Pierre Kancir 2b8a605fd2 Tools: use venv on Archlinux to fix install 2023-08-23 17:15:56 +10:00
Andy Piper 0d7fbc7bf3 github: change ccache board comparisons 2023-08-15 06:53:48 +10:00
Peter Barker 6429295869 github: remove elf_diff from checks we run
We had previous discussed removing this as it was very-little-used.

Today this workflow died because elf_diff failed to install:

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.8/dist-packages/elf_diff/__main__.py", line 23, in <module>
    from elf_diff.pair_report_document import generateDocument, ValueTreeNode
  File "/usr/local/lib/python3.8/dist-packages/elf_diff/pair_report_document.py", line 34, in <module>
    import elf_diff.binary as binary
  File "/usr/local/lib/python3.8/dist-packages/elf_diff/binary.py", line 27, in <module>
    from elf_diff.instruction_collector import InstructionCollector
  File "/usr/local/lib/python3.8/dist-packages/elf_diff/instruction_collector.py", line 28, in <module>
    import progressbar  # type: ignore # Make mypy ignore this module
  File "/usr/local/lib/python3.8/dist-packages/progressbar/__init__.py", line 5, in <module>
    from .bar import DataTransferBar
  File "/usr/local/lib/python3.8/dist-packages/progressbar/bar.py", line 13, in <module>
    from python_utils import types
  File "/usr/local/lib/python3.8/dist-packages/python_utils/__init__.py", line 1, in <module>
    from . import (
  File "/usr/local/lib/python3.8/dist-packages/python_utils/aio.py", line 8, in <module>
    from . import types
  File "/usr/local/lib/python3.8/dist-packages/python_utils/types.py", line 4, in <module>
    from typing_extensions import *  # type: ignore  # noqa: F403
ModuleNotFoundError: No module named 'typing_extensions'
2023-05-29 16:47:35 +10:00
Pierre Kancir cc563a6562 .github: fix coverage test 2023-05-24 17:56:58 +10:00
Pierre Kancir 47f8694a6e .github: use fixed revision for docker dev containers 2023-05-18 07:53:52 +10:00
Pierre Kancir c82ebe6e22 .github: add more blacklist for all tests. 2023-05-17 18:36:06 +10:00
Iampete1 6bba31642e Actions: test_size: fix elf diff for vehicles 2023-05-09 11:12:25 +10:00
Andrew Tridgell ed6352f8c0 github: disable py2 testing 2023-05-05 08:54:03 +10:00
Peter Barker a7a6333dea .github: add env test for lunar 2023-05-03 17:13:20 +10:00
bugobliterator 105bfe4cbc .github: add CubeRedPrimary bootloader build test 2023-04-26 18:04:00 +10:00
Andrew Tridgell 50cff80c6e waf: stop testing gcc 6 for ChibiOS builds 2023-04-25 11:29:28 +10:00
Peter Barker 9c64245590 .github: add DrotekP3Pro bootloader to CI
overflowed and we didn't know about it
2023-04-19 19:05:14 +10:00
Peter Barker cdb4012886 Tools: enforce astyle formatting in AP_DDS 2023-04-07 18:21:14 +10:00
Pierre Kancir 0fdb1eb8a7 .github: replace testing of Hirsute by Jammy
Hirsute is OEL and don't work for long time
Jammy is 22.04 and should be properly tested
2023-03-24 10:55:35 +11:00
Pierre Kancir d05b598ce5 .github: add dds testing workflow
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Co-authored-by: Pierre Kancir <pierre.kancir.emn@gmail.com>
2023-03-22 09:22:36 +11:00
Ryan Friedman f604dd5cdf Tools: CI: Add building DDS to a STM32H7 board
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-03-22 09:22:36 +11:00
Pierre Kancir 087770f718 .github: add GH cache cleanup on PR close.
Taken from https://docs.github.com/en/actions/using-workflows/caching-depehttps://github.com/actions/cache/blob/main/tips-and-workarounds.md#force-deletion-of-caches-overriding-default-cache-eviction-policy
2023-03-21 09:14:30 +11:00