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

          Ulli Hafner created issue -
          Ulli Hafner made changes -
          Rank New: Ranked higher
          Ulli Hafner made changes -
          Assignee Original: Ulli Hafner [ drulli ]
          Ulli Hafner made changes -
          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)
          Ulli Hafner made changes -
          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)
          Ulli Hafner made changes -
          Labels New: newbie-friendly
          Ulli Hafner made changes -
          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]
          Ulli Hafner made changes -
          Rank New: Ranked higher
          Giulia Del Bravo made changes -
          Assignee New: Giulia Del Bravo [ rathaya ]
          Giulia Del Bravo made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

            rathaya Giulia Del Bravo
            drulli Ulli Hafner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: