Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-7595

TestTrendChart portlet is wrong: the test statistics of the first available build are reported also for dates before the build date

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: dashboard-view-plugin
    • Labels:
      None

      Description

      The TestTrendChart is not correct:
      the test statistics of the first available build are reported also for dates before the build date.

      consider date_min as the lowest build date among all the builds of all jobs;
      if the first available build of a job is at date1 > date_min, for each date in range [date_min, date], the test statistics of build at date1 are added also to the range above.

      Instead of having
      date1: 1 tests // one job contributes one test
      date2: 1 tests // one job contributes one test
      date3: 2 tests // two jobs contribute one test each
      date4: 3 tests
      we have
      date1: 2 tests // should be 1: one of this tests don't exist at this date
      date2: 2 tests // should be 1: one of this tests don't exist at this date
      date3: 2 tests // correct
      date4: 3 tests

      Attached are the two graphs I have generated. It can be seen that some tests are available only after a certain date, but in the wrong are added also before that date.

      Has anybody experienced this problem?

        Activity

        Hide
        scm_issue_link SCM/JIRA link daemon added a comment -

        Code changed in hudson
        User: : mambu
        Path:
        trunk/hudson/plugins/dashboard-view/src/main/java/hudson/plugins/view/dashboard/test/TestTrendChart.java
        http://jenkins-ci.org/commit/35332
        Log:
        [dashboard-view] Job's tests are counted starting at the date of first available build JENKINS-7595.

        Show
        scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mambu Path: trunk/hudson/plugins/dashboard-view/src/main/java/hudson/plugins/view/dashboard/test/TestTrendChart.java http://jenkins-ci.org/commit/35332 Log: [dashboard-view] Job's tests are counted starting at the date of first available build JENKINS-7595 .

          People

          • Assignee:
            mambu Marco Ambu
            Reporter:
            mambu Marco Ambu
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: