Recently, I needed to gather and display statistics generated by the builds steps.
Using the Build Script Interaction gathering the information was the easy part.
To display them was a bit more work, because I needed to show 3 different statistics on 3 different graphs, with about 20 build variants on every graph. Since Custom Charts can only be configured via XML, I ended up writing a script that run on the TC server, that generates the list of builds by looking for the relevant ones in the data directory, and generate a plugin-settings.xml file for the root project.
The good news is that it works, but there are quit some limitations from my perspective:
- X Axis: it doesn't seem possible to change the X axis. It always shows build numbers. Since on my graphs the builds of several build types are displayed, the X axis is pretty confusing. I actually don't even understand the numbers there.I would like to show dates instead, but that's not possible without averaging the data, which I don't want
- Filtering by branch: when using long-living branches, like maintainance branches, mixing the statistics of all branches on one graph is confusing at best
- Positive integers only: according to the documentation, only positive integers are supported by the "buildStatisticValue" service message. Floats or negative values would be useful too.
- Last by not least: writing XML files to create chart is not really convinient. Not only it's cumbersome to write, but it also requires working directly on the server host
Overall, it looks to me as if the custom statistics are just an lightweight extention of the original TC statistics (duration...), with little long-term view. However, I think it's build statistics are a great feature and they would deserve a bit more attention. Are there any plans in this direction ?
I want to open feature requests, but I am not sure if I should open a single one with all aspects or multiple.
I look forward to hearing feedback, equally from users or JetBrains.