In my experience, the clang-format and doxygen tests failed the most in my PRs. These are also the least expensive tests, they execute in the range of seconds, but are last checked. You can reasonally expect that the code compiles, but documentation and code formating are hit and miss, especially when different people have different editors and workflows. This saves a lot of execution time on github and gives the users more immediate feedback: 10 out of 13 minutes are the compilation on different platforms you have to wait for until the it fails on a trivial formating or documentation error
Here is a typical log of the workflow:
Perhaps it is further possible to optimize that by only installing clang-format and doxygen and executing these test before installing platformio (in pre-install), which should shave off some more time. I will look into this in the repo adafruit/ci-arduino, but for the time beeing, please consider accepting this PR.
In my experience, the
clang-format
anddoxygen
tests failed the most in my PRs. These are also the least expensive tests, they execute in the range of seconds, but are last checked. You can reasonally expect that the code compiles, but documentation and code formating are hit and miss, especially when different people have different editors and workflows. This saves a lot of execution time on github and gives the users more immediate feedback: 10 out of 13 minutes are the compilation on different platforms you have to wait for until the it fails on a trivial formating or documentation errorHere is a typical log of the workflow:
Perhaps it is further possible to optimize that by only installing
clang-format
anddoxygen
and executing these test before installingplatformio
(inpre-install
), which should shave off some more time. I will look into this in the repo adafruit/ci-arduino, but for the time beeing, please consider accepting this PR.