-
New Feature
-
Resolution: Fixed
-
Minor
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:
- Record the current time stamp (see GitRepositoryMiner) 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)
- Visualize the total time in the user interface
[JENKINS-60944] Add runtime of miner to RepositoryStatistics
Rank | New: Ranked higher |
Assignee | Original: Ulli Hafner [ drulli ] |
Description |
Original:
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 instance is created - Update the total runtime whenever a new modifying operation has been invoked on the instance |
New:
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) |
Description |
Original:
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) |
New:
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) |
Labels | New: newbie-friendly |
Description |
Original:
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) |
New:
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 {{[GitRepositoryMiner|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) - Visualize the total time in the [user interface|https://github.com/jenkinsci/forensics-api-plugin/blob/master/src/main/resources/io/jenkins/plugins/forensics/miner/ForensicsBuildAction/summary.jelly] |
Rank | New: Ranked higher |
Assignee | New: Giulia Del Bravo [ rathaya ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |