testcontainers-elixir icon indicating copy to clipboard operation
testcontainers-elixir copied to clipboard

Flaky kafka container test

Open jarlah opened this issue 1 year ago • 4 comments

  1. test with external zookeeper with multiple connected nodes (Testcontainers.Container.KafkaContainerTest) Error: test/container/kafka_container_test.exs:251 ** (MatchError) no match of right hand side value: {:error, [%KafkaEx.Protocol.Produce.Response{topic: "test_topic", partitions: [%{offset: 18446744073709551615, partition: 0, error_code: :unknown_topic_or_partition}]}]} code: {:ok, _} = KafkaEx.produce(topic_name, 0, "hey", worker_name: writer_name, required_acks: 1) stacktrace: test/container/kafka_container_test.exs:267: (test)

jarlah avatar May 09 '24 13:05 jarlah

@Argonus can you take a look at the latest build failures relating to this and see if its fixable

jarlah avatar May 09 '24 13:05 jarlah

Will do, sorry for long response time, but i had busy month :D

Argonus avatar Jun 04 '24 08:06 Argonus

whenever you have time @Argonus :) ill just retry those flaky tests every time time they fail 💀 🤣

jarlah avatar Jul 01 '24 20:07 jarlah

tagged the test as flaky, so it wont affect builds in github

https://github.com/testcontainers/testcontainers-elixir/commit/8d37ef826b33e94c5916a44073d6779f3a799085

jarlah avatar Nov 06 '24 06:11 jarlah