Parallelize Inspections Analysis
Inspection Analysis in our project (https://teamcity.jetbrains.com/project.html?projectId=OpenSourceProjects_Druid&tab=projectOverview) is very slow. Is it possible to parallelize it, e. g. by creating two independent inspection profile xml files, splitting inspections evenly between them, and telling TeamCity to use just one inspection profile in one build, and another profile in another build?
Please sign in to leave a comment.
Hi Roman,
if you are able to separate it in two then it should be possible to parallelize them. I can't really say how much it would improve in processing time, as it depends on the project itself, but you are welcome to test it.
The problem is that I don't know how to setup TeamCity inspections build to run non-default (i. e. that is not specified as PROJECT_PROFILE in profile_settings.xml) inspection profile. If I want to split inspections between with two separate profiles, one of them will inevitably be non-default.
https://confluence.jetbrains.com/display/TCD10/Inspections#Inspections-InspectionParameters
As you can see, the inspection build step allows you to specify the inspection profile name that you want to run, leaving it empty for the default, so that should be possible.