Skip to content
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

Use Kafka Binaries for Integration Tests (Issue #176) #193

Merged
merged 10 commits into from
Aug 14, 2014
Merged

Use Kafka Binaries for Integration Tests (Issue #176) #193

merged 10 commits into from
Aug 14, 2014

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Aug 13, 2014

Downloads are from https://archive.apache.org/dist/kafka/
Remove git submodules used for source checkouts
Use Travis Environment vars to parallelize tests across kafka versions

@wizzat
Copy link
Collaborator

wizzat commented Aug 13, 2014

+1! Thanks - I was about to have to do this myself. Any reservations about merging?

@dpkp
Copy link
Owner Author

dpkp commented Aug 13, 2014

i think it's good to merge. only additional bit I have been thinking about is whether we should remove build_integration.sh and have python download and install the binary tarballs (I started down that path with a simple classmethod to TestFixture but it isn't complete yet). right now it uses wget but I dont know whether that is available by default on all platforms (windows?)

Dana Powers added 2 commits August 13, 2014 08:14
- previous 0.8.1 src appears to have actually been 0.8.1.1
  based on git submodule commit.  So technically this adds back 0.8.1
  to the test suite.
@mumrah
Copy link
Collaborator

mumrah commented Aug 13, 2014

Historical note. I didn't do this originally for a few reasons:

  • No 0.8.x binaries yet published
  • Wanted to test the library against unreleased versions of Kafka (i.e., trunk)
  • https://archive.apache.org is down occasionally, so it's not good to rely on it for your build

That last one is probably only a big deal for people relying on it for deployment automation. It's probably OK if one out of every 10000 Travis builds fails due to ASF server issues.

Dana Powers added 2 commits August 13, 2014 08:54
To override defaults, use
  `tox -- --your --nosetest --options --here`
Update default nosetest settings to use verbose logging and show test ids
add .coverage and .noseids to .gitignore
Add example for running single unit test to README
@wizzat
Copy link
Collaborator

wizzat commented Aug 13, 2014

Yeah, I totally agree. It'll be important to start testing against 0.8.2 Soon(tm), and that's something that they just don't publish incremental binaries for. However, building so many versions of Kafka can make the tests take forever. I'd be in favor of keeping a "trunk" version of the code, but published versions should definitely used the published binaries.

@dpkp
Copy link
Owner Author

dpkp commented Aug 13, 2014

Let's merge this and support testing with KAFKA_VERSION=trunk as a separate task (whose priority will increase as 0.8.2 release gets closer).

@dpkp
Copy link
Owner Author

dpkp commented Aug 14, 2014

the PR now supports testing against trunk builds via SCALA_VERSION=2.10.1 KAFKA_VERSION=trunk ./build_integration.sh and KAFKA_VERSION=trunk tox

My local testing suggests there are a lot of failing tests so I did not enable in .travis.yml .

wizzat added a commit that referenced this pull request Aug 14, 2014
Use Kafka Binaries for Integration Tests (Issue #176)
@wizzat wizzat merged commit 5a02d63 into dpkp:master Aug 14, 2014
@wizzat
Copy link
Collaborator

wizzat commented Aug 14, 2014

Sounds great. We can wait until 0.8.2 gets closer before worrying overly much about trunk builds. Thanks for this! :)

@dpkp dpkp deleted the test_apache_binary_release branch August 28, 2014 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants