[Teammetrics-discuss] Finding out which VCS a team is using.

Sukhbir Singh sukhbir.in at gmail.com
Thu Jul 14 19:49:46 UTC 2011


Hi,

repository.update() [notice: commitstat.py and repository/gitstat.py]

If you see the latest commit, I have added support for detection of
VCS and then automatically calling the respective Git or SVN
statistics generator. It is working perfectly for Git :-) We also have
one relation for all VCS as desired by you, with an extra 'vcs' field.

I will add SVN support tomorrow. Now I am feeling confident about our
approach because we have properly identified the repositories.

A lot of time was wasted suppressing the logging output paramiko
generates as it pollutes our log and I can't find any way to suppress
it other than using WARNING as the default level for all our INFO
messages which I don't want to. I even asked in IRC and they have no
suggestion about this. If you want to test it, change line 25 to some
local path so you don't require root permissions. Also, run
archives.sql as the schema has changed.

Here is what I am talking about:

2011-07-15 01:04:06,456 INFO: 		Starting CommitStat
2011-07-15 01:04:06,456 INFO: Measuring performance of 2 teams
2011-07-15 01:04:07,519 INFO: Connected (version 2.0, client OpenSSH_5.5p1)
2011-07-15 01:04:09,712 INFO: Authentication (publickey) successful!
2011-07-15 01:04:09,737 INFO: Connection to Alioth successful
2011-07-15 01:04:09,990 INFO: Secsh channel 1 opened.
2011-07-15 01:04:10,632 INFO: Secsh channel 2 opened.
2011-07-15 01:04:11,213 INFO: There are 1 Git repositories
2011-07-15 01:04:11,499 INFO: Secsh channel 3 opened.
2011-07-15 01:04:12,307 INFO: Secsh channel 4 opened.
2011-07-15 01:04:13,489 INFO: Secsh channel 5 opened.
2011-07-15 01:04:14,637 INFO: Secsh channel 6 opened.
2011-07-15 01:04:16,062 INFO: Secsh channel 7 opened.

For every channel it opens, a log entry is made -- "Secsh channel X
opened". On 'teammetrics' Git repository, it made 150 log entries.
This is unacceptable. The only way to fix this as of now is to set the
level to WARNING. So the first two lines will look like:

2011-07-15 01:04:06,456 WARNING: 		Starting CommitStat
2011-07-15 01:04:06,456 WARNING: Measuring performance of 2 teams

Which I don't like, since these are not warnings but information. So I
am going to spend some more time investigating this, possibly getting
in touch with the paramiko author. If you have suggestions, please
feel free to contribute.

If all fails, I am going to write a script that clears these 'Secsh' lines :-)

PS: Please create a copy of the file and don't use the one in the Git
repository, just to be sure again.



More information about the Teammetrics-discuss mailing list