Skip to content

Conversation

@chance-wnb
Copy link
Contributor

@chance-wnb chance-wnb commented Oct 13, 2025

Description

Relaxes the test assertions for turn duration percentiles in the client trace tests. Instead of requiring specific ranges (5-200ms), the PR now only asserts that the values are positive, while maintaining that p99 is greater than or equal to p50.

Testing

Validate through CI

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@chance-wnb chance-wnb force-pushed the chance/test_flakiness_fix branch from bef9ebd to a0d1995 Compare October 13, 2025 21:33
assert 5 <= test_thread.p50_turn_duration_ms <= 200 # Reasonable range for P50
assert 5 <= test_thread.p99_turn_duration_ms <= 200 # Reasonable range for P99
assert 0 <= test_thread.p50_turn_duration_ms
assert 0 <= test_thread.p99_turn_duration_ms
Copy link
Contributor Author

Choose a reason for hiding this comment

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

testing test_thread.p50_turn_duration_ms <= test_thread.p99_turn_duration_ms below should already be quite sufficient.

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@wandbot-3000
Copy link

wandbot-3000 bot commented Oct 13, 2025

@chance-wnb chance-wnb marked this pull request as ready for review October 13, 2025 21:48
@chance-wnb chance-wnb requested a review from a team as a code owner October 13, 2025 21:48
Copy link
Member

@gtarpenning gtarpenning left a comment

Choose a reason for hiding this comment

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

ty!

@chance-wnb chance-wnb enabled auto-merge (squash) October 13, 2025 21:53
@chance-wnb chance-wnb force-pushed the chance/test_flakiness_fix branch from a0d1995 to 06747e4 Compare October 13, 2025 22:32
@chance-wnb chance-wnb merged commit 109f33f into master Oct 13, 2025
109 checks passed
@chance-wnb chance-wnb deleted the chance/test_flakiness_fix branch October 13, 2025 22:40
@github-actions github-actions bot locked and limited conversation to collaborators Oct 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants