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

Use a shared test container for each suite #925

Merged
merged 3 commits into from
Mar 29, 2022
Merged

Conversation

bplommer
Copy link
Member

@bplommer bplommer commented Mar 29, 2022

Reduces CI time from ~16m to ~9m. Also opens the way for further huge speedup by paralellizing with weaver-test.

@@ -66,7 +66,7 @@ final class KafkaConsumerSpec extends BaseKafkaSpec {
}
}

it("should consume all records with subscribing for several consumers") {
it("should consume all records at least once with subscribing for several consumers") {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was flaking before (#486) but changing to foralltestcontainer made it fail consistently. I think we should change the test to not expect exactly-once delivery.

@bplommer bplommer marked this pull request as ready for review March 29, 2022 09:40
@bplommer bplommer changed the title Forall testcontainer Use a shared test container for each suite Mar 29, 2022
@bplommer bplommer requested review from LMnet and vlovgr March 29, 2022 09:40
})
_ <- IO(assert(topicNamesToListings.size == 1))
topicNames <- adminClient.listTopics.names
topicCount = topicNames.size
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of having a fixed expectation of how many topics there should be, we check how many there are at the start and then generate other expectations relative to that.

@bplommer bplommer merged commit aeb8caa into series/2.x Mar 29, 2022
@bplommer bplommer deleted the forall-testcontainer branch April 1, 2022 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants