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

[data] Deflake TestStreamOutputBackpressurePolicy.test_e2e_backpressure #42150

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

raulchen
Copy link
Contributor

@raulchen raulchen commented Jan 2, 2024

Why are these changes needed?

The test is flakey on slow machines. See comments for details.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: Hao Chen <chenh1024@gmail.com>
# is scheduled. But there is a delay between the consumer task is scheduled
# and the consumer task starts to run. Thus the order of
# producer_timestamps[3] and consumer_timestamps[0] is not deterministic.
# To avoid flakiness, we check consumer_timestamps[0] < producer_timestamps[4].
Copy link
Contributor

Choose a reason for hiding this comment

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

@raulchen to confirm my understanding, we are guaranteed that consumer_timestamps[0] < producer_timestamps[4] since block 4 will only be generated after the second consumer task is scheduled, which only occurs after the first consumer task consuming block 3 concludes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

@raulchen raulchen merged commit 2d2bb90 into ray-project:master Jan 3, 2024
10 checks passed
@raulchen raulchen deleted the deflake-backpressure-test branch January 3, 2024 19:57
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.

2 participants