[incubator-openwhisk] branch master updated: Disable automatic topic creation in Kafka. (#3193)

2018-01-22 Thread markusthoemmes
This is an automated email from the ASF dual-hosted git repository.

markusthoemmes pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
 new 3034cf0  Disable automatic topic creation in Kafka. (#3193)
3034cf0 is described below

commit 3034cf021f0f344be68a5e23ba2a5a5537a6d4ad
Author: Sven Lange-Last 
AuthorDate: Mon Jan 22 13:43:10 2018 +0100

Disable automatic topic creation in Kafka. (#3193)

So far, we had automatic topic creation - the broker would automatically 
create a topic if a producer sent a message to a topic or a consumer tried to 
receive messages from a topic. In that case, topic would be created 
automatically with default settings. These default settings are not always what 
we need. In the end, this is a race condition during deployment. If we manage 
to create a topic with desired settings before it gets auto-created with 
default settings, we are fine. Otherwis [...]

This change disables automatic topic creation.
---
 ansible/roles/kafka/tasks/deploy.yml   |  1 +
 tests/src/test/resources/application.conf  | 14 +
 .../test/scala/services/KafkaConnectorTests.scala  | 24 ++
 3 files changed, 31 insertions(+), 8 deletions(-)

diff --git a/ansible/roles/kafka/tasks/deploy.yml 
b/ansible/roles/kafka/tasks/deploy.yml
index 7c6feda..cf59919 100644
--- a/ansible/roles/kafka/tasks/deploy.yml
+++ b/ansible/roles/kafka/tasks/deploy.yml
@@ -23,6 +23,7 @@
   "KAFKA_HEAP_OPTS": "-Xmx{{ kafka.heap }} -Xms{{ kafka.heap }}"
   "KAFKA_ZOOKEEPER_CONNECT": "{{ zookeeper_connect_string }}"
   "KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR": "{{ kafka.replicationFactor }}"
+  "KAFKA_AUTO_CREATE_TOPICS_ENABLE": "false"
 ports:
   - "{{ kafka.port + groups['kafkas'].index(inventory_hostname) }}:9092"
 
diff --git a/tests/src/test/resources/application.conf 
b/tests/src/test/resources/application.conf
index 039f2f4..53f420d 100644
--- a/tests/src/test/resources/application.conf
+++ b/tests/src/test/resources/application.conf
@@ -8,3 +8,17 @@ whisk.spi {
 akka.http.client.idle-timeout = 90 s
 akka.http.host-connection-pool.idle-timeout = 90 s
 akka.http.host-connection-pool.client.idle-timeout = 90 s
+
+whisk {
+# kafka related configuration
+kafka {
+replication-factor = 1
+topics {
+KafkaConnectorTestTopic {
+segment-bytes   =  536870912
+retention-bytes = 1073741824
+retention-ms= 360
+}
+}
+}
+}
diff --git a/tests/src/test/scala/services/KafkaConnectorTests.scala 
b/tests/src/test/scala/services/KafkaConnectorTests.scala
index 6001c9c..d0c3019 100644
--- a/tests/src/test/scala/services/KafkaConnectorTests.scala
+++ b/tests/src/test/scala/services/KafkaConnectorTests.scala
@@ -34,6 +34,7 @@ import common.{StreamLogging, TestUtils, WhiskProperties, 
WskActorSystem}
 import whisk.common.TransactionId
 import whisk.connector.kafka.KafkaConsumerConnector
 import whisk.connector.kafka.KafkaProducerConnector
+import whisk.connector.kafka.KafkaMessagingProvider
 import whisk.core.WhiskConfig
 import whisk.core.connector.Message
 import whisk.utils.ExecutionContextFactory
@@ -48,7 +49,17 @@ class KafkaConnectorTests extends FlatSpec with Matchers 
with WskActorSystem wit
   assert(config.isValid)
 
   val groupid = "kafkatest"
-  val topic = "Dinosaurs"
+  val topic = "KafkaConnectorTestTopic"
+
+  // Need to overwrite replication factor for tests that shut down and start
+  // Kafka instances intentionally. These tests will fail if there is more than
+  // one Kafka host but a replication factor of 1.
+  val kafkaHosts = config.kafkaHosts.split(",")
+  val replicationFactor = kafkaHosts.length / 2 + 1
+  System.setProperty("whisk.kafka.replication-factor", 
replicationFactor.toString)
+  println(s"Create test topic '${topic}' with 
replicationFactor=${replicationFactor}")
+  assert(KafkaMessagingProvider.ensureTopic(config, topic, topic), s"Creation 
of topic ${topic} failed")
+
   val sessionTimeout = 10 seconds
   val maxPollInterval = 10 seconds
   val producer = new KafkaProducerConnector(config.kafkaHosts, ec)
@@ -128,9 +139,8 @@ class KafkaConnectorTests extends FlatSpec with Matchers 
with WskActorSystem wit
 }
   }
 
-  it should "send and receive a kafka message even after shutdown one of 
instances" in {
-val kafkaHosts = config.kafkaHosts.split(",")
-if (kafkaHosts.length > 1) {
+  if (kafkaHosts.length > 1) {
+it should "send and receive a kafka message even after shutdown one of 
instances" in {
   for (i <- 0 until kafkaHosts.length) {
 val message = new Message { override val serialize = 
Calendar.getInstance().getTime().toString }
 val kafkaHost = kafkaHosts(i).split(":")(0)
@@ -138,8 +148,7 @@ class KafkaConnectorTests extends FlatSp

[incubator-openwhisk-wskdeploy] branch master updated: Update the installation of dependencies based on godep (#689)

2018-01-22 Thread mrutkowski
This is an automated email from the ASF dual-hosted git repository.

mrutkowski pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-openwhisk-wskdeploy.git


The following commit(s) were added to refs/heads/master by this push:
 new ab223fe  Update the installation of dependencies based on godep (#689)
ab223fe is described below

commit ab223fee5ef788002ae8c5badd81d64b5fe70692
Author: Vincent 
AuthorDate: Mon Jan 22 12:32:27 2018 -0500

Update the installation of dependencies based on godep (#689)
---
 .travis.yml | 1 +
 Makefile| 8 +---
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index a364335..f297d3c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,6 +12,7 @@ install:
 - export DEPLOY_BUILD_READY=false
 - go get -u github.com/golang/lint/golint
 - go get -u github.com/stretchr/testify
+- go get -u github.com/tools/godep
 script:
 - echo $TRAVIS
 - echo $TRAVIS_PULL_REQUEST
diff --git a/Makefile b/Makefile
index 25cab45..2256f4b 100644
--- a/Makefile
+++ b/Makefile
@@ -9,16 +9,10 @@ BUILD=`git rev-parse HEAD`
 
 deps:
@echo "Installing dependencies"
-   go get -d -t ./...
-
+   godep restore -v
 
 LDFLAGS=-ldflags "-X main.Version=`date -u '+%Y-%m-%dT%H:%M:%S'` -X 
main.Build=`git rev-parse HEAD` "
 
-updatedeps:
-   @echo "Updating all dependencies"
-   @go get -d -u -f -fix -t ./...
-
-
 test: deps
@echo "Testing"
go test ./... -tags=unit

-- 
To stop receiving notification emails like this one, please contact
mrutkow...@apache.org.


[incubator-openwhisk-cli] branch master updated: Create tarball for Nginx container in OpenWhisk as part of release deploy script (#184)

2018-01-22 Thread dubeejw
This is an automated email from the ASF dual-hosted git repository.

dubeejw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git


The following commit(s) were added to refs/heads/master by this push:
 new 6fbc0bb  Create tarball for Nginx container in OpenWhisk as part of 
release deploy script (#184)
6fbc0bb is described below

commit 6fbc0bb09e4be936d05a397863e9c83b65835cd6
Author: Jonathan Springer 
AuthorDate: Mon Jan 22 13:21:04 2018 -0500

Create tarball for Nginx container in OpenWhisk as part of release deploy 
script (#184)

* Set up Gradle build w/o Docker

* Add custom platform build documentation.

* Remove scancode scripts; go get golint

* Use build.gradle to control dependency versions.

* Factor away need for the bin/ directory

* Use dynamic GOPATH to find golint install.

* Add --console=plain and README edits.
---
 .gitignore|  11 +-
 .travis.yml   |  42 ++---
 Dockerfile|  27 ---
 Godeps/Godeps.json|  71 
 Godeps/Readme |   5 -
 Makefile  |  52 --
 README.md | 157 +++--
 build.gradle  | 323 +++---
 build.sh  | 105 ---
 gradle.properties |   1 +
 gradle/docker.gradle  |   6 +-
 settings.gradle   |  27 ++-
 tests/src/integration/common/utils.go |  10 ++
 tests/src/integration/common/wsk.go   |   2 +-
 tests/src/integration/dummy.go|  18 ++
 tools/travis/build_tag_releases.sh|  38 
 tools/travis/scancode.sh  |  11 --
 tools/travis/setupscan.sh |   8 -
 tools/travis/test_openwhisk.sh|  98 +++
 19 files changed, 517 insertions(+), 495 deletions(-)

diff --git a/.gitignore b/.gitignore
index fa48daa..c1d724d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,16 @@
 javascript/
 wsk
+wsk.exe
 scripts
 Godeps/_workspace
+
+# IDE-related exclusions
 .idea/
 *.iml
-.gradle
+
+# Gradle build working directories
+/.gradle/
+/.gogradle/
+/build/
+/release/
+/vendor/
diff --git a/.travis.yml b/.travis.yml
index 85df853..d6da2dd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,30 +8,36 @@ matrix:
   sudo: required
   group: deprecated-2017Q3
   go: 1.8
-  env:
-secure: 
"Br0fD9CAKm8gqyEuwmltNJd4dGJCxPpj6feugHlO+CFFwfE/+kJKkpTlsDuRfrUzUDlWiETNPf0XGSjvPFqZExnLCE9XQh2+XF6u+S3YBWfM+rbbyRVAK6BlTwmt0u3jRJ2JP7spedTGZA+qfIWI+UkwoOexo7NcqtMPLahiZzheaaad8y3J+crHQCrB/kPrhLqKVMEOkIbveFdfV2QLfCOWgqP8e1LGZhPZ2N4QcNo0iB5uI4ZyYszTZDniXFKxz7kBs4tl4ZQDqRHqL02qKPsjbvjrZp83ql+PbC2dpgXi9YpaDuBEqKKX1rTQP5ppcwbobot5U3ItHWzpXbLCdsWxvbde/0enjMmOF1wwl71hPYIf7PkQmNAWXRtL2Z1TguO/dKCeXBLDER4YDQ79GYpikAMqnrRLou4rsyZrNUzg8aHbELzAHppDSpqEJN8ymGgWgmWBT8yPaWVwN5CjPFO
 [...]
   services: docker
+env:
+secure: 
"Br0fD9CAKm8gqyEuwmltNJd4dGJCxPpj6feugHlO+CFFwfE/+kJKkpTlsDuRfrUzUDlWiETNPf0XGSjvPFqZExnLCE9XQh2+XF6u+S3YBWfM+rbbyRVAK6BlTwmt0u3jRJ2JP7spedTGZA+qfIWI+UkwoOexo7NcqtMPLahiZzheaaad8y3J+crHQCrB/kPrhLqKVMEOkIbveFdfV2QLfCOWgqP8e1LGZhPZ2N4QcNo0iB5uI4ZyYszTZDniXFKxz7kBs4tl4ZQDqRHqL02qKPsjbvjrZp83ql+PbC2dpgXi9YpaDuBEqKKX1rTQP5ppcwbobot5U3ItHWzpXbLCdsWxvbde/0enjMmOF1wwl71hPYIf7PkQmNAWXRtL2Z1TguO/dKCeXBLDER4YDQ79GYpikAMqnrRLou4rsyZrNUzg8aHbELzAHppDSpqEJN8ymGgWgmWBT8yPaWVwN5CjPFOxLPrVEOb
 [...]
+global:
+- build_file_name=wsk
+- zip_file_name=OpenWhisk_CLI
 
 git:
   depth: 3
 
 before_install:
-  - pip install --upgrade pip setuptools
+  - export DEPLOY_BUILD_READY=false
 
 install:
-  - ./tools/travis/setupscan.sh
-  - export DEPLOY_BUILD_READY=false
-  - go get -u github.com/golang/lint/golint
-  - go get -u github.com/stretchr/testify
-  - go get -u github.com/spf13/viper
-  - go get -u github.com/tools/godep
+  - cd $TRAVIS_BUILD_DIR/..
+  - pip install --upgrade pip setuptools
+  - git clone https://github.com/jonpspri/gogradle.git
+  - cd gogradle && ./gradlew --console=plain assemble
+
+before_script:
+  - cd $TRAVIS_BUILD_DIR/..
+  - git clone https://github.com/apache/incubator-openwhisk-utilities.git
+  - git clone https://github.com/apache/incubator-openwhisk.git
+  - ./incubator-openwhisk/tools/travis/setup.sh
 
 script:
+  - cd $TRAVIS_BUILD_DIR
+  - ./gradlew --console=plain release
   - ./tools/travis/test_openwhisk.sh
 
-after_script:
-  - make clean
-
 after_success:
   - DEPLOY_BUILD_READY=true
   # This tag is automatically generated for the latest merged commit in master 
branch.
@@ -45,13 +51,7 @@ after_success:
 fi
 
 before_deploy:
-  - go get github.com/inconshreveable/mousetrap
-  - go get github.com/mattn/go-isatty
-  - export build_file_name=wsk
-  - export zip_file_name=OpenWhisk_CLI
-  - chmod +x tools/travis/build

[incubator-openwhisk] branch master updated: update to latest commons-io version (#3119)

2018-01-22 Thread csantanapr
This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
 new 85bb3fe  update to latest commons-io version (#3119)
85bb3fe is described below

commit 85bb3fe38642076646954a8ed1243b76d7f0fee6
Author: tysonnorris 
AuthorDate: Mon Jan 22 11:10:37 2018 -0800

update to latest commons-io version (#3119)
---
 common/scala/build.gradle  |  2 +-
 tests/src/test/scala/common/rest/WskRest.scala | 28 +-
 2 files changed, 11 insertions(+), 19 deletions(-)

diff --git a/common/scala/build.gradle b/common/scala/build.gradle
index 8bd408f..e8ed52a 100644
--- a/common/scala/build.gradle
+++ b/common/scala/build.gradle
@@ -27,7 +27,7 @@ dependencies {
 compile 'org.slf4j:jcl-over-slf4j:1.7.25'
 compile 'org.slf4j:log4j-over-slf4j:1.7.25'
 compile 'commons-codec:commons-codec:1.9'
-compile 'commons-io:commons-io:2.4'
+compile 'commons-io:commons-io:2.6'
 compile 'commons-collections:commons-collections:3.2.2'
 compile 'org.apache.kafka:kafka-clients:0.11.0.1'
 compile ('org.apache.httpcomponents:httpclient:4.4.1') {
diff --git a/tests/src/test/scala/common/rest/WskRest.scala 
b/tests/src/test/scala/common/rest/WskRest.scala
index 7c31dee..4934b8e 100644
--- a/tests/src/test/scala/common/rest/WskRest.scala
+++ b/tests/src/test/scala/common/rest/WskRest.scala
@@ -21,13 +21,11 @@ import java.io.File
 import java.time.Instant
 import java.util.Base64
 import java.security.cert.X509Certificate
-
 import org.apache.commons.io.FileUtils
 import org.scalatest.Matchers
 import org.scalatest.FlatSpec
 import org.scalatest.concurrent.ScalaFutures
 import org.scalatest.time.Span.convertDurationToSpan
-
 import scala.Left
 import scala.Right
 import scala.collection.JavaConversions.mapAsJavaMap
@@ -41,7 +39,6 @@ import scala.util.Failure
 import scala.util.Success
 import scala.util.Try
 import scala.util.{Failure, Success}
-
 import akka.http.scaladsl.model.StatusCode
 import akka.http.scaladsl.model.StatusCodes.Accepted
 import akka.http.scaladsl.model.StatusCodes.NotFound
@@ -63,17 +60,14 @@ import akka.http.scaladsl.model.HttpMethods.POST
 import akka.http.scaladsl.model.HttpMethods.PUT
 import akka.http.scaladsl.HttpsConnectionContext
 import akka.http.scaladsl.settings.ConnectionPoolSettings
-
 import akka.stream.ActorMaterializer
 import akka.stream.scaladsl.{Keep, Sink, Source}
 import akka.stream.{OverflowStrategy, QueueOfferResult}
-
 import spray.json._
 import spray.json.DefaultJsonProtocol._
 import spray.json.JsObject
 import spray.json.JsValue
 import spray.json.pimpString
-
 import common._
 import common.BaseDeleteFromCollection
 import common.BaseListOrGetFromCollection
@@ -89,13 +83,11 @@ import common.WaitFor
 import common.WhiskProperties
 import common.WskActorSystem
 import common.WskProps
-
 import whisk.core.entity.ByteSize
 import whisk.utils.retry
-
 import javax.net.ssl.{HostnameVerifier, KeyManager, SSLContext, SSLSession, 
X509TrustManager}
-
 import com.typesafe.sslconfig.akka.AkkaSSLConfig
+import java.nio.charset.StandardCharsets
 
 class AcceptAllHostNameVerifier extends HostnameVerifier {
   override def verify(s: String, sslSession: SSLSession): Boolean = true
@@ -278,16 +270,16 @@ class WskRestAction
 ("", Base64.getEncoder.encodeToString(zip), artifactFile)
   }
   case ".js" => {
-("nodejs:default", FileUtils.readFileToString(new 
File(artifactFile)), artifactFile)
+("nodejs:default", FileUtils.readFileToString(new 
File(artifactFile), StandardCharsets.UTF_8), artifactFile)
   }
   case ".py" => {
-("python:default", FileUtils.readFileToString(new 
File(artifactFile)), artifactFile)
+("python:default", FileUtils.readFileToString(new 
File(artifactFile), StandardCharsets.UTF_8), artifactFile)
   }
   case ".swift" => {
-("swift:default", FileUtils.readFileToString(new 
File(artifactFile)), artifactFile)
+("swift:default", FileUtils.readFileToString(new 
File(artifactFile), StandardCharsets.UTF_8), artifactFile)
   }
   case ".php" => {
-("php:default", FileUtils.readFileToString(new 
File(artifactFile)), artifactFile)
+("php:default", FileUtils.readFileToString(new File(artifactFile), 
StandardCharsets.UTF_8), artifactFile)
   }
   case _ => ("", "", artifactFile)
 }
@@ -530,7 +522,7 @@ class WskRestTrigger
 expectedExitCode: Int = Accepted.intValue)(implicit wp: 
WskProps): RestResult = {
 val path = getNamePath(noun, name)
 val params = parameterFile map { l =>
-  val input = FileUtils.readFileToString(new File(l))
+  val input = FileUtils.readFileToString(new File(l), 
StandardCharsets.UT

[incubator-openwhisk-cli] branch master updated: update commons-io to 2.6

2018-01-22 Thread csantanapr
This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git


The following commit(s) were added to refs/heads/master by this push:
 new 30b10b5  update commons-io to 2.6
30b10b5 is described below

commit 30b10b5cc8b38f7d6b3ce1c291926b629cb5420b
Author: Tyson Norris 
AuthorDate: Fri Jan 12 13:54:34 2018 -0800

update commons-io to 2.6
---
 tests/src/test/scala/system/basic/WskSdkTests.scala   | 5 +++--
 tests/src/test/scala/whisk/core/cli/test/WskConfigTests.scala | 7 ---
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/tests/src/test/scala/system/basic/WskSdkTests.scala 
b/tests/src/test/scala/system/basic/WskSdkTests.scala
index b36c823..87fe1f6 100644
--- a/tests/src/test/scala/system/basic/WskSdkTests.scala
+++ b/tests/src/test/scala/system/basic/WskSdkTests.scala
@@ -30,6 +30,7 @@ import common.TestUtils.SUCCESS_EXIT
 import common.Wsk
 import common.WskProps
 import common.WskTestHelpers
+import java.nio.charset.StandardCharsets
 
 @RunWith(classOf[JUnitRunner])
 class WskSdkTests extends TestHelpers with WskTestHelpers {
@@ -71,7 +72,7 @@ class WskSdkTests extends TestHelpers with WskTestHelpers {
   val dockerfile = new File(sdk, "Dockerfile")
   dockerfile.exists() should be(true)
   dockerfile.isFile() should be(true)
-  val lines = FileUtils.readLines(dockerfile)
+  val lines = FileUtils.readLines(dockerfile, StandardCharsets.UTF_8)
   // confirm that the image is correct
   lines.get(1) shouldBe "FROM openwhisk/dockerskeleton"
 
@@ -108,7 +109,7 @@ class WskSdkTests extends TestHelpers with WskTestHelpers {
 try {
   val stdout = wsk.cli(Seq("sdk", "install", "bashauto"), workingDir = 
dir, expectedExitCode = SUCCESS_EXIT).stdout
   stdout should include("is installed in the current directory")
-  val fileContent = FileUtils.readFileToString(scriptfile)
+  val fileContent = FileUtils.readFileToString(scriptfile, 
StandardCharsets.UTF_8)
   fileContent should include("bash completion for wsk")
 } finally {
   scriptfile.delete()
diff --git a/tests/src/test/scala/whisk/core/cli/test/WskConfigTests.scala 
b/tests/src/test/scala/whisk/core/cli/test/WskConfigTests.scala
index 220953b..f69ddd0 100644
--- a/tests/src/test/scala/whisk/core/cli/test/WskConfigTests.scala
+++ b/tests/src/test/scala/whisk/core/cli/test/WskConfigTests.scala
@@ -31,6 +31,7 @@ import common.TestUtils._
 import common.Wsk
 import common.WskProps
 import common.WskTestHelpers
+import java.nio.charset.StandardCharsets
 
 @RunWith(classOf[JUnitRunner])
 class WskConfigTests extends TestHelpers with WskTestHelpers {
@@ -356,7 +357,7 @@ class WskConfigTests extends TestHelpers with 
WskTestHelpers {
 val rr = wsk.cli(Seq("property", "set", "--apihost", apihost), env 
= env)
 rr.stdout.trim shouldBe s"ok: whisk API host set to $apihost"
 rr.stderr shouldBe 'empty
-val fileContent = FileUtils.readFileToString(tmpwskprops)
+val fileContent = FileUtils.readFileToString(tmpwskprops, 
StandardCharsets.UTF_8)
 fileContent should include(s"APIHOST=$apihost")
   }
 }
@@ -371,7 +372,7 @@ class WskConfigTests extends TestHelpers with 
WskTestHelpers {
 val env = Map("WSK_CONFIG_FILE" -> tmpwskprops.getAbsolutePath())
 wsk.cli(Seq("property", "set", "--auth", "testKey"), env = env)
 try {
-  val fileContent = FileUtils.readFileToString(tmpwskprops)
+  val fileContent = FileUtils.readFileToString(tmpwskprops, 
StandardCharsets.UTF_8)
   fileContent should include("AUTH=testKey")
 } finally {
   tmpwskprops.delete()
@@ -404,7 +405,7 @@ class WskConfigTests extends TestHelpers with 
WskTestHelpers {
   stdout should include regex ("ok: client key set")
   stdout should include regex ("ok: whisk API host set")
   stdout should include regex ("ok: whisk API version set")
-  val fileContent = FileUtils.readFileToString(tmpwskprops)
+  val fileContent = FileUtils.readFileToString(tmpwskprops, 
StandardCharsets.UTF_8)
   fileContent should include("AUTH=testKey")
   fileContent should include("APIHOST=openwhisk.ng.bluemix.net")
   fileContent should include("APIVERSION=v1")

-- 
To stop receiving notification emails like this one, please contact
csantan...@apache.org.


[incubator-openwhisk-cli] branch master updated: Fix API_KEY for lastest tag (#204)

2018-01-22 Thread dubeejw
This is an automated email from the ASF dual-hosted git repository.

dubeejw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git


The following commit(s) were added to refs/heads/master by this push:
 new d137131  Fix API_KEY for lastest tag (#204)
d137131 is described below

commit d1371315f849dacf40644f3ba6fc83807d3dce35
Author: James Dubee 
AuthorDate: Mon Jan 22 15:38:25 2018 -0500

Fix API_KEY for lastest tag (#204)
---
 .travis.yml | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index d6da2dd..7c48e3d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,11 +9,11 @@ matrix:
   group: deprecated-2017Q3
   go: 1.8
   services: docker
-env:
-secure: 
"Br0fD9CAKm8gqyEuwmltNJd4dGJCxPpj6feugHlO+CFFwfE/+kJKkpTlsDuRfrUzUDlWiETNPf0XGSjvPFqZExnLCE9XQh2+XF6u+S3YBWfM+rbbyRVAK6BlTwmt0u3jRJ2JP7spedTGZA+qfIWI+UkwoOexo7NcqtMPLahiZzheaaad8y3J+crHQCrB/kPrhLqKVMEOkIbveFdfV2QLfCOWgqP8e1LGZhPZ2N4QcNo0iB5uI4ZyYszTZDniXFKxz7kBs4tl4ZQDqRHqL02qKPsjbvjrZp83ql+PbC2dpgXi9YpaDuBEqKKX1rTQP5ppcwbobot5U3ItHWzpXbLCdsWxvbde/0enjMmOF1wwl71hPYIf7PkQmNAWXRtL2Z1TguO/dKCeXBLDER4YDQ79GYpikAMqnrRLou4rsyZrNUzg8aHbELzAHppDSpqEJN8ymGgWgmWBT8yPaWVwN5CjPFOxLPrVEOb
 [...]
-global:
-- build_file_name=wsk
-- zip_file_name=OpenWhisk_CLI
+  env:
+  secure: 
"Br0fD9CAKm8gqyEuwmltNJd4dGJCxPpj6feugHlO+CFFwfE/+kJKkpTlsDuRfrUzUDlWiETNPf0XGSjvPFqZExnLCE9XQh2+XF6u+S3YBWfM+rbbyRVAK6BlTwmt0u3jRJ2JP7spedTGZA+qfIWI+UkwoOexo7NcqtMPLahiZzheaaad8y3J+crHQCrB/kPrhLqKVMEOkIbveFdfV2QLfCOWgqP8e1LGZhPZ2N4QcNo0iB5uI4ZyYszTZDniXFKxz7kBs4tl4ZQDqRHqL02qKPsjbvjrZp83ql+PbC2dpgXi9YpaDuBEqKKX1rTQP5ppcwbobot5U3ItHWzpXbLCdsWxvbde/0enjMmOF1wwl71hPYIf7PkQmNAWXRtL2Z1TguO/dKCeXBLDER4YDQ79GYpikAMqnrRLou4rsyZrNUzg8aHbELzAHppDSpqEJN8ymGgWgmWBT8yPaWVwN5CjP
 [...]
+  global:
+  - build_file_name=wsk
+  - zip_file_name=OpenWhisk_CLI
 
 git:
   depth: 3

-- 
To stop receiving notification emails like this one, please contact
dube...@apache.org.


[incubator-openwhisk-release] branch master updated: Create the basic Travis environment (#1)

2018-01-22 Thread mrutkowski
This is an automated email from the ASF dual-hosted git repository.

mrutkowski pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-openwhisk-release.git


The following commit(s) were added to refs/heads/master by this push:
 new 8c292fa  Create the basic Travis environment (#1)
8c292fa is described below

commit 8c292fad2a938bfea0083d067ff7f242844af5fa
Author: Vincent 
AuthorDate: Mon Jan 22 16:49:24 2018 -0500

Create the basic Travis environment (#1)

This PR empowers the project with the following features:

* Add the support to define the list of repos to be released
and the hash value to be picked for each repo in a config file of
JSON format define the hash value

* Download the repos based on the definitions in the config file.

* Install openwhisk based on the dowloaded source code, build the
binaries for CLI and wskdeploy.
---
 .travis.yml  | 24 +++
 Dockerfile   |  2 ++
 tools/travis/cleanup.sh  |  8 +++
 tools/travis/config.json | 24 +++
 tools/travis/download_source_code.sh | 36 +
 tools/travis/package_source_code.sh  | 11 +
 tools/travis/setup.sh| 45 
 tools/travis/util.sh | 11 +
 tools/travis/verify_source_code.sh   |  9 
 9 files changed, 170 insertions(+)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000..2cd1331
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,24 @@
+sudo: required
+
+group: deprecated-2017Q3
+
+language: scala
+
+scala:
+   - 2.11.8
+
+services:
+  - docker
+
+jobs:
+  include:
+- stage: verify source code
+  script: ./tools/travis/verify_source_code.sh
+- stage: deploy
+  script: ./tools/travis/setup.sh
+- stage: package
+  script: ./tools/travis/package_source_code.sh
+
+after_failure:
+  - echo "failed build"
+  - ./tools/travis/cleanup.sh
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000..2679754
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,2 @@
+FROM ubuntu
+RUN echo "Hello, Docker setup!" > hello.txt
\ No newline at end of file
diff --git a/tools/travis/cleanup.sh b/tools/travis/cleanup.sh
new file mode 100755
index 000..460e995
--- /dev/null
+++ b/tools/travis/cleanup.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+SUFFIX="$TRAVIS_BUILD_NUMBER"
+PR_NUM="$TRAVIS_PULL_REQUEST"
+
+mkdir -p ~/docker
+cd ~/docker
+ls
+rm *.tar
diff --git a/tools/travis/config.json b/tools/travis/config.json
new file mode 100644
index 000..5226aa9
--- /dev/null
+++ b/tools/travis/config.json
@@ -0,0 +1,24 @@
+{
+  "RepoList": [
+"incubator-openwhisk",
+"incubator-openwhisk-catalog",
+"incubator-openwhisk-runtime-nodejs",
+"incubator-openwhisk-cli",
+"incubator-openwhisk-wskdeploy"
+  ],
+  "incubator_openwhisk": {
+"hash": "fc98e9a"
+  },
+  "incubator_openwhisk_catalog": {
+"hash": "ad24d4c"
+  },
+  "incubator_openwhisk_runtime_nodejs": {
+"hash": "1c6c5db"
+  },
+  "incubator_openwhisk_cli": {
+"hash": "7b78091"
+  },
+  "incubator_openwhisk_wskdeploy": {
+"hash": "9840db4"
+  }
+}
diff --git a/tools/travis/download_source_code.sh 
b/tools/travis/download_source_code.sh
new file mode 100755
index 000..8a2cdf1
--- /dev/null
+++ b/tools/travis/download_source_code.sh
@@ -0,0 +1,36 @@
+#!/usr/bin/env bash
+
+set -e
+
+sudo apt-get install jq
+
+HOMEDIR="$(dirname "$TRAVIS_BUILD_DIR")"
+OPENWHISKDIR="$HOMEDIR/openwhisk"
+source "$TRAVIS_BUILD_DIR/tools/travis/util.sh"
+
+clone_depth=${1:-"10"}
+
+function git_clone_repo() {
+PROJECT_NAME=$1
+HASH=$2
+git clone --depth $clone_depth https://github.com/apache/$PROJECT_NAME.git 
$OPENWHISKDIR/$PROJECT_NAME
+cd $OPENWHISKDIR/$PROJECT_NAME
+git reset --hard $HASH
+rm -rf .git
+}
+
+rm -rf $OPENWHISKDIR/*
+
+CONFIG=$(read_file $TRAVIS_BUILD_DIR/tools/travis/config.json)
+repos=$(echo $(json_by_key "$CONFIG" "RepoList") | sed 's/[][]//g')
+
+for repo in $(echo $repos | sed "s/,/ /g")
+do
+repo_name=$(echo "$repo" | sed -e 's/^"//' -e 's/"$//')
+HASH_KEY=${repo_name//-/_}.hash
+HASH=$(json_by_key "$CONFIG" $HASH_KEY)
+if [ "$HASH" != "null" ]; then
+echo "The hash for $repo_name is $HASH"
+git_clone_repo $repo_name $HASH
+fi
+done
diff --git a/tools/travis/package_source_code.sh 
b/tools/travis/package_source_code.sh
new file mode 100755
index 000..62df67e
--- /dev/null
+++ b/tools/travis/package_source_code.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+set -e
+
+cd $TRAVIS_BUILD_DIR
+./tools/travis/download_source_code.sh
+
+# TODO: add release note and license file if necessary
+echo "add release note and license file if necessary"
+
+# TODO: package all the source code and upload them into the designated 
directory
diff --git a/tools/travis/setup.sh b/tools/tra

[incubator-openwhisk-cli] branch master updated: Fix environment variable definition (#205)

2018-01-22 Thread dubeejw
This is an automated email from the ASF dual-hosted git repository.

dubeejw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git


The following commit(s) were added to refs/heads/master by this push:
 new 51e39ef  Fix environment variable definition (#205)
51e39ef is described below

commit 51e39ef6066b6a3a2adf9ba4e35e363dd5edeac5
Author: James Dubee 
AuthorDate: Mon Jan 22 16:51:40 2018 -0500

Fix environment variable definition (#205)
---
 .travis.yml | 24 +---
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 7c48e3d..af2f0bd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,17 +3,19 @@
 language: go
 
 matrix:
-include:
-- os: linux
-  sudo: required
-  group: deprecated-2017Q3
-  go: 1.8
-  services: docker
-  env:
-  secure: 
"Br0fD9CAKm8gqyEuwmltNJd4dGJCxPpj6feugHlO+CFFwfE/+kJKkpTlsDuRfrUzUDlWiETNPf0XGSjvPFqZExnLCE9XQh2+XF6u+S3YBWfM+rbbyRVAK6BlTwmt0u3jRJ2JP7spedTGZA+qfIWI+UkwoOexo7NcqtMPLahiZzheaaad8y3J+crHQCrB/kPrhLqKVMEOkIbveFdfV2QLfCOWgqP8e1LGZhPZ2N4QcNo0iB5uI4ZyYszTZDniXFKxz7kBs4tl4ZQDqRHqL02qKPsjbvjrZp83ql+PbC2dpgXi9YpaDuBEqKKX1rTQP5ppcwbobot5U3ItHWzpXbLCdsWxvbde/0enjMmOF1wwl71hPYIf7PkQmNAWXRtL2Z1TguO/dKCeXBLDER4YDQ79GYpikAMqnrRLou4rsyZrNUzg8aHbELzAHppDSpqEJN8ymGgWgmWBT8yPaWVwN5CjP
 [...]
-  global:
-  - build_file_name=wsk
-  - zip_file_name=OpenWhisk_CLI
+  include:
+- os: linux
+  sudo: required
+  group: deprecated-2017Q3
+  go: 1.8
+  services: docker
+
+env:
+  global:
+- secure: 
"Br0fD9CAKm8gqyEuwmltNJd4dGJCxPpj6feugHlO+CFFwfE/+kJKkpTlsDuRfrUzUDlWiETNPf0XGSjvPFqZExnLCE9XQh2+XF6u+S3YBWfM+rbbyRVAK6BlTwmt0u3jRJ2JP7spedTGZA+qfIWI+UkwoOexo7NcqtMPLahiZzheaaad8y3J+crHQCrB/kPrhLqKVMEOkIbveFdfV2QLfCOWgqP8e1LGZhPZ2N4QcNo0iB5uI4ZyYszTZDniXFKxz7kBs4tl4ZQDqRHqL02qKPsjbvjrZp83ql+PbC2dpgXi9YpaDuBEqKKX1rTQP5ppcwbobot5U3ItHWzpXbLCdsWxvbde/0enjMmOF1wwl71hPYIf7PkQmNAWXRtL2Z1TguO/dKCeXBLDER4YDQ79GYpikAMqnrRLou4rsyZrNUzg8aHbELzAHppDSpqEJN8ymGgWgmWBT8yPaWVwN5CjPFOxLPrVE
 [...]
+- build_file_name=wsk
+- zip_file_name=OpenWhisk_CLI
+
 
 git:
   depth: 3

-- 
To stop receiving notification emails like this one, please contact
dube...@apache.org.


[CONF] OpenWhisk > Accessing Apache GitHub as a Committer

2018-01-22 Thread Carlos Santana (Confluence)
Title: Message Title



 
 
 
 
 
 
 

Carlos Santana edited a page 
 
 
  
 
 
 
 
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Accessing Apache GitHub as a Committer 
 
 
  
 
 
 
 
 
 
 ... 
 
Verify you have a Github ID enabled with 2FA https://help.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/  
Enter your Github ID into your Apache ID profile https://id.apache.org/ (Wait for an email inviting you to Apache GitHub Organization and accept invitation)  
 Verify you are part of the Github team "Apache Committers" https://github.com/orgs/apache/teams/apache-committers  
Merge your Apache and GitHub accounts using GitBox (Apache Account Linking utility): https://gitbox.apache.org/setup/You should get invited to Github team "openwhisk committers" after getting 3  You should see 3 green checks in GitBox (wait at least 3 hours):   Wait at least 30  minutes for an email inviting you to Apache GitHub Organization and accept invitation  
  After accepting the Github Invitation verify that you are a member of the team https://github.com/orgs/apache/teams/openwhisk-committers  
 ...  
 
 
  
 
 
 
 
 
 
 
 
 
 

View page
• 
 
 
 
 
 
 

Like 
 
 
  
 
 
  
 
 
  
 
 
  
 
 
 
 
 
 
 
 
 
 
Stop watching space
• 
 
 
 
 
 
 
Manage notifications 
 
 
 
 
 
 
 
 
 
 
  
 
 
This message was sent by Atlassian Confluence 5.8.17  
 
 
  
 
 
 
 
 
 
 
 
 




[incubator-openwhisk-cli] annotated tag latest updated (713c947 -> 4d5037b)

2018-01-22 Thread csantanapr
This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a change to annotated tag latest
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git.


*** WARNING: tag latest was modified! ***

from 713c947  (tag)
  to 4d5037b  (tag)
 tagging 51e39ef6066b6a3a2adf9ba4e35e363dd5edeac5 (commit)
 replaces 1.0.0
  by Travis CI
  on Tue Jan 23 00:38:48 2018 +

- Log -
Generated tag from Travis CI build 728
---

from 7a2bd06  Updathe godep dependency installation (#202)
 add 6fbc0bb  Create tarball for Nginx container in OpenWhisk as part of 
release deploy script (#184)
 add 30b10b5  update commons-io to 2.6
 add d137131  Fix API_KEY for lastest tag (#204)
 add 51e39ef  Fix environment variable definition (#205)

No new revisions were added by this update.

Summary of changes:
 .gitignore |  11 +-
 .travis.yml|  56 ++--
 Dockerfile |  27 --
 Godeps/Godeps.json |  71 -
 Godeps/Readme  |   5 -
 Makefile   |  52 
 README.md  | 157 ++
 build.gradle   | 323 +
 build.sh   | 105 ---
 gradle.properties  |   1 +
 gradle/docker.gradle   |   6 +-
 settings.gradle|  27 +-
 tests/src/integration/common/utils.go  |  10 +
 tests/src/integration/common/wsk.go|   2 +-
 .../pythonVersion.py => src/integration/dummy.go}  |   9 +-
 .../src/test/scala/system/basic/WskSdkTests.scala  |   5 +-
 .../scala/whisk/core/cli/test/WskConfigTests.scala |   7 +-
 tools/travis/build_tag_releases.sh |  38 ---
 tools/travis/scancode.sh   |  11 -
 tools/travis/setupscan.sh  |   8 -
 tools/travis/test_openwhisk.sh |  98 ---
 21 files changed, 515 insertions(+), 514 deletions(-)
 delete mode 100644 Dockerfile
 delete mode 100644 Godeps/Godeps.json
 delete mode 100644 Godeps/Readme
 delete mode 100644 Makefile
 delete mode 100644 build.sh
 create mode 100644 gradle.properties
 copy tests/{dat/actions/pythonVersion.py => src/integration/dummy.go} (86%)
 delete mode 100755 tools/travis/build_tag_releases.sh
 delete mode 100755 tools/travis/scancode.sh
 delete mode 100755 tools/travis/setupscan.sh

-- 
To stop receiving notification emails like this one, please contact
csantan...@apache.org.


[incubator-openwhisk] branch master updated: Dynamic LoadBalancer load using SpiLoader (#2984)

2018-01-22 Thread tysonnorris
This is an automated email from the ASF dual-hosted git repository.

tysonnorris pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
 new 113a915  Dynamic LoadBalancer load using SpiLoader (#2984)
113a915 is described below

commit 113a91500839dd90dfe4ddc74776bd95cad69ec6
Author: kpavel 
AuthorDate: Tue Jan 23 02:48:11 2018 +0200

Dynamic LoadBalancer load using SpiLoader (#2984)

* Add a container pool/invoker loadbalancer SPI.

* Refactor invoker health tuple to proper type for cleaner SPI interface.

Rename LoadBalancerService to ContainerPoolBalancer.
Split into two files.
---
 common/scala/src/main/resources/reference.conf |   1 +
 .../scala/whisk/core/controller/Controller.scala   |  16 +--
 .../scala/whisk/core/controller/RestAPIs.scala |  14 +--
 ...erService.scala => ContainerPoolBalancer.scala} | 124 -
 .../core/loadBalancer/InvokerSupervision.scala |  10 +-
 .../whisk/core/loadBalancer/LoadBalancer.scala |  83 ++
 .../controller/test/ControllerTestCommon.scala |   1 +
 ...cala => ContainerPoolBalancerObjectTests.scala} |  54 -
 .../test/InvokerSupervisionTests.scala |   3 +-
 9 files changed, 180 insertions(+), 126 deletions(-)

diff --git a/common/scala/src/main/resources/reference.conf 
b/common/scala/src/main/resources/reference.conf
index 45543e5..4530aef 100644
--- a/common/scala/src/main/resources/reference.conf
+++ b/common/scala/src/main/resources/reference.conf
@@ -3,4 +3,5 @@ whisk.spi{
   MessagingProvider = whisk.connector.kafka.KafkaMessagingProvider
   ContainerFactoryProvider = 
whisk.core.containerpool.docker.DockerContainerFactoryProvider
   LogStoreProvider = 
whisk.core.containerpool.logging.DockerToActivationLogStoreProvider
+  LoadBalancerProvider = whisk.core.loadBalancer.ContainerPoolBalancer
 }
diff --git 
a/core/controller/src/main/scala/whisk/core/controller/Controller.scala 
b/core/controller/src/main/scala/whisk/core/controller/Controller.scala
index ba58452..53408c3 100644
--- a/core/controller/src/main/scala/whisk/core/controller/Controller.scala
+++ b/core/controller/src/main/scala/whisk/core/controller/Controller.scala
@@ -46,7 +46,7 @@ import whisk.core.entitlement._
 import whisk.core.entity._
 import whisk.core.entity.ActivationId.ActivationIdGenerator
 import whisk.core.entity.ExecManifest.Runtimes
-import whisk.core.loadBalancer.{LoadBalancerService}
+import whisk.core.loadBalancer.LoadBalancerProvider
 import whisk.http.BasicHttpService
 import whisk.http.BasicRasService
 import whisk.spi.SpiLoader
@@ -117,7 +117,8 @@ class Controller(val instance: InstanceId,
   })
 
   // initialize backend services
-  private implicit val loadBalancer = new LoadBalancerService(whiskConfig, 
instance, entityStore)
+  private implicit val loadBalancer =
+SpiLoader.get[LoadBalancerProvider].loadBalancer(whiskConfig, instance)
   private implicit val entitlementProvider = new 
LocalEntitlementProvider(whiskConfig, loadBalancer)
   private implicit val activationIdFactory = new ActivationIdGenerator {}
   private implicit val logStore = 
SpiLoader.get[LogStoreProvider].logStore(actorSystem)
@@ -137,12 +138,13 @@ class Controller(val instance: InstanceId,
*/
   private val internalInvokerHealth = {
 implicit val executionContext = actorSystem.dispatcher
-
 (path("invokers") & get) {
   complete {
-loadBalancer.allInvokers.map(_.map {
-  case (instance, state) => s"invoker${instance.toInt}" -> 
state.asString
-}.toMap.toJson.asJsObject)
+loadBalancer
+  .invokerHealth()
+  .map(_.map {
+case i => s"invoker${i.id.toInt}" -> i.status.asString
+  }.toMap.toJson.asJsObject)
   }
 }
   }
@@ -163,7 +165,7 @@ object Controller {
 Map(WhiskConfig.controllerInstances -> null) ++
   ExecManifest.requiredProperties ++
   RestApiCommons.requiredProperties ++
-  LoadBalancerService.requiredProperties ++
+  SpiLoader.get[LoadBalancerProvider].requiredProperties ++
   EntitlementProvider.requiredProperties
 
   private def info(config: WhiskConfig, runtimes: Runtimes, apis: 
List[String]) =
diff --git 
a/core/controller/src/main/scala/whisk/core/controller/RestAPIs.scala 
b/core/controller/src/main/scala/whisk/core/controller/RestAPIs.scala
index ffcf01b..161ef4b 100644
--- a/core/controller/src/main/scala/whisk/core/controller/RestAPIs.scala
+++ b/core/controller/src/main/scala/whisk/core/controller/RestAPIs.scala
@@ -46,7 +46,7 @@ import whisk.core.entity._
 import whisk.core.entity.ActivationId.ActivationIdGenerator
 import whisk.core.entity.WhiskAuthStore
 import whisk.core.entity.types._
-import whisk.core.loadBalancer.LoadBalancerService
+import whisk.core.loadBalancer.LoadBalancer
 import whisk.http.Messages
 
 /**
@@ -161,7 +161,7 @@ cla

[incubator-openwhisk-cli] branch master updated: Use regular old gogradle (#207)

2018-01-22 Thread dubeejw
This is an automated email from the ASF dual-hosted git repository.

dubeejw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git


The following commit(s) were added to refs/heads/master by this push:
 new fdbf506  Use regular old gogradle (#207)
fdbf506 is described below

commit fdbf5065a2b497cde69705419cbe6d38755f9da2
Author: Jonathan Springer 
AuthorDate: Mon Jan 22 22:06:14 2018 -0500

Use regular old gogradle (#207)
---
 .travis.yml|  5 +
 build.gradle   | 50 +-
 tools/travis/test_openwhisk.sh |  4 ++--
 3 files changed, 4 insertions(+), 55 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index af2f0bd..c4563b9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,7 +16,6 @@ env:
 - build_file_name=wsk
 - zip_file_name=OpenWhisk_CLI
 
-
 git:
   depth: 3
 
@@ -26,8 +25,6 @@ before_install:
 install:
   - cd $TRAVIS_BUILD_DIR/..
   - pip install --upgrade pip setuptools
-  - git clone https://github.com/jonpspri/gogradle.git
-  - cd gogradle && ./gradlew --console=plain assemble
 
 before_script:
   - cd $TRAVIS_BUILD_DIR/..
@@ -41,7 +38,7 @@ script:
   - ./tools/travis/test_openwhisk.sh
 
 after_success:
-  - DEPLOY_BUILD_READY=true
+  - export DEPLOY_BUILD_READY=true
   # This tag is automatically generated for the latest merged commit in master 
branch.
   - if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_EVENT_TYPE" == "push" ] 
&& [ "$TRAVIS_OS_NAME" == "linux" ] ; then
   git config --global user.email "bui...@travis-ci.com";
diff --git a/build.gradle b/build.gradle
index 3a6d6ef..d94e87f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,44 +1,7 @@
-/*
-Holding these lines for when gogradle 0.8.2 is released (hopefully with
-pull #194 (https://github.com/gogradle/gogradle/pull/194)
-
 plugins {
-id 'com.github.blindpirate.gogradle' version '0.8.2'
-}
-*/
-
-buildscript {
-repositories {
-mavenLocal()
-jcenter()
-}
-dependencies {
-classpath "org.antlr:antlr4:4.6"
-classpath group: 'com.google.inject', name: 'guice', version: '4.1.0'
-classpath group: 'org.apache.commons', name: 'commons-lang3', version: 
'3.5'
-classpath group: 'org.apache.commons', name: 'commons-collections4', 
version: '4.1'
-classpath group: 'commons-codec', name: 'commons-codec', version: 
'1.10'
-classpath group: 'commons-io', name: 'commons-io', version: '2.5'
-classpath 'com.google.guava:guava:20.0'
-classpath 'com.github.zafarkhaja:java-semver:0.9.0'
-classpath group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
-classpath group: 'com.fasterxml.jackson.core', name: 
'jackson-databind', version: '2.8.5'
-classpath group: 'com.fasterxml.jackson.core', name: 
'jackson-annotations', version: '2.8.5'
-classpath group: 'com.google.code.findbugs', name: 'annotations', 
version: '3.0.1'
-classpath group: 'com.fasterxml.jackson.dataformat', name: 
'jackson-dataformat-yaml', version: '2.8.5'
-classpath group: 'net.lingala.zip4j', name: 'zip4j', version: '1.3.2'
-classpath group: 'org.apache.ant', name: 'ant', version: '1.10.0'
-classpath group: 'com.typesafe.sbt', name: 'sbt-interface', version: 
'0.13.13'
-classpath group: 'com.fasterxml.jackson.dataformat', name: 
'jackson-dataformat-xml', version: '2.6.3'
-classpath group: 'org.codehaus.woodstox', name: 'woodstox-core-asl', 
version: '4.4.1'
-classpath group: 'org.jooq', name: 'joor', version: '0.9.6'
-classpath 'com.moandjiezana.toml:toml4j:0.7.2'
-classpath files('../gogradle/build/libs/gogradle-0.8.1.jar')
-}
+id 'com.github.blindpirate.gogradle' version '0.8.1'
 }
 
-apply plugin: 'com.github.blindpirate.gogradle'
-
 golang {
 packagePath = 'github.com/apache/incubator-openwhisk-cli' as String
 buildTags = (rootProject.findProperty('goTags')?:'').split(',')
@@ -222,17 +185,6 @@ task compile(type: Copy, dependsOn: goBuild) {
 }
 
 /*
-Set up the goTest task to print useful information to Stdout:
- */
-goTest.generateTestReport = { testClassResults ->
-testClassResults*.results.flatten()*.failures.flatten().each() { failure ->
-logger.quiet( '-' * 40 )
-logger.quiet(failure.message)
-logger.quiet( '-' * 40 )
-}
-}
-
-/*
 For each platform, create an individual archive in a platform appropriate
 format (tarball for Linux, zipfile for Mac & Windows).
  */
diff --git a/tools/travis/test_openwhisk.sh b/tools/travis/test_openwhisk.sh
index 2370521..67b1cec 100755
--- a/tools/travis/test_openwhisk.sh
+++ b/tools/travis/test_openwhisk.sh
@@ -49,7 +49,7 @@ export OPENWHISK_HOME
 #
 #  Run Unit and native tests
 #
-./gradlew --console=plain goTest -PgoTags=unit,native
+./gradlew --console=plain --info goTest -PgoTags=unit,native
 
 #
 #  Set up the OpenWhisk env

[incubator-openwhisk-cli] annotated tag latest updated (4d5037b -> ca4b22a)

2018-01-22 Thread csantanapr
This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a change to annotated tag latest
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git.


*** WARNING: tag latest was modified! ***

from 4d5037b  (tag)
  to ca4b22a  (tag)
 tagging fdbf5065a2b497cde69705419cbe6d38755f9da2 (commit)
 replaces 1.0.0
  by Travis CI
  on Tue Jan 23 03:40:57 2018 +

- Log -
Generated tag from Travis CI build 735
---

from 51e39ef  Fix environment variable definition (#205)
 add fdbf506  Use regular old gogradle (#207)

No new revisions were added by this update.

Summary of changes:
 .travis.yml|  5 +
 build.gradle   | 50 +-
 tools/travis/test_openwhisk.sh |  4 ++--
 3 files changed, 4 insertions(+), 55 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
csantan...@apache.org.