-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Improve Tests, fix connection error timeout, other issues #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 48 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
6ee1514
Remove test support for py26 since it's broken
wizzat 80b3335
Split test files, modify test_protocol
wizzat d59cbf6
Comment out all of test_integration because it currently does not work
wizzat f0def43
Explicit testing of protocol errors. Make tests more explicit, and s…
wizzat d7c5bbf
Reinstate test_integrate, make test_protocol more explicit, create te…
wizzat ac9cf9e
Convert serveral tests to struct.pack
wizzat 3bde6d6
Convert more tests to struct.pack
wizzat a3c781f
Merge branch 'master' into add_tests
wizzat 853d452
Update more tests, fix intermittent failure
wizzat 115c20c
Convert test_encode_fetch_request to struct.pack format, improve test…
wizzat 5c58151
Add python-snappy to tox dependencies. Fix snappy protocol test
wizzat 1cb27f9
Add tests for encode_offset_request
wizzat 58b4d0f
Add commit offset request test
wizzat 8f179d8
Add encode_offset_fetch_request test
wizzat 12fae12
Add final tests for 100% coverage of protocol.py from test/test_proto…
wizzat 385f2d8
Refactor away _get_conn_for_broker. Fix bug in _get_conn
wizzat 7eaca8e
Split out and speed up producer tests
wizzat 8983e73
Split up and speed up producer based integration tests
wizzat 1984dab
Finish breaking out integration tests
wizzat a7cbfd3
Fix bug in socket timeout per PR #161 by maciejkula, add test
wizzat d35b8fd
Merge branch 'master' into add_tests
wizzat b6262e4
Update fixtures to eliminate extraneous logging on non-errors, split …
wizzat 6628c10
Move kafka-src to servers/0.8.0/kafka-src, move test/resources to ser…
wizzat 7e5c847
Add support for kafka 0.8.1
wizzat 7c21dfe
Update README
wizzat 86e1ac7
Add test support for multiple versions of kafka. Uncomment first 0.8…
wizzat 8a1f2e6
Split out kafka version environments, default tox no longer runs any …
wizzat 764f205
Update consumer_integration to flip the autocommit switch when testin…
wizzat 583d3ae
Fix Python 2.6 support
wizzat 0e50f33
Fix last remaining test by making autocommit more intuitive
wizzat 57913f9
Various fixes
wizzat 0d57c27
Make BrokerRequestError a base class, make subclasses for each broker…
wizzat 66152b2
Fix log directory as per documentation: http://kafka.apache.org/08/do…
mgilbir be06b30
Build kafka 0.8.1 for only one version of scala
mgilbir 7a7a818
Merge branch 'add_tests' into exception_refactor
wizzat 636778a
Make commit() check for errors instead of simply assert no error
wizzat f6f298f
Update .travis.yml to support new test suite
wizzat 4d9236b
Merge branch 'exception_refactor' into add_tests
wizzat 169c196
Update travis.yml
wizzat 7108200
Attempt to install libsnappy in the travis environment
wizzat 87675cc
Remove libsnappy-java
wizzat 06ab5d1
Update travis.yml based on http://alexgaynor.net/2014/jan/06/why-trav…
wizzat 26ae502
Temporarily remove pypy support
wizzat 7a1e227
Skip flaky test between osx/linux
wizzat c307a3a
Add missing import
wizzat 83d9571
Temporarily remove Python26 support from travis.yml
wizzat b120ca5
Attempt to reenable py26 and pypy builds
wizzat 99320fb
Add pypy back to tox.ini
wizzat efcf58b
Attempt to fix travis build. Decrease complexity of service.py in fav…
wizzat b053da2
Merge branch 'master' into add_tests
wizzat b81bf5f
Make test suite more robust against very slow test suites
wizzat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "kafka-src"] | ||
path = kafka-src | ||
url = git://github.com/apache/kafka.git | ||
[submodule "servers/0.8.0/kafka-src"] | ||
path = servers/0.8.0/kafka-src | ||
url = https://github.com/apache/kafka.git | ||
[submodule "servers/0.8.1/kafka-src"] | ||
path = servers/0.8.1/kafka-src | ||
url = https://github.com/apache/kafka.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
language: python | ||
|
||
python: | ||
- 2.7 | ||
- 2.6 | ||
- 2.7 | ||
- pypy | ||
|
||
before_install: | ||
- git submodule update --init --recursive | ||
- cd kafka-src | ||
- ./sbt clean update package assembly-package-dependency | ||
- cd - | ||
- git submodule update --init --recursive | ||
- sudo apt-get install libsnappy-dev | ||
- ./build_integration.sh | ||
|
||
install: | ||
- pip install . | ||
# Deal with issue on Travis builders re: multiprocessing.Queue :( | ||
# See https://github.com/travis-ci/travis-cookbooks/issues/155 | ||
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm | ||
- pip install tox | ||
- pip install . | ||
# Deal with issue on Travis builders re: multiprocessing.Queue :( | ||
# See https://github.com/travis-ci/travis-cookbooks/issues/155 | ||
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm | ||
|
||
script: | ||
- python -m test.test_unit | ||
- python -m test.test_integration | ||
- tox -e `./travis_selector.sh $TRAVIS_PYTHON_VERSION` | ||
- KAFKA_VERSION=0.8.0 tox -e `./travis_selector.sh $TRAVIS_PYTHON_VERSION` | ||
- KAFKA_VERSION=0.8.1 tox -e `./travis_selector.sh $TRAVIS_PYTHON_VERSION` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
git submodule update --init | ||
(cd servers/0.8.0/kafka-src && ./sbt update package assembly-package-dependency) | ||
(cd servers/0.8.1/kafka-src && ./gradlew jar) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks unnecessary? would like to avoid import *