See <https://builds.apache.org/job/incubator-brooklyn-master-windows/30/changes>
Changes:
[alex.heneveld] allow units to be passed for `minRam` and `minDisk`
[grkvlt] Typo (rebinded)
[svetoslav.neykov] Delete http method on entities.
[aled.sage] Rename brooklynObject.getTagSupport() to tags()
[aled.sage] Rename entityInternal.getFeedSupport() to feeds()
[aled.sage] Mark getRebindSupport() as @Beta
[aled.sage] Avoid NPE in REST api deserialisation
[alex.heneveld] remove string escaping of single quote in java (allowed for
java but not for JS)
[alex.heneveld] code review cleanup for minram / mindisk - correctly uses 1000
when converting to jclouds settings
------------------------------------------
[...truncated 23122 lines...]
$output[] = array("TXT", "GeoScaling config auto-updated by Brooklyn
1970-01-01 00:00:00 UTC");
if (filter_var($closest_host['ip'], FILTER_VALIDATE_IP)) {
$output[] = array("A", $closest_host['ip']);
} else {
$output[] = array("CNAME", $closest_host['ip']);
}
} else {
$output[] = array("fail");
}
] but found [/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**************************************************************************************
** DO NOT modify this script, as your changes will likely be overwritten.
** Auto-generated by Brooklyn on 1970-01-01 00:00:00 UTC
**************************************************************************************/
/* Returns the approximate distance (in km) between 2 points on the Earth's
surface,
* specified as latitude and longitude in decimal degrees. Derived from the
spherical
* law of cosines.
*/
function distanceBetween($lat1_deg, $long1_deg, $lat2_deg, $long2_deg) {
define("RADIUS_KM", 6372.8); // approx
$lat1_rad = deg2rad($lat1_deg);
$lat2_rad = deg2rad($lat2_deg);
$long_delta_rad = deg2rad($long1_deg - $long2_deg);
$distance_km = RADIUS_KM * acos( (sin($lat1_rad) * sin($lat2_rad)) +
(cos($lat1_rad) * cos($lat2_rad) *
cos($long_delta_rad)) );
return $distance_km;
}
function findClosestHost($lat_deg, $long_deg, $available_hosts) {
$minimum_distance = PHP_INT_MAX;
for ($i = 0 ; $i < sizeof($available_hosts); $i++) {
$host = $available_hosts[$i];
$distance_km = distanceBetween($lat_deg, $long_deg, $host['latitude'],
$host['longitude']);
if ($distance_km < $minimum_distance) {
$minimum_distance = $distance_km;
$closest_host = $host;
}
}
return $closest_host;
}
$hosts = array(
array('name' => 'Server 1',
'latitude' => 40.0,
'longitude' => -80.0,
'ip' => '1.2.3.100'),
array('name' => 'Server 2',
'latitude' => 30.0,
'longitude' => 20.0,
'ip' => '1.2.3.101')
);
$closest_host = findClosestHost($city_info['latitude'],
$city_info['longitude'], $hosts);
if (isset($closest_host)) {
$output[] = array("TXT", "Request from
[".$city_info['latitude'].",".$city_info['longitude']."]-".$city_info['city']."(".strtoupper($city_info['country']).")
directed to ".$closest_host['name']);
$output[] = array("TXT", "GeoScaling config auto-updated by Brooklyn
1970-01-01 00:00:00 UTC");
if (filter_var($closest_host['ip'], FILTER_VALIDATE_IP)) {
$output[] = array("A", $closest_host['ip']);
} else {
$output[] = array("CNAME", $closest_host['ip']);
}
} else {
$output[] = array("fail");
}
]
Tests run: 33, Failures: 1, Errors: 0, Skipped: 0
[JENKINS] Recording test results
[JENKINS] Archiving disabled
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Brooklyn NoSQL Data Store Software Entities
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Brooklyn CAMP REST API
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Brooklyn REST Server
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Brooklyn REST Client
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Brooklyn REST JavaScript Web GUI
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Brooklyn Launcher
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Brooklyn Command Line Interface
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Brooklyn All Things
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Brooklyn Distribution
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Brooklyn Simple Web Cluster Example
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Brooklyn Global Web Fabric Example
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Brooklyn Simple Messaging Publish-Subscribe Example
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Brooklyn NoSQL Cluster Examples
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Brooklyn QA
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Brooklyn Parent Project ........................... SUCCESS [30.452s]
[INFO] Brooklyn Utilities to Support Testing (listeners etc) SUCCESS [26.323s]
[INFO] Brooklyn Logback Includable Configuration ......... SUCCESS [2.626s]
[INFO] Brooklyn Common Utilities ......................... SUCCESS [38.906s]
[INFO] Brooklyn Groovy Utilities ......................... SUCCESS [11.798s]
[INFO] Brooklyn API ...................................... SUCCESS [6.320s]
[INFO] Brooklyn Test Support ............................. SUCCESS [8.894s]
[INFO] CAMP Server Parent Project ........................ SUCCESS [0.193s]
[INFO] CAMP Base ......................................... SUCCESS [12.433s]
[INFO] Brooklyn Core ..................................... SUCCESS [4:17.780s]
[INFO] Brooklyn Policies ................................. SUCCESS [2:03.134s]
[INFO] Brooklyn Jclouds Location Targets ................. SUCCESS [59.295s]
[INFO] Brooklyn Secure JMXMP Agent ....................... SUCCESS [23.464s]
[INFO] Brooklyn JMX RMI Agent ............................ SUCCESS [5.796s]
[INFO] Brooklyn Software Base ............................ SUCCESS [1:24.312s]
[INFO] Brooklyn Web App Software Entities ................ FAILURE [2:41.225s]
[INFO] Brooklyn NoSQL Data Store Software Entities ....... SKIPPED
[INFO] Brooklyn CAMP REST API ............................ SKIPPED
[INFO] Brooklyn REST Server .............................. SKIPPED
[INFO] Brooklyn REST Client .............................. SKIPPED
[INFO] Brooklyn REST JavaScript Web GUI .................. SKIPPED
[INFO] Brooklyn Launcher ................................. SKIPPED
[INFO] Brooklyn Command Line Interface ................... SKIPPED
[INFO] Brooklyn All Things ............................... SKIPPED
[INFO] Brooklyn Distribution ............................. SKIPPED
[INFO] Brooklyn Simple Web Cluster Example ............... SKIPPED
[INFO] Brooklyn Global Web Fabric Example ................ SKIPPED
[INFO] Brooklyn Simple Messaging Publish-Subscribe Example SKIPPED
[INFO] Brooklyn NoSQL Cluster Examples ................... SKIPPED
[INFO] Brooklyn QA ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14:30.795s
[INFO] Finished at: Fri Oct 24 05:42:30 PDT 2014
[INFO] Final Memory: 45M/131M
[INFO] ------------------------------------------------------------------------
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
Waiting for Jenkins to finish collecting data
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on
project brooklyn-software-webapp: There are test failures.
[ERROR]
[ERROR] Please refer to
F:\jenkins\jenkins-slave\workspace\incubator-brooklyn-master-windows\software\webapp\target\surefire-reports
for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :brooklyn-software-webapp
channel stopped