[GitHub] csantanapr commented on issue #10: Can't run tests in OSX
csantanapr commented on issue #10: Can't run tests in OSX URL: https://github.com/apache/incubator-openwhisk-runtime-go/issues/10#issuecomment-391215081 This is working on OSX with `gradle test` and `cd openwhisk; go test` This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] csantanapr commented on issue #10: Can't run tests in OSX
csantanapr commented on issue #10: Can't run tests in OSX URL: https://github.com/apache/incubator-openwhisk-runtime-go/issues/10#issuecomment-389839011 @sciabarra I went ahead and enabled Travis to run on master branch daily to see how often it fails and which tests fail This way we can help collect data on where is the code or tests having trouble. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] csantanapr commented on issue #10: Can't run tests in OSX
csantanapr commented on issue #10: Can't run tests in OSX URL: https://github.com/apache/incubator-openwhisk-runtime-go/issues/10#issuecomment-389832783 Tests sometimes fail on Travis also And also fail in OSX also Maybe there is a race condition on the tests with concurrent procs? This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] csantanapr commented on issue #10: Can't run tests in OSX
csantanapr commented on issue #10: Can't run tests in OSX URL: https://github.com/apache/incubator-openwhisk-runtime-go/issues/10#issuecomment-389685837 Running a second time after failure above ^^ now it works ``` $ gradle test --info Initialized native services in: /Users/csantana23/.gradle/native The client will now receive all logging from the daemon (pid: 81040). The daemon log file: /Users/csantana23/.gradle/daemon/4.7/daemon-81040.out.log Starting 12th build in daemon [uptime: 1 hrs 29 mins 49.093 secs, performance: 99%, no major garbage collections] Using 8 worker leases. Starting Build Settings evaluated using settings file '/Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/settings.gradle'. Projects loaded. Root project using build file '/Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/build.gradle'. Included projects: [root project 'runtime-golang', project ':actionProxyLoop', project ':golang1.10'] > Configure project : Evaluating root project 'runtime-golang' using build file '/Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/build.gradle'. Found go 1.10.2 in /Users/csantana23/.gimme/versions/go1.10.2.darwin.amd64/bin/go, use it. > Configure project :actionProxyLoop Evaluating project ':actionProxyLoop' using build file '/Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/actionProxyLoop/build.gradle'. > Configure project :golang1.10 Evaluating project ':golang1.10' using build file '/Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/golang1.10/build.gradle'. All projects evaluated. Selected primary task 'test' from project : Tasks to be executed: [task ':prepare', task ':resolveBuildDependencies', task ':resolveTestDependencies', task ':installDependencies', task ':vendor', task ':test'] :prepare (Thread[Task worker for ':',5,main]) started. > Task :prepare Task ':prepare' is not up-to-date because: Task has not declared any outputs despite executing actions. Use project GOPATH: /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/.gogradle/project_gopath :prepare (Thread[Task worker for ':',5,main]) completed. Took 0.0 secs. :resolveBuildDependencies (Thread[Task worker for ':',5,main]) started. > Task :resolveBuildDependencies UP-TO-DATE Skipping task ':resolveBuildDependencies' as it is up-to-date. :resolveBuildDependencies (Thread[Task worker for ':',5,main]) completed. Took 0.005 secs. :resolveTestDependencies (Thread[Task worker for ':',5,main]) started. > Task :resolveTestDependencies UP-TO-DATE Skipping task ':resolveTestDependencies' as it is up-to-date. :resolveTestDependencies (Thread[Task worker for ':',5,main]) completed. Took 0.004 secs. :installDependencies (Thread[Task worker for ':',5,main]) started. > Task :installDependencies Task ':installDependencies' is not up-to-date because: Task has not declared any outputs despite executing actions. /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/BurntSushi/toml is up-to-date, skip installing github.com/BurntSushi/toml#a368813c5e648fee92e5f6c30e3944ff9d5e8895 /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/apache/incubator-openwhisk-client-go is up-to-date, skip installing github.com/apache/incubator-openwhisk-client-go#e452b524cd745f71c913c5acccf72a8daba6dc71 /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/cloudfoundry/jibber_jabber is up-to-date, skip installing github.com/cloudfoundry/jibber_jabber#bcc4c8345a21301bf47c032ff42dd1aae2fe3027 /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/davecgh/go-spew is up-to-date, skip installing github.com/davecgh/go-spew:github.com/stretchr/testify#12b6f73e6084dad08a7c6e575284b177ecafbc71/vendor/github.com/davecgh/go-spew /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/fatih/color is up-to-date, skip installing github.com/fatih/color#2d684516a8861da43017284349b7e303e809ac21 /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/google/go-querystring is up-to-date, skip installing github.com/google/go-querystring#53e6ce116135b80d037921a7fdd5138cf32d7a8a /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/h2non/filetype is up-to-date, skip installing github.com/h2non/filetype#cc14fdc9ca0e4c2bafad7458f6ff79fd3947cfbb /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/hokaccha/go-prettyjson is up-to-date, skip installing
[GitHub] csantanapr commented on issue #10: Can't run tests in OSX
csantanapr commented on issue #10: Can't run tests in OSX URL: https://github.com/apache/incubator-openwhisk-runtime-go/issues/10#issuecomment-389685520 With latest from master 1 test is failing. I deleted the directory and did a new git clone. It looks like is random which test fails ``` $ gradle test --info Initialized native services in: /Users/csantana23/.gradle/native The client will now receive all logging from the daemon (pid: 81040). The daemon log file: /Users/csantana23/.gradle/daemon/4.7/daemon-81040.out.log Starting 11th build in daemon [uptime: 1 hrs 26 mins 21.684 secs, performance: 99%, no major garbage collections] Using 8 worker leases. Starting Build Settings evaluated using settings file '/Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/settings.gradle'. Projects loaded. Root project using build file '/Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/build.gradle'. Included projects: [root project 'runtime-golang', project ':actionProxyLoop', project ':golang1.10'] > Configure project : Evaluating root project 'runtime-golang' using build file '/Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/build.gradle'. Found go 1.10.2 in /Users/csantana23/.gimme/versions/go1.10.2.darwin.amd64/bin/go, use it. > Configure project :actionProxyLoop Evaluating project ':actionProxyLoop' using build file '/Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/actionProxyLoop/build.gradle'. > Configure project :golang1.10 Evaluating project ':golang1.10' using build file '/Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/golang1.10/build.gradle'. All projects evaluated. Selected primary task 'test' from project : Tasks to be executed: [task ':prepare', task ':resolveBuildDependencies', task ':resolveTestDependencies', task ':installDependencies', task ':vendor', task ':test'] :prepare (Thread[Task worker for ':',5,main]) started. > Task :prepare Task ':prepare' is not up-to-date because: Task has not declared any outputs despite executing actions. Use project GOPATH: /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/.gogradle/project_gopath :prepare (Thread[Task worker for ':',5,main]) completed. Took 0.0 secs. :resolveBuildDependencies (Thread[Task worker for ':',5,main]) started. > Task :resolveBuildDependencies UP-TO-DATE Skipping task ':resolveBuildDependencies' as it is up-to-date. :resolveBuildDependencies (Thread[Task worker for ':',5,main]) completed. Took 0.004 secs. :resolveTestDependencies (Thread[Task worker for ':',5,main]) started. > Task :resolveTestDependencies UP-TO-DATE Skipping task ':resolveTestDependencies' as it is up-to-date. :resolveTestDependencies (Thread[Task worker for ':',5,main]) completed. Took 0.004 secs. :installDependencies (Thread[Task worker for ':',5,main]) started. > Task :installDependencies Task ':installDependencies' is not up-to-date because: Task has not declared any outputs despite executing actions. /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/BurntSushi/toml is up-to-date, skip installing github.com/BurntSushi/toml#a368813c5e648fee92e5f6c30e3944ff9d5e8895 /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/apache/incubator-openwhisk-client-go is up-to-date, skip installing github.com/apache/incubator-openwhisk-client-go#e452b524cd745f71c913c5acccf72a8daba6dc71 /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/cloudfoundry/jibber_jabber is up-to-date, skip installing github.com/cloudfoundry/jibber_jabber#bcc4c8345a21301bf47c032ff42dd1aae2fe3027 /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/davecgh/go-spew is up-to-date, skip installing github.com/davecgh/go-spew:github.com/stretchr/testify#12b6f73e6084dad08a7c6e575284b177ecafbc71/vendor/github.com/davecgh/go-spew /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/fatih/color is up-to-date, skip installing github.com/fatih/color#2d684516a8861da43017284349b7e303e809ac21 /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/google/go-querystring is up-to-date, skip installing github.com/google/go-querystring#53e6ce116135b80d037921a7fdd5138cf32d7a8a /Users/csantana23/Documents/dev/whisk/git/apache/incubator-openwhisk-runtime-go/vendor/github.com/h2non/filetype is up-to-date, skip installing github.com/h2non/filetype#cc14fdc9ca0e4c2bafad7458f6ff79fd3947cfbb
[GitHub] csantanapr commented on issue #10: Can't run tests in OSX
csantanapr commented on issue #10: Can't run tests in OSX URL: https://github.com/apache/incubator-openwhisk-runtime-go/issues/10#issuecomment-385766817 What about running them using a docker container? I created a docker image using openjdk, then adding go 1.9.2 and try to run the tests and it didn't work I tried with the following Dockerfile ``` FROM openjdk:8-jdk RUN apt-get update && apt-get install -y --no-install-recommends \ g++ \ gcc \ libc6-dev \ make \ pkg-config \ && rm -rf /var/lib/apt/lists/* ENV GOLANG_VERSION 1.10.2 RUN set -eux; \ \ # this "case" statement is generated via "update.sh" dpkgArch="$(dpkg --print-architecture)"; \ case "${dpkgArch##*-}" in \ amd64) goRelArch='linux-amd64'; goRelSha256='4b677d698c65370afa33757b6954ade60347aaca310ea92a63ed717d7cb0c2ff' ;; \ armhf) goRelArch='linux-armv6l'; goRelSha256='529a16b531d4561572db6ba9d357215b58a1953437a63e76dc0c597be9e25dd2' ;; \ arm64) goRelArch='linux-arm64'; goRelSha256='d6af66c71b12d63c754d5bf49c3007dc1c9821eb1a945118bfd5a539a327c4c8' ;; \ i386) goRelArch='linux-386'; goRelSha256='ea4caddf76b86ed5d101a61bc9a273be5b24d81f0567270bb4d5beaaded9b567' ;; \ ppc64el) goRelArch='linux-ppc64le'; goRelSha256='f0748502c90e9784b6368937f1d157913d18acdae72ac75add50e5c0c9efc85c' ;; \ s390x) goRelArch='linux-s390x'; goRelSha256='2266b7ebdbca13c21a1f6039c9f6887cd2c01617d1e2716ff4595307a0da1d46' ;; \ *) goRelArch='src'; goRelSha256='6264609c6b9cd8ed8e02ca84605d727ce1898d74efa79841660b2e3e985a98bd'; \ echo >&2; echo >&2 "warning: current architecture ($dpkgArch) does not have a corresponding Go binary release; will be building from source"; echo >&2 ;; \ esac; \ \ url="https://golang.org/dl/go${GOLANG_VERSION}.${goRelArch}.tar.gz;; \ wget -O go.tgz "$url"; \ echo "${goRelSha256} *go.tgz" | sha256sum -c -; \ tar -C /usr/local -xzf go.tgz; \ rm go.tgz; \ \ if [ "$goRelArch" = 'src' ]; then \ echo >&2; \ echo >&2 'error: UNIMPLEMENTED'; \ echo >&2 'TODO install golang-any from jessie-backports for GOROOT_BOOTSTRAP (and uninstall after build)'; \ echo >&2; \ exit 1; \ fi; \ \ export PATH="/usr/local/go/bin:$PATH"; \ go version ENV GOPATH /go ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" ``` Then created image ``` docker build . -t openjdk_go1_10_2 ``` Then try to build and run the tests ``` docker run --rm -it -v $(pwd):/tmp/test openjdk_go1_10_2 bash -c "cd /tmp/test && ./gradlew build ``` This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services