You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwhisk.apache.org by Tyson Norris <tn...@adobe.com.INVALID> on 2018/10/01 23:44:55 UTC

Travis problem with runtime-docker

Hi –
I’m troubleshooting a problem with this PR build [1] where a test fails due to a difference in exception handling between akka http client (now used in runtime test base class), and apache http client. This change was merged to OW master some time ago in [2].

The problem I’m having is that the builds and test work great locally. The travis build is behaving as if the tests base classes (built by cloning incubator-openwhisk, and running `./gradlew install`) are not installed fresh each build, but I cannot see anywhere in travis config or build scripts where they might be cached. One reason I suspect cacheing (aside from the build failing) is that the elapsed time spent in `./gradlew install` is 15s in travis – this is way faster than I ever see running the same on a clean system locally.

Any ideas?

Thanks
Tyson

[1] https://travis-ci.org/apache/incubator-openwhisk-runtime-docker/builds/435891993
[2] https://github.com/apache/incubator-openwhisk/commit/15bb04a449f621d262c2687a7b8417241f3856b8


Re: Travis problem with runtime-docker

Posted by Tyson Norris <tn...@adobe.com.INVALID>.
Finally tested docker-machine and see the diff with docker-machine vs docker for mac; same test running on my local mac, fails in one but not the other. Closing that PR for now, guessing this may be a subtle diff in the docker daemon version - at least the working version is in main branch already, so my PR is not needed...


On 10/1/18, 5:12 PM, "Tyson Norris" <tn...@adobe.com.INVALID> wrote:

    Of course I just noticed when the `./gradlew install` is fast, is because the openwhisk/tools/travis/setup.sh script does ./gradlew :tests:compileTestScala, which is indeed much slower. 
    
    I also noticed the gradle versions are different between main repo and runtime-docker, so will try out updating runtime-docker to same gradle version...
    
    On 10/1/18, 4:45 PM, "Tyson Norris" <tn...@adobe.com.INVALID> wrote:
    
        Hi –
        I’m troubleshooting a problem with this PR build [1] where a test fails due to a difference in exception handling between akka http client (now used in runtime test base class), and apache http client. This change was merged to OW master some time ago in [2].
        
        The problem I’m having is that the builds and test work great locally. The travis build is behaving as if the tests base classes (built by cloning incubator-openwhisk, and running `./gradlew install`) are not installed fresh each build, but I cannot see anywhere in travis config or build scripts where they might be cached. One reason I suspect cacheing (aside from the build failing) is that the elapsed time spent in `./gradlew install` is 15s in travis – this is way faster than I ever see running the same on a clean system locally.
        
        Any ideas?
        
        Thanks
        Tyson
        
        [1] https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftravis-ci.org%2Fapache%2Fincubator-openwhisk-runtime-docker%2Fbuilds%2F435891993&amp;data=02%7C01%7Ctnorris%40adobe.com%7Ce14b614b2a9e453e1fa408d627fbc0a7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636740359580386259&amp;sdata=UoG9%2BAdazl0VyX%2Ff5Rk%2Bt1FO3rgqiXyhRhRNOZWAXj8%3D&amp;reserved=0
        [2] https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fincubator-openwhisk%2Fcommit%2F15bb04a449f621d262c2687a7b8417241f3856b8&amp;data=02%7C01%7Ctnorris%40adobe.com%7Ce14b614b2a9e453e1fa408d627fbc0a7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636740359580386259&amp;sdata=3nY6p6KaTPIsB6cSKw3rlFSjI1MZsBIr24wkav17dl4%3D&amp;reserved=0
        
        
    
    


Re: Travis problem with runtime-docker

Posted by Tyson Norris <tn...@adobe.com.INVALID>.
Of course I just noticed when the `./gradlew install` is fast, is because the openwhisk/tools/travis/setup.sh script does ./gradlew :tests:compileTestScala, which is indeed much slower. 

I also noticed the gradle versions are different between main repo and runtime-docker, so will try out updating runtime-docker to same gradle version...

On 10/1/18, 4:45 PM, "Tyson Norris" <tn...@adobe.com.INVALID> wrote:

    Hi –
    I’m troubleshooting a problem with this PR build [1] where a test fails due to a difference in exception handling between akka http client (now used in runtime test base class), and apache http client. This change was merged to OW master some time ago in [2].
    
    The problem I’m having is that the builds and test work great locally. The travis build is behaving as if the tests base classes (built by cloning incubator-openwhisk, and running `./gradlew install`) are not installed fresh each build, but I cannot see anywhere in travis config or build scripts where they might be cached. One reason I suspect cacheing (aside from the build failing) is that the elapsed time spent in `./gradlew install` is 15s in travis – this is way faster than I ever see running the same on a clean system locally.
    
    Any ideas?
    
    Thanks
    Tyson
    
    [1] https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftravis-ci.org%2Fapache%2Fincubator-openwhisk-runtime-docker%2Fbuilds%2F435891993&amp;data=02%7C01%7Ctnorris%40adobe.com%7Cdc85e3274e6e46f2524408d627f7eeb2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636740343143609349&amp;sdata=4%2FOZEvMg04O%2BfmGRvvv9QOM0qS4Np6uQDTO%2Fnxi7LSg%3D&amp;reserved=0
    [2] https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fincubator-openwhisk%2Fcommit%2F15bb04a449f621d262c2687a7b8417241f3856b8&amp;data=02%7C01%7Ctnorris%40adobe.com%7Cdc85e3274e6e46f2524408d627f7eeb2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636740343143609349&amp;sdata=dzr76uuIp0DYLF4e%2FpqYvMxUKg5L2lFNTFqzBBlDKyA%3D&amp;reserved=0