You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ib...@apache.org on 2019/02/12 12:25:12 UTC

[incubator-mxnet] branch master updated: Julia: enable integration test (#14025)

This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 8a63bde  Julia: enable integration test (#14025)
8a63bde is described below

commit 8a63bdecf2d9f12d34fe5874957ae4c867eb5f5b
Author: Iblis Lin <ib...@hs.ntnu.edu.tw>
AuthorDate: Tue Feb 12 20:24:50 2019 +0800

    Julia: enable integration test (#14025)
---
 ci/docker/runtime_functions.sh  | 1 +
 ci/jenkins/Jenkins_steps.groovy | 4 ++--
 julia/src/executor.jl           | 2 +-
 julia/test/runtests.jl          | 2 +-
 4 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/ci/docker/runtime_functions.sh b/ci/docker/runtime_functions.sh
index 63a2a1b..93f2d8c 100755
--- a/ci/docker/runtime_functions.sh
+++ b/ci/docker/runtime_functions.sh
@@ -953,6 +953,7 @@ unittest_ubuntu_cpu_julia() {
     export PATH="$1/bin:$PATH"
     export MXNET_HOME='/work/mxnet'
     export JULIA_DEPOT_PATH='/work/julia-depot'
+    export INTEGRATION_TEST=1
 
     julia -e 'using InteractiveUtils; versioninfo()'
 
diff --git a/ci/jenkins/Jenkins_steps.groovy b/ci/jenkins/Jenkins_steps.groovy
index 5986eaf..cfbf484 100644
--- a/ci/jenkins/Jenkins_steps.groovy
+++ b/ci/jenkins/Jenkins_steps.groovy
@@ -1028,7 +1028,7 @@ def test_unix_r_gpu() {
 def test_unix_julia07_cpu() {
     return ['Julia 0.7: CPU': {
       node(NODE_LINUX_CPU) {
-        ws('workspace/ut-julia07-cpu') {
+        ws('workspace/ut-it-julia07-cpu') {
           timeout(time: max_time, unit: 'MINUTES') {
             utils.unpack_and_init('cpu', mx_lib)
             utils.docker_run('ubuntu_cpu', 'unittest_ubuntu_cpu_julia07', false)
@@ -1041,7 +1041,7 @@ def test_unix_julia07_cpu() {
 def test_unix_julia10_cpu() {
     return ['Julia 1.0: CPU': {
       node(NODE_LINUX_CPU) {
-        ws('workspace/ut-julia10-cpu') {
+        ws('workspace/ut-it-julia10-cpu') {
           timeout(time: max_time, unit: 'MINUTES') {
             utils.unpack_and_init('cpu', mx_lib)
             utils.docker_run('ubuntu_cpu', 'unittest_ubuntu_cpu_julia10', false)
diff --git a/julia/src/executor.jl b/julia/src/executor.jl
index 29c21c8..e565617 100644
--- a/julia/src/executor.jl
+++ b/julia/src/executor.jl
@@ -169,7 +169,7 @@ function simple_bind(self::SymbolicNode, ctx::Context;
     end
   end
 
-  aux_arrays = [zeros(shape, ctx) for shape in aux_shapes]
+  aux_arrays = NDArray[zeros(shape, ctx) for shape in aux_shapes]
   return bind(self, ctx, arg_arrays, args_grad=grad_arrays, grad_req=grad_req, aux_states=aux_arrays)
 end
 
diff --git a/julia/test/runtests.jl b/julia/test/runtests.jl
index 4e5f273..e75df67 100644
--- a/julia/test/runtests.jl
+++ b/julia/test/runtests.jl
@@ -39,7 +39,7 @@ include(joinpath(@__DIR__, "common.jl"))
   test_dir(joinpath(@__DIR__, "unittest"))
 
   # run the basic MNIST mlp example
-  if haskey(ENV, "CONTINUOUS_INTEGRATION")
+  if haskey(ENV, "INTEGRATION_TEST")
     @testset "MNIST Test" begin
       include(joinpath(BASEDIR, "examples", "mnist", "mlp-test.jl"))
     end