-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add clang tidy workflow #1031
base: main
Are you sure you want to change the base?
Add clang tidy workflow #1031
Conversation
@vgvassilev I got the workflow to start, but it couldn't complete as it couldn't find header files (I believe this may be fixed with the bash set_conda_env_vars.sh command). Can you approve the workflow to run so I can see if this fixes it? |
@anigamova can you point me to the instructions on how to compile using Conda? I get the following error trying to add in the clang tidy workflow
Do I need to pass an option to cmake so it can find the compilation database? |
@anigamova @vgvassilev I realised this wasn't the error I needed to fix. I forgot to install wget to able to download micromamba. Are you able to approval it for the workflow to run? |
I can't, it's @anigamova's land ;) |
https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/actions/runs/12089671964/job/33717942489?pr=1031#step:7:932 - Not entirely sure what has gone wrong here in activating the conda environment. Will investigate tomorrow. For reference here is the same point in the xeus-cpp clang tidy workflow, which also using a conda environment - https://github.com/compiler-research/xeus-cpp/actions/runs/12087483631/job/33709016293?pr=188#step:6:790 |
Maybe it needs to be merged to be able to comment… |
@vgvassilev no that's not the issue. If you look at the output from the clang tidy review workflow running at the moment it fails on the following line To look at the failure message expand the part of the workflow called run clang-tidy, and then expand this section (line 134 of the run clang-tidy part of the workflow)
|
@anigamova can you approve the workflow run? |
1 similar comment
@anigamova can you approve the workflow run? |
@anigamova I have put in a debug commit to try and see exactly what is the line of the script it is complaining about. |
@anigamova I think the issue at the moment is the warning about gcc already being present in the environment, so I am trying to remove it before we create and activate the environment. |
@vgvassilev @anigamova After some debugging (effectively have to just avoid trying to activate the created environment in this workflow for some unknown reason) I finally got something which would start installing the necessary packages to build this repo, but the ROOT it installs is missing a particular component.
What do I need to add to get this component of ROOT? |
That's back to @guitargeek... |
@guitargeek ping (about the RooFitHS3 question) |
@vgvassilev here is the PR to try and add the clang tidy workflow to this repo. Can you activate the workflow to see whether it works?