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

ProjectActions (and trend graphs) do not appear for failed projects

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • Jenkins LTS 1.596.2 / Linux

      Since junit-1.2, neither the "Latest Test Result" information nor the "Test Result Trend" plot appear on the project page _if there is not at least one build in non-failed state.

      See screenshots below for an example: after deleting unstable build #11, the abovementioned items disappear.

      The problem did not exist when the plugin was still included in Jenkins (1.576), nor does it exist in versions 1.0 and 1.1 of the plugin. I suspect that this behaviour was introduced with commit 4ba5a49 ("JENKINS-23713 Compatibility with SimpleBuildStep."), but unfortunately I cannot find the exact root cause within that commit.

      This problem is not only related to the JUnit plug-in. In general, every plug-in that has been migrated its actions to a SimpleBuildStep has this problem. The affected source code is in SimpleBuildStep.

      A test case that exposes this bug is WarningsPluginTest#should_not_skip_failed_builds_with_option_run_always

      See also the corresponding mailing list discussion.

        1. patch.txt
          3 kB
        2. withOutTrend.png
          withOutTrend.png
          60 kB
        3. withTrend.png
          withTrend.png
          81 kB

          [JENKINS-28479] ProjectActions (and trend graphs) do not appear for failed projects

          Alexander Ost created issue -
          Alexander Ost made changes -
          Attachment New: patch.txt [ 29837 ]
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-23713 [ JENKINS-23713 ]
          Jesse Glick made changes -
          Labels New: regression
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 163319 ] New: JNJira + In-Review [ 181179 ]
          Ulli Hafner made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: junit-plugin [ 15499 ]
          Description Original: Since junit-1.2, neither the "Latest Test Result" information nor the "Test Result Trend" plot appear on the project page _if there is not at least one build in non-failed state_.

          See screenshots below for an example: after deleting unstable build #11, the abovementioned items disappear.
          !withTrend.png|thumbnail!
          !withOutTrend.png|thumbnail!

          The problem did not exist when the plugin was still included in Jenkins (1.576), nor does it exist in versions 1.0 and 1.1 of the plugin. I suspect that this behaviour was introduced with commit 4ba5a49 ("[JENKINS-23713] Compatibility with SimpleBuildStep."), but unfortunately I cannot find the exact root cause within that commit.

          Thanks for checking!
          /alex
          New: Since junit-1.2, neither the "Latest Test Result" information nor the "Test Result Trend" plot appear on the project page _if there is not at least one build in non-failed state.

          See screenshots below for an example: after deleting unstable build #11, the abovementioned items disappear.
          !withTrend.png|thumbnail!
          !withOutTrend.png|thumbnail!

          The problem did not exist when the plugin was still included in Jenkins (1.576), nor does it exist in versions 1.0 and 1.1 of the plugin. I suspect that this behaviour was introduced with commit 4ba5a49 ("[JENKINS-23713] Compatibility with SimpleBuildStep."), but unfortunately I cannot find the exact root cause within that commit.

          This problem is not only related to the JUnit plug-in. In general, every plug-in that has been migrated its actions to a SimpleBuildStep has this problem. The affected source code is in [SimpleBuildStep|https://github.com/jenkinsci/jenkins/blob/8242e0eb1625454ae5539c444c8d8ecf99a70b62/core/src/main/java/jenkins/tasks/SimpleBuildStep.java#L119-L121].

          A test case that exposes this bug is [WarningsPluginTest#should_not_skip_failed_builds_with_option_run_always|https://github.com/jenkinsci/acceptance-test-harness/blob/master/src/test/java/plugins/WarningsPluginTest.java#L619]

          See also the corresponding [mailing list discussion|https://groups.google.com/forum/#!topic/jenkinsci-dev/j38TfS6ymJ8].
          Labels Original: regression New: pipeline regression
          Summary Original: "Latest Test Result" text and "Test Result Trend" plot do not appear for projects which always fail New: ProjectActions (and trend graphs) do not appear for projects which always fail
          Ulli Hafner made changes -
          Summary Original: ProjectActions (and trend graphs) do not appear for projects which always fail New: ProjectActions (and trend graphs) do not appear for failed projects
          Ulli Hafner made changes -
          Link New: This issue blocks JENKINS-31202 [ JENKINS-31202 ]

            Unassigned Unassigned
            arost Alexander Ost
            Votes:
            7 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: