Skip to content

Conversation

@continue
Copy link
Contributor

@continue continue bot commented Dec 19, 2025

Summary

This PR fixes flaky timing assertions in the TUIChat.waitForCondition.test.ts file that were causing CI failures in PR #9227.

Changes

Adjusted timing thresholds to account for CI environment variations:

  • Allow 90ms instead of strict 100ms for multi-interval waits
  • Allow 140ms instead of 150ms for setTimeout-based tests
  • Maintain reasonable upper bounds to catch actual issues

Issue

The tests were failing intermittently in CI with errors like:

AssertionError: expected 99 to be greater than or equal to 100

This happens because setTimeout and timing operations can complete a few milliseconds earlier or later than expected, especially in CI environments under load.

Testing

These changes maintain test effectiveness while being more tolerant of normal timing variations. The upper bounds ensure we still catch real performance issues.


This agent session was co-authored by nate and Continue.


Summary by cubic

Relaxed lower-bound timing checks in TUIChat.waitForCondition tests to stop flaky CI failures. Keeps strict upper bounds so real timing regressions still fail.

  • Bug Fixes
    • Lower bounds: 100ms → 90ms (multi-interval), 150ms → 140ms (setTimeout).
    • Upper bounds unchanged (<500ms) to still catch slow paths.

Written for commit 9a129b0. Summary will update automatically on new commits.

Adjust timing thresholds to account for CI environment variations:
- Allow 90ms instead of strict 100ms for multi-interval waits
- Allow 140ms instead of 150ms for setTimeout-based tests
- Maintain reasonable upper bounds to catch actual issues

This addresses test failures seen in CI where timing can vary by a few milliseconds.

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <[email protected]>
Co-authored-by: nate <[email protected]>
@continue continue bot requested a review from a team as a code owner December 19, 2025 21:52
@continue continue bot requested review from RomneyDa and removed request for a team December 19, 2025 21:52
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Dec 19, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

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

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant