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

Streaming executor fixes #4 #32882

Merged
merged 45 commits into from
Mar 1, 2023
Merged

Conversation

jianoaix
Copy link
Contributor

@jianoaix jianoaix commented Feb 28, 2023

Why are these changes needed?

The streaming doesn't preserve order by default, so the results comparison will need to use set instead of list.

#32132

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 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 :(

@@ -127,7 +127,11 @@ def test_new_execution_backend_invocation(ray_start_10_cpus_shared):
DatasetContext.get_current().new_execution_backend = True
Copy link
Contributor

Choose a reason for hiding this comment

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

This test is called test_bulk_executor so shall we just force bulk execution mode instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense!

@ericl ericl added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Feb 28, 2023
@ericl ericl self-assigned this Feb 28, 2023
@jianoaix
Copy link
Contributor Author

Failing tests seem not related.

@jianoaix jianoaix removed the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Feb 28, 2023
Comment on lines +387 to +393
ds = ds1.zip(ds2).fully_executed()
num_blocks = ds._plan._snapshot_blocks.executed_num_blocks()
assert ds.take() == [{str(i): i for i in range(num_cols1 + num_cols2)}] * n
if should_invert:
assert ds.num_blocks() == num_blocks2
assert num_blocks == num_blocks2
else:
assert ds.num_blocks() == num_blocks1
assert num_blocks == num_blocks1
Copy link
Contributor

Choose a reason for hiding this comment

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

curious as #32860 is merged, would the change here is still needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Have you tested that PR with streaming enabled for this test? Also note this is to handle issue introduced in #32132.

@ericl ericl added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Feb 28, 2023
@ericl
Copy link
Contributor

ericl commented Feb 28, 2023

Test failures

@jianoaix jianoaix added tests-ok The tagger certifies test failures are unrelated and assumes personal liability. and removed @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. labels Mar 1, 2023
@ericl ericl merged commit 2875357 into ray-project:master Mar 1, 2023
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request Mar 21, 2023
edoakes pushed a commit to edoakes/ray that referenced this pull request Mar 22, 2023
peytondmurray pushed a commit to peytondmurray/ray that referenced this pull request Mar 22, 2023
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests-ok The tagger certifies test failures are unrelated and assumes personal liability.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants