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

tests/KStreams: re-enable Wikipedia test #5615

Merged
merged 1 commit into from
Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ RUN apt update && \
# Install kafka streams examples. This is a very slow step (tens of minutes), doing
# many maven dependency downloads without any parallelism. To avoid re-running it
# on unrelated changes in other steps, this step is as early on the Dockerfile as possible.
RUN git -C /opt clone --branch ducktape2 https://github.com/redpanda-data/kafka-streams-examples.git && \
cd /opt/kafka-streams-examples && mvn -DskipTests=true clean package
RUN git -C /opt clone https://github.com/redpanda-data/kafka-streams-examples.git && \
cd /opt/kafka-streams-examples && git reset --hard da50fa2723840f6388f99a1dae8d58104fd7650d && \
mvn -DskipTests=true clean package

# Install our in-tree Java test clientst
RUN mkdir -p /opt/redpanda-tests
Expand Down
45 changes: 45 additions & 0 deletions tests/rptest/tests/compatibility/kafka_streams_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,51 @@ def test_kafka_streams_page_view(self):
backoff_sec=1)


class KafkaStreamsWikipedia(RedpandaTest):
"""
Test KafkaStreams Wikipedia example which computes, for every minute the
number of new user feeds from the Wikipedia feed irc stream.
"""
topics = (
TopicSpec(name="WikipediaFeed"),
TopicSpec(name="WikipediaStats"),
)

def __init__(self, test_context):
super(KafkaStreamsWikipedia, self).__init__(test_context=test_context,
enable_pp=True,
enable_sr=True)

self._timeout = 300

@ok_to_fail # https://github.com/redpanda-data/redpanda/issues/2889
@cluster(num_nodes=5)
def test_kafka_streams_wikipedia(self):
example_jar = KafkaStreamExamples.KafkaStreamsWikipedia(
self.redpanda, is_driver=False)
example = ExampleRunner(self.test_context,
example_jar,
timeout_sec=self._timeout)

driver_jar = KafkaStreamExamples.KafkaStreamsWikipedia(self.redpanda,
is_driver=True)
driver = ExampleRunner(self.test_context,
driver_jar,
timeout_sec=self._timeout)

# Start the example
example.start()
wait_until(example.condition_met,
timeout_sec=self._timeout,
backoff_sec=1)

# Start the driver
driver.start()
wait_until(driver.condition_met,
timeout_sec=self._timeout,
backoff_sec=1)


class KafkaStreamsSumLambda(KafkaStreamsDriverBase):
"""
Test KafkaStreams SumLambda example that sums odd numbers
Expand Down