[ 
https://issues.apache.org/jira/browse/PIO-17?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15410051#comment-15410051
 ] 

ASF GitHub Bot commented on PIO-17:
-----------------------------------

GitHub user Ziemin opened a pull request:

    https://github.com/apache/incubator-predictionio/pull/267

    [PIO-17] Testing infrastructure

    This PR adds basic integration tests written in python and also a new 
travis configuration using them. Travis will execute unit tests as before, as 
well as the new integration tests in 4 concurrent builds (3 builds for 
different environment configurations for integration tests).
    Example for the current build is 
[here](https://travis-ci.org/Ziemin/incubator-predictionio/builds/150144156) .
    
    What is more, there is an introduction of a docker image, which helps both 
in setting up travis tests and in running tests locally yourself. The image 
itself is currently pulled from my own repo on docker hub - ziemin/pio-testing, 
which should be moved to some official PredictionIO's repository in the future.
    
    Given that there are no official engines, which could be downloaded and 
would work properly with the current develop version, integration tests have 
slightly modified version of recommendation engine in related directory.
    
    More details can be found in /tests/README.md

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Ziemin/incubator-predictionio 
testing-infrastructure

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-predictionio/pull/267.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #267
    
----
commit 0193e2d659838df3d6ee3a21d0ec1a2af6d0ced8
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-22T16:59:49Z

    Set up integration tests infrastructure

commit f2edebc6e7b458b13cfa6cbdcfd9881389d7fc49
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-22T17:16:06Z

    Unset SBT_OPTS nad JVM_OPTS for travis build

commit 486a972fc4d73cd99a99e14be8d417bc9a1bf374
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-22T17:33:05Z

    Fix paths in travis build

commit 3b7fc28dc4252436127204d7e7bb1fcb8f5eb453
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-22T17:36:20Z

    Fix another path

commit d31417a6b592550780f833f0533fc281a71b5989
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-22T17:58:10Z

    Change docker bind path

commit 7049c12da7c94f06cf1c6845015859757d3572d0
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-22T18:39:23Z

    Travis build cleanup

commit 9fd4eb081e7bc0184f84eabe3a6278ee8ebe791e
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-22T20:28:58Z

    Changed JVM options and engine iterations to avoid stack overflow

commit a86b77f13f1fa99245e08af529ff10d5f5203ad5
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-22T20:40:54Z

    Bringing env setup back at travis

commit ad7b9e963f5ed6fa9bf456f5ffd050b2ef6e720c
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-22T20:58:16Z

    Travis tests: Download training data instead of keeping it in the repo

commit 844a33aa752fc6400996ded61d0c053c2616d444
Author: Marcin Ziemiński <[email protected]>
Date:   2016-08-03T20:37:31Z

    Download a proper postgres driver for the docker image

commit 960afb0db6f667f49cb4a6cc537c808946894d61
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-26T21:03:02Z

    Repo initialization

commit 4833688243d2ad3fd9da7ca3b2f6810f003ca931
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-26T21:24:07Z

    Provide base class for all the test cases

commit 7d8976f55501bbe78f9625f7f6a53982687809c0
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-26T21:25:15Z

    Add classmethod decorator

commit 540914e245da1f5c0732c465f4f9121a8d771b50
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-26T23:48:36Z

    Added a test sceleton

commit 487d0f325e34967180ce9bce2109a4795b3fc6be
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-27T22:02:54Z

    Finished a working version of quickstart tutorial test

commit 8eae23929f584f2eb6e16571cc5b38e5f102e9af
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-27T23:45:04Z

    Execute eventserver before all tests

commit d7fdb2864a68ed131f35c2e508ae7ca48feb4d03
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-27T23:59:17Z

    Added XML Junit like test reporting

commit f00b319529bed8a913012fdeb8c15047e7faf3fd
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-28T20:30:05Z

    Added doc comments, logging and cleaned up a bit

commit f139d80d371ba19f5dc94802769b77f1ce928212
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-28T22:14:03Z

    Added BasicAppUsecases test

commit 7522e068c1bcad1ff5d9be4414ad9e406ea6637a
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-28T22:16:17Z

    Removed build files

commit 39e876813fdf5c168d599200e0f665f1fdc870d2
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-28T22:25:29Z

    Added BasicAppUsecases test

commit a05fcd38e0c14a635dcf4c36c60b0c311f063c9d
Author: Marcin Ziemiński <[email protected]>
Date:   2016-07-29T16:46:53Z

    Added globals.py file

commit c2f4a145b57ce93ea0e25c9bada6e32de4063f12
Author: Chan Lee <[email protected]>
Date:   2016-07-29T17:28:53Z

    Generate test reports in separate directory

commit 92634f0c64ce40ede4b20b2a4ad62d90e72cd7d4
Author: Chan Lee <[email protected]>
Date:   2016-07-29T22:21:05Z

    Add time delay after launching eventserver before executing test suite

commit c1ecef569ebd166a1dc19696afcfc08be7880458
Author: Chan Lee <[email protected]>
Date:   2016-08-01T18:48:00Z

    Seperate util methods for import/send events batch
    
    send_events_batch makes POST request to /batch/events.json
    import_events_batch imports events from file

commit e4c23bc63e0b90b99d823fe41ded097b7cffeede
Author: Chan Lee <[email protected]>
Date:   2016-08-01T20:59:51Z

    Fix util method for importing events batch

commit 7192fbbe8a89a44188875b27aead305c3db3c019
Author: Chan Lee <[email protected]>
Date:   2016-08-01T22:08:54Z

    Create integration test for eventserver

commit 352eb5e04c8ce5e80bee9c09fbeaee5553b00d38
Author: Chan Lee <[email protected]>
Date:   2016-08-01T23:40:01Z

    Change indentation to 2 spaces and add some additional comments
    
    Document that send_events_batch() has batch size limit of 50

commit f449bdd4e551bc00e7324f13f672ce3d64c6f03a
Author: Chan Lee <[email protected]>
Date:   2016-08-02T17:08:15Z

    Add channel param for sending events in utils.py

commit 7d4da94a06921cd8dda2581d506b5426e9a692cb
Author: Chan Lee <[email protected]>
Date:   2016-08-03T18:53:48Z

    Fix indentation error in quickstart_test

----


> Add integration tests for PredictionIO
> --------------------------------------
>
>                 Key: PIO-17
>                 URL: https://issues.apache.org/jira/browse/PIO-17
>             Project: PredictionIO
>          Issue Type: New Feature
>            Reporter: Chan
>              Labels: integration-test
>
> Currently, TravisCI is executed only on unit tests inside the repository. To 
> make future development more efficient, we need to add integration tests. 
> They should be agnostic to environment settings, using prepared docker images 
> for various combinations of dependencies (postgres, hbase, spark, 
> elasticsearch).
> We are preparing a basic integration test suite that will soon be ready for a 
> pull request.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to