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

BootFailure.loadAttempts always returns an empty list since Jenkins 2.308

    • 2.358, 2.346.2

      https://github.com/jenkinsci/jenkins/pull/5668 replaced a call to Date.parse with a call to DateFormat.getDateInstance().parse(), which is not equivalent. In this case, the dates being parsed are printed using Date.toString which uses a nonstandard format that causes DateFormat.getDateInstance().parse() to throw a DateParseException 100% of the time.

      This caused BootFailure.loadAttempts to always return an empty list, even if there were previous boot failures. The only usage of this method in Jenkins core is to bind the previous attempt timestamps to a Groovy hook script ("boot-failure.groovy") if one exists. I am aware of one other usage of this method in non-OSS code that tracks startup times and boot failures and was affected by the bug.

          [JENKINS-68848] BootFailure.loadAttempts always returns an empty list since Jenkins 2.308

          Devin Nusbaum created issue -
          Devin Nusbaum made changes -
          Remote Link New: This issue links to "jenkinsci/jenkins#5668 (Web Link)" [ 27885 ]
          Devin Nusbaum made changes -
          Remote Link New: This issue links to "enkinsci/jenkins#6714 (Web Link)" [ 27886 ]
          Devin Nusbaum made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Devin Nusbaum made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Devin Nusbaum made changes -
          Environment New: Jenkins 2.308 and newer
          Basil Crow made changes -
          Labels New: regression
          Basil Crow made changes -
          Labels Original: regression New: lts-candidate regression
          Alexander Brandes made changes -
          Labels Original: lts-candidate regression New: 2.346.2-fixed regression
          Alexander Brandes made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Closed [ 6 ]
          Alexander Brandes made changes -
          Status Original: Closed [ 6 ] New: Fixed but Unreleased [ 10203 ]

            dnusbaum Devin Nusbaum
            dnusbaum Devin Nusbaum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: