-
Notifications
You must be signed in to change notification settings - Fork 100
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
Simple compatibility #51
Conversation
@@ -11,4 +11,4 @@ dist/ | |||
|
|||
# ducktape | |||
.ducktape | |||
*-test-results | |||
*results |
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.
Not a major issue, but is this possibly too broad? It ignores anything ending in results. That's probably unusual for a single file (which will have an extension), but it seems like this could unintentionally match directories.
Any reason the line shouldn't be results/
which would only match the results directory at the top level?
Basic patch looks good (and very helpful!). But the tests fail. It's an issue with MockArgs, which is related to one of my comments about passing in the argparse output directly rather than using, e.g., kwargs. |
…pecific matching pattern for ducktape results output. Expanded --no-teardown help comment.
thanks @ewencp , uploaded changes and filed an issue for parse args. Unit tests pass again. |
@granders LGTM. Two final questions.
|
@ewencp _kill_running_processes lives on as a kludgy cleanup redundancy mechanism. It probably should be removed or made more general if people start using ducktape outside of kafka and muckrake. 2 Hm... at first glance I didn't see it as useful, but here are some thoughts:
|
|
|
Right, and I've tried tracking state across test runs before. It tends to become a huge mess since there's potentially arbitrary state per service and test, which means you need to provide a storage API to both services and tests. Plus track enough stuff about the current cluster state to restore things properly. Plus it tends not to handle external intervention well (e.g. a service was supposedly running, but you ran vagrant halt + vagrant up in between and now nothing is running). So if we just leave it with the option as implemented, how should we handle the cleanup phase. Do we need a separate command for that? Or should we defer that to another issue which addresses the issue generally, and allows for a project-specific implementation? |
Ok, no state tracking. The solution to cleanup phase (even a hacky one) requires a bit of planning still, so I'll defer to #56 |
Added wait_until method to address the common pattern of waiting for some condition and timing out |
@ewencp This is ready for another look. |
LGTM |
Adds no-teardown option and fixes bug with log collection.
Ignore the branch name - this was meant as a companion commit to some muckrake compatibility work, but this is really just a few tiny changes.