DUNE-DAQ / daq-release

Scripts and configuration files for the DUNE DAQ release
https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-release/
2 stars 0 forks source link

Automation of unit tests, linting and clang format checks #405

Open jcfreeman2 opened 3 weeks ago

jcfreeman2 commented 3 weeks ago

At the v5.2 release meeting yesterday Eric mentioned the usefulness of running unit tests and clang format checks automatically. One problem I raised at the time is that the llvm package which is used for clang formatting (and linting) is several gigabytes and therefore, although on /cvmfs, not in the images in which we perform our nightly build. Having said that, there's no reason we couldn't just create a GitHub Action which runs directly on one of our self-hosted runners, sets up a work area, checks out our repos, and then runs dbt-build --unittest --lint, as well as dbt-clang-format.sh. The difficult part here would be figuring out how best to report the results, beyond just going through the full log of the output.