Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 484605

Summary: [pmi] Build statuses on PolarSys are always displayed as black bullets ("failed")
Product: Community Reporter: Wayne Beaton <wayne.beaton>
Component: Project Management & PortalAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: chris.guindon, gael.blondelle, raphael.faudou, wayne.beaton
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
URL: https://www.polarsys.org/projects/polarsys.reqcycle/developer
Whiteboard:

Description Wayne Beaton CLA 2015-12-17 13:31:15 EST
It appears that the style isn't being rendered properly in the theme.

class="fa fa-circle build-"

The build status should be appended to the last part, e.g. "build-success".

It appears that the connection to the Hudson instance to check the status is failing. I believe that this is due to the PHP configuration not permitting the file_get_contents call.

We either need to change this configuration on the server, or change how we're getting the value (e.g. use cURL).

While we're at it, we should update the code to render as "build-none" when that we're not able to retrieve the status (i.e. fail gracefully).
Comment 1 Christopher Guindon CLA 2015-12-17 13:33:54 EST
Can you try using drupal_http_request() instead?
https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_http_request/7

Also, we need to make sure that our proxy settings are set correctly in the settings.php file.
Comment 2 Wayne Beaton CLA 2015-12-17 15:05:46 EST
(In reply to christopher Guindon from comment #1)
> Can you try using drupal_http_request() instead?

That works. I put together a proper fix.
Comment 3 Wayne Beaton CLA 2015-12-17 15:41:21 EST
Rolled out and tested on PolarSys.