[JIRA] (JENKINS-60944) Add runtime of miner to RepositoryStatistics

14 views
Skip to first unread message

ullrich.hafner@gmail.com (JIRA)

unread,
Feb 2, 2020, 3:36:03 PM2/2/20
to jenkinsc...@googlegroups.com
Ulli Hafner created an issue
 
Jenkins / New Feature JENKINS-60944
Add runtime of miner to RepositoryStatistics
Issue Type: New Feature New Feature
Assignee: Ulli Hafner
Components: forensics-api-plugin, git-forensics-plugin
Created: 2020-02-02 20:35
Priority: Minor Minor
Reporter: Ulli Hafner

Currently, the GitRepositoryMiner logs the runtime of the mining process to the console log only:

[Forensics] Creating SCM miner to obtain statistics for affected repository files
[Forensics] -> Git miner successfully created in working tree '/var/data/workspace/Forensics'
[Forensics] Analyzing the commit log of the Git repository '/var/data/workspace/Forensics'
[Forensics] -> created report for 697 files in 41 seconds

It would be nice if this information would be stored in the RepositoryStatistics instance as well. This feature should require a change in the model object only. Steps to do:

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

ullrich.hafner@gmail.com (JIRA)

unread,
Feb 2, 2020, 3:37:03 PM2/2/20
to jenkinsc...@googlegroups.com
Ulli Hafner assigned an issue to Unassigned
Change By: Ulli Hafner
Assignee: Ulli Hafner

ullrich.hafner@gmail.com (JIRA)

unread,
Feb 2, 2020, 3:38:02 PM2/2/20
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
Currently, the {{GitRepositoryMiner}} logs the runtime of the mining process to the console log only:

{noformat}

[Forensics] Creating SCM miner to obtain statistics for affected repository files
[Forensics] -> Git miner successfully created in working tree '/var/data/workspace/Forensics'
[Forensics] Analyzing the commit log of the Git repository '/var/data/workspace/Forensics'
[Forensics] -> created report for 697 files in 41 seconds
{noformat}


It would be nice if this information would be stored in the {{RepositoryStatistics}} instance as well. This feature should require a change in the model object only. Steps to do:
- Record the current time stamp (see https://github.com/jenkinsci/git-forensics-plugin/blob/master/src/main/java/io/jenkins/plugins/forensics/git/miner/GitRepositoryMiner.java#L54) when the {{RepositoryStatistics}} instance is created (constructor)
- Update the total runtime whenever a new modifying operation has been invoked on the instance
(all {{add*}} methods)

ullrich.hafner@gmail.com (JIRA)

unread,
Feb 2, 2020, 3:40:02 PM2/2/20
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
Currently, the {{ [ GitRepositoryMiner |https://github.com/jenkinsci/git-forensics-plugin/blob/master/src/main/java/io/jenkins/plugins/forensics/git/miner/GitRepositoryMiner.java] }} logs the runtime of the mining process to the console log only:


{noformat}
[Forensics] Creating SCM miner to obtain statistics for affected repository files
[Forensics] -> Git miner successfully created in working tree '/var/data/workspace/Forensics'
[Forensics] Analyzing the commit log of the Git repository '/var/data/workspace/Forensics'
[Forensics] -> created report for 697 files in 41 seconds
{noformat}

It would be nice if this information would be stored in the {{ [ RepositoryStatistics |https://github.com/jenkinsci/forensics-api-plugin/blob/master/src/main/java/io/jenkins/plugins/forensics/miner/RepositoryStatistics.java] }} instance as well. This feature should require a change in the model object only. Steps to do:
- Record the current time stamp (see https://github.com/jenkinsci/git-forensics-plugin/blob/master/src/main/java/io/jenkins/plugins/forensics/git/miner/GitRepositoryMiner.java#L54) when the {{
[ RepositoryStatistics |https://github.com/jenkinsci/forensics-api-plugin/blob/master/src/main/java/io/jenkins/plugins/forensics/miner/RepositoryStatistics.java] }} instance is created (constructor)

- Update the total runtime whenever a new modifying operation has been invoked on the instance (all {{add*}} methods)

ullrich.hafner@gmail.com (JIRA)

unread,
Feb 2, 2020, 3:40:02 PM2/2/20
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
Change By: Ulli Hafner
Labels: newbie-friendly

ullrich.hafner@gmail.com (JIRA)

unread,
Feb 2, 2020, 3:43:03 PM2/2/20
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
Currently, the {{[GitRepositoryMiner|https://github.com/jenkinsci/git-forensics-plugin/blob/master/src/main/java/io/jenkins/plugins/forensics/git/miner/GitRepositoryMiner.java]}} logs the runtime of the mining process to the console log only:

{noformat}
[Forensics] Creating SCM miner to obtain statistics for affected repository files
[Forensics] -> Git miner successfully created in working tree '/var/data/workspace/Forensics'
[Forensics] Analyzing the commit log of the Git repository '/var/data/workspace/Forensics'
[Forensics] -> created report for 697 files in 41 seconds
{noformat}

It would be nice if this information would be stored in the {{[RepositoryStatistics|https://github.com/jenkinsci/forensics-api-plugin/blob/master/src/main/java/io/jenkins/plugins/forensics/miner/RepositoryStatistics.java]}}  instance as well. This feature should require a change in the model object only. Steps to do:

- Update the total runtime whenever a new modifying operation has been invoked on the instance (all {{add

giulia.delbravo@gmx.de (JIRA)

unread,
Mar 14, 2020, 11:45:02 AM3/14/20
to jenkinsc...@googlegroups.com
Giulia Del Bravo assigned an issue to Giulia Del Bravo
Change By: Giulia Del Bravo
Assignee: Giulia Del Bravo
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

giulia.delbravo@gmx.de (JIRA)

unread,
Mar 14, 2020, 11:46:02 AM3/14/20
to jenkinsc...@googlegroups.com
Giulia Del Bravo started work on New Feature JENKINS-60944
 
Change By: Giulia Del Bravo
Status: Open In Progress
Reply all
Reply to author
Forward
0 new messages