Uploaded image for project: 'Continuum'
  1. Continuum
  2. CONTINUUM-2765

Changes since last success appears to always compute no changes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.2, 1.5.0
    • 1.5.0
    • None
    • None

    Description

      While attempting to find the root cause of CONTINUUM-2762, I discovered that the code to compute the changes since the last successful build (for display on the build results page and in notification emails) will never result in changes to display.

      Specifically, DefaultContinuum.getChangesSinceLastSuccess(...) appears to be implemented with an algorithm matching the following pseudocode:

      var changes = [ ]
      var results = fetchResultsBetween(lastSuccessfulResult, currentBuildResult)
      var currentBuildIndex = results.indexOf(currentBuildResult)
      if (currentBuildIndex > 0) {
        for (var result in results, starting at currentBuildIndex) {
          changes.addUniqueChanges(result)
        }
      }
      return changes
      

      The problem with this algorithm is that the fetched results never include the current build result, so no changes are ever computed.

      Attachments

        Issue Links

          Activity

            People

              batkinson Brent Atkinson
              batkinson Brent Atkinson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: