Tools: Print the Artistic Style version in CI#32669
Conversation
45b7853 to
a63fd49
Compare
4f97fde to
3ff2176
Compare
|
|
405bb85 to
398d81f
Compare
a60a38c to
48e2a03
Compare
48e2a03 to
1722045
Compare
|
@Ryanf55 the merged uBlox SITL changes - could they cause the test failure in here? https://github.com/ArduPilot/ardupilot/actions/runs/24311650113/job/70986599160?pr=32669 |
I don't see how. I just changed a ternary to if/else. I don't ever set the satellite count to 10 instead of 13. I reproduced the failure locally on I also found it flaky on commit Logs for failed test. DetailsI'll look at this in time for dev call. |
Summary
Tools: Print the Artistic Style version in CI because the local version of
astylematters when running:%
CI_BUILD_TARGET=astyle-cleanliness Tools/scripts/build_ci.shas is done in CI job
test scripts / build (astyle-cleanliness).Printing the
astyleversion helps us understand changes proposed in future pull requests.macOS:
brew install astyledelivers Artistic Style Version 3.6.14.Windows users might get v3.6.2
Linux users will get different versions based on their distro.
ubuntu:24.04: Artistic Style Version 3.1
ubuntu:26.04: Artistic Style Version 3.6.12
Related to:
Classification & Testing (check all that apply and add your own)
description below (e.g. SITL)Description
Modify
Tools/scripts/build_ci.shso thatastyle-cleanlinessraises an error in CI if any files need formatting.Modify
Tools/scripts/run_astyle.py:astyleis a C and C++ formatter, not a Python formatter.astyleversion but suppress all exceptions.The
astyleversion is important to print because Ubuntu 24.04 LTS defaults to Artistic Style 3.1 (January 2018) while this month's Ubuntu 26.04 LTS defaults to Artistic Style 3.6 (August 2024).How was this tested?
code ArduCopter/AP_ExternalControl_Copter.cpp libraries/AP_DDS/AP_DDS_ExternalControl.cppCI_BUILD_TARGET=astyle-cleanliness Tools/scripts/build_ci.shInside the Docker container, run the command:
%
docker run -it -v "$(pwd)":/app ubuntu:24.04%
docker run -it -v "$(pwd)":/app ubuntu:26.04@Ryanf55