Skip to content

Instantly share code, notes, and snippets.

@stanislavkozlovski
Last active December 19, 2023 23:14
Show Gist options
  • Save stanislavkozlovski/8959f7ee59434f774841f4ae2f5228c2 to your computer and use it in GitHub Desktop.
Save stanislavkozlovski/8959f7ee59434f774841f4ae2f5228c2 to your computer and use it in GitHub Desktop.

Hey all,

I've heard various complaints that build times in trunk are taking too long, some taking as much as 8 hours (the timeout) - and this is slowing us down from being able to meet the code freeze deadline.

I took it upon myself to gather up some data in Gradle Enterprise to see if there are any outlier tests that are causing this slowness. Turns out there are, in this particular build - https://ge.apache.org/s/un2hv7n6j374k/ - which took 10 hours and 29 minutes in total

Here are the top offending tests:

  • βœ… - PASS
  • 🟧 - FLAKY
  • ❌ - FAILED

core:test

kafka.api.TransactionsTest - testReadCommittedConsumerShouldNotSeeUndecidedData - 2h 13m ❌

kafka.api.SaslScramSslEndToEndAuthorizationTest# testNoProduceWithDescribeAcl(String, boolean) - 2h 12m ❌

kafka.server.MetadataRequestTest#testRack(String) - 1h 57m ❌

kafka.api.SaslOAuthBearerSslEndToEndAuthorizationTest#testProduceConsumeWithWildcardAcls(String) - 1h 37m ❌

kafka.api.PlaintextEndToEndAuthorizationTest#testProduceConsumeViaAssign(String) - 1h 37m

kafka.admin.ResetConsumerGroupOffsetTest#testResetOffsetsExistingTopicAllGroups() - 1h 1m ❌

storage:test

org.apache.kafka.tiered.storage.integration.TransactionsWithTieredStoreTest#testFencingOnSend(String) 2h 59m 🟧

org.apache.kafka.tiered.storage.integration.TransactionsWithTieredStoreTest - 1h 37m 🟧

org.apache.kafka.tiered.storage.integration.DeleteSegmentsByRetentionSizeTest#executeTieredStorageTest(String) - 1h 38m 🟧

streams:test

org.apache.kafka.streams.integration.TimeWindowedKStreamIntegrationTest shouldAggregateWindowedWithNoGrace ON_WINDOW_UPDATE_false - 1h 2m ❌

org.apache.kafka.streams.kstream.internals.KTableKTableLeftJoinTest - 1h 53m βœ…

clients:test

org.apache.kafka.common.network.Tls12SelectorTest#testNoRouteToHost() - 55m βœ…

org.apache.kafka.clients.consumer.internals.OffsetsRequestManagerTest

misc

Even some of the test harnesses seem to be taking a long time just to run - for a clear example, each individual test under shell:test and raft:test is taking miniscule amounts of time, yet the general test is taking 2 hours

link: https://ge.apache.org/s/un2hv7n6j374k/tests/overview?toggled=WyI6Y29yZTp0ZXN0LTAta2Fma2EuYXBpLnRyYW5zYWN0aW9uc3Rlc3QtNjYxIiwiOmNvcmU6dGVzdC0wLWthZmthLnNlcnZlci5tZXRhZGF0YXJlcXVlc3R0ZXN0LTg5MyIsIjpjb3JlOnRlc3QtMC1rYWZrYS5hcGkuc2FzbG9hdXRoYmVhcmVyc3NsZW5kdG9lbmRhdXRob3JpemF0aW9udGVzdC02MzAiLCI6Y29yZTp0ZXN0LTAta2Fma2EuYXBpLnBsYWludGV4dGVuZHRvZW5kYXV0aG9yaXphdGlvbnRlc3QtNjM2IiwiOmNvcmU6dGVzdC0wLWthZmthLmFwaS5hdXRob3JpemVyaW50ZWdyYXRpb250ZXN0LTI5NCIsIjpjb3JlOnRlc3QtMC1rYWZrYS5hZG1pbi5yZXNldGNvbnN1bWVyZ3JvdXBvZmZzZXR0ZXN0LTI5MiIsIjpjb3JlOnRlc3QtMC1rYWZrYS5hcGkucGxhaW50ZXh0Y29uc3VtZXJ0ZXN0LTUwMCIsIjpjb3JlOnRlc3QtMC1rYWZrYS5hcGkucHJvZHVjZXJmYWlsdXJlaGFuZGxpbmd0ZXN0LTUyMyIsIjpjb3JlOnRlc3QtMC1rYWZrYS5zZXJ2ZXIuaXNyZXhwaXJhdGlvbnRlc3QtODk4IiwiOmNvcmU6dGVzdC0wLWthZmthLmFwaS5kZWxlZ2F0aW9udG9rZW5lbmR0b2VuZGF1dGhvcml6YXRpb253aXRob3duZXJ0ZXN0LTM1MSIsIjpjb3JlOnRlc3QtMC1rYWZrYS5hcGkuc2FzbHNjcmFtc3NsZW5kdG9lbmRhdXRob3JpemF0aW9udGVzdC02NjAiLCI6Y29yZTp0ZXN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OnRlc3QtMi1vcmcuYXBhY2hlLmthZmthLnN0cmVhbXMua3N0cmVhbS5pbnRlcm5hbHMua3RhYmxla3RhYmxlbGVmdGpvaW50ZXN0LTg5NSIsIjpzdHJlYW1zOnRlc3QtMiIsIjpjbGllbnRzOnRlc3QtMy1vcmcuYXBhY2hlLmthZmthLmNvbW1vbi5uZXR3b3JrLnRsczEyc2VsZWN0b3J0ZXN0LTI5MSIsIjpjbGllbnRzOnRlc3QtMy1vcmcuYXBhY2hlLmthZmthLmNsaWVudHMuY29uc3VtZXIuaW50ZXJuYWxzLm9mZnNldHNyZXF1ZXN0bWFuYWdlcnRlc3QtMzEwIiwiOmNsaWVudHM6dGVzdC0zLW9yZy5hcGFjaGUua2Fma2EuY29tbW9uLm5ldHdvcmsudGxzMTNzZWxlY3RvcnRlc3QtNTIxIiwiOmNsaWVudHM6dGVzdC0zIl0

Pasted image 20231219145755

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment