Skip to content

Commit

Permalink
HOTFIX: Adding init file so streams benchmark is autodiscovered
Browse files Browse the repository at this point in the history
Without this file the benchmark does not run nightly.

Author: Eno Thereska <eno.thereska@gmail.com>

Reviewers: Geoff Anderson <geoff@confluent.io>, Ismael Juma <ismael@juma.me.uk>

Closes #1645 from enothereska/hotfix-streams-test
  • Loading branch information
enothereska authored and ijuma committed Jul 21, 2016
1 parent 44723ca commit f1b37ee
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
15 changes: 15 additions & 0 deletions tests/kafkatest/benchmarks/streams/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# see kafka.server.KafkaConfig for additional details and defaults
11 changes: 2 additions & 9 deletions tests/kafkatest/services/performance/streams_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,8 @@ def start_node(self, node):
def collect_data(self, node):
# Collect the data and return it to the framework
output = node.account.ssh_capture("grep Performance %s" % self.STDOUT_FILE)
data = []
data.append('{')
data = {}
for line in output:
parts = line.split(':')
data.append('\'')
data.append(parts[0])
data.append('\'')
data.append(':')
data.append(parts[1]);
data.append('}')
data = ''.join(data)
data[parts[0]] = float(parts[1])
return data
1 change: 0 additions & 1 deletion tests/kafkatest/tests/streams/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# see kafka.server.KafkaConfig for additional details and defaults

0 comments on commit f1b37ee

Please sign in to comment.