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

Build Status page continues to show flashing "building" icons after build completion

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Jenkins 1.456/ Ubuntu 11.10
    • Similar Issues:

      Description

      The main build status page shows a 48x48 icon representing the build status. If you visit the page during the build this shows a flashing "build in progress" icon. However when the build stops the "build in progress" icon continues to be displayed.

      This is due to browser caching behaviour. For example the recent build at the following URL

      http://ci.jenkins-ci.org/job/tools_maven-hpi-plugin-maven-2.x/40/

      During the build the relevant markup was

      <img height="48" alt="In progress" width="48" src="buildStatus" tooltip="In progress" />
              Build #40
              (23-Mar-2012 01:18:30)
      

      The request for buildStatus returned a HTTP 302 redirect to

      Location:http://ci.jenkins-ci.org/images/48x48/blue_anime.gif
      

      The combination of a 302 redirect and caching headers in the gif cause the browser to not re-request buildStatus within the same browser session.

      http://ci.jenkins-ci.org/job/tools_maven-hpi-plugin-maven-2.x/40/buildStatus

      Note this is unrelated to the recent changes for caching of images etc. I have noticed this in the past but have not had time to investigate before now.

        Attachments

          Activity

          Hide
          oldelvet Richard Mortimer added a comment -

          I think that the observed behaviour is down to the loosely defined semantics of HTTP 302 responses. In this case we want HTTP/1.1 307 behaviour instead of HTTP/1.1 303 type behaviour.

          That said in this instance I think that the correct fix is to just put the image URL inline in the img src attribute. The tooltip and alt attributes are already fixed inline so putting the actual icon URL inline seems appropriate too.

          Show
          oldelvet Richard Mortimer added a comment - I think that the observed behaviour is down to the loosely defined semantics of HTTP 302 responses. In this case we want HTTP/1.1 307 behaviour instead of HTTP/1.1 303 type behaviour. That said in this instance I think that the correct fix is to just put the image URL inline in the img src attribute. The tooltip and alt attributes are already fixed inline so putting the actual icon URL inline seems appropriate too.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Richard Mortimer
          Path:
          changelog.html
          core/src/main/resources/lib/hudson/buildCaption.jelly
          http://jenkins-ci.org/commit/jenkins/eb3e288d6e761109c20cf479c80dfb4c69801dbe
          Log:
          [FIXED JENKINS-13217] Build Status page continues to show flashing "building"
          icons after build completion.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Richard Mortimer Path: changelog.html core/src/main/resources/lib/hudson/buildCaption.jelly http://jenkins-ci.org/commit/jenkins/eb3e288d6e761109c20cf479c80dfb4c69801dbe Log: [FIXED JENKINS-13217] Build Status page continues to show flashing "building" icons after build completion.
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #1612
          [FIXED JENKINS-13217] Build Status page continues to show flashing "building" (Revision eb3e288d6e761109c20cf479c80dfb4c69801dbe)

          Result = SUCCESS
          Seiji Sogabe : eb3e288d6e761109c20cf479c80dfb4c69801dbe
          Files :

          • changelog.html
          • core/src/main/resources/lib/hudson/buildCaption.jelly
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1612 [FIXED JENKINS-13217] Build Status page continues to show flashing "building" (Revision eb3e288d6e761109c20cf479c80dfb4c69801dbe) Result = SUCCESS Seiji Sogabe : eb3e288d6e761109c20cf479c80dfb4c69801dbe Files : changelog.html core/src/main/resources/lib/hudson/buildCaption.jelly
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_ui-changes_branch #21
          [FIXED JENKINS-13217] Build Status page continues to show flashing "building" (Revision eb3e288d6e761109c20cf479c80dfb4c69801dbe)

          Result = SUCCESS
          Seiji Sogabe : eb3e288d6e761109c20cf479c80dfb4c69801dbe
          Files :

          • core/src/main/resources/lib/hudson/buildCaption.jelly
          • changelog.html
          Show
          dogfood dogfood added a comment - Integrated in jenkins_ui-changes_branch #21 [FIXED JENKINS-13217] Build Status page continues to show flashing "building" (Revision eb3e288d6e761109c20cf479c80dfb4c69801dbe) Result = SUCCESS Seiji Sogabe : eb3e288d6e761109c20cf479c80dfb4c69801dbe Files : core/src/main/resources/lib/hudson/buildCaption.jelly changelog.html

            People

            • Assignee:
              oldelvet Richard Mortimer
              Reporter:
              oldelvet Richard Mortimer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: