Build/Agents statistics proposals/questions

1) Estimated time for build is (in my observation so far) not a weighed value of say the last 10 builds, but rather heavily/only dependent on run time of last build. So if the last build failed, expected time will decrease to a very low and thereby unrealistic value. Could it rather be calculated using weighed statistics (taking different agents "base time" - due to performance differences - into account), going back into time more than now?

2) It seems agents usage statistics is not persisted into database, but only available while TC application is up and running. Restarting TC and/or server resets usage statistics completely - I'd love to have proper statistics going back for say one year.

Regards,

Yann

6 comments

1) Estimated time for build is (in my observation so far) not a weighed value of say the last 10 builds, but rather heavily/only dependent on run time of last build. So if the last build failed, expected time will decrease to a very low and thereby unrealistic value. Could it rather be calculated using weighed statistics (taking different agents "base time" - due to performance differences - into account), going back into time more than now?


Estimated time is calculated as weighted average. The most recent builds take a higher weight. If a build ran on the same agent it weight is multiplied by some constant. It seems that algorithm needs further tuning to be more conservative when build duration decreases.


2) It seems agents usage statistics is not persisted into database, but only available while TC application is up and running. Restarting TC and/or server resets usage statistics completely - I'd love to have proper statistics going back for say one year.


If you mean Statistics subtab on the Agents tab then this statistics is calculated on the base of build history, it should not disappear after server restart.

--
Pavel Sher

0

Thanks, that's good news.

About 2) - I was misguided due to the fact the first days of may were holiday season here in germany, so there was no data to display ;)

0

Hi,
i would like to know is there a way how to get these statistics from TeamCity. I would like to use this information in another application. Is it possible somehow?

Thank you!

0

Hi Jacub

This data cannot be exported directly, but REST API allows to obtain all the required numbers.
A request to /app/rest/builds/ lists build history. Build pages at app/rest/builds/id:n have startDate, finishDate and agent properties.

Michael

0

Hi Michael,
Thank you! Very helpful.

Jakub.

0

Hi Michael,

I realize this is an old post, but can you tell me when finishDate was removed from the build pages you listed? It has startDate but no finishDate. Any ideas how to get that back?

D. Mills

0

Please sign in to leave a comment.