Skip to content

Fix flaky integration test in TestConcurrentlyForkAndAppendBranches #6860

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

Merged
merged 3 commits into from
May 1, 2025

Conversation

timl3136
Copy link
Member

@timl3136 timl3136 commented Apr 25, 2025

What changed?
Resolve flakiness in the TestConcurrentlyForkAndAppendBranches integration test by implementing retry logic for message publishing operations.

Why?
Flaky tests cause unwanted delay in testing and can create noise which it makes us unlikely to locate issues detected by tests.

How did you test it?
Run the integration test for 20 times using following script:
docker-compose -f docker/buildkite/docker-compose-local.yml run --rm integration-test-cassandra go test ./host/persistence/cassandra/... -run TestCassandraHistoryPersistence/TestConcurrentlyForkAndAppendBranches -count=20

Potential risks

Release notes

Documentation Changes

Copy link
Member

@davidporter-id-au davidporter-id-au left a comment

Choose a reason for hiding this comment

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

I want to know I didn't contribute to this, maybe let me take a look on Monday

return true
})
err = s.deleteHistoryBranch(ctx, masterBr)
s.Nil(err)

branches = s.descTree(ctx, treeID)
// Add retry logic for branch cleanup verification
Copy link
Member

Choose a reason for hiding this comment

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

nit: use s.Eventually() for simplification

@timl3136 timl3136 merged commit cc5ed77 into cadence-workflow:master May 1, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants