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

[Datasets] Fix sort nightly test to skip stats() if exception is raised #32329

Merged
merged 2 commits into from
Feb 9, 2023

Conversation

c21
Copy link
Contributor

@c21 c21 commented Feb 8, 2023

Signed-off-by: Cheng Su scnju13@gmail.com

Why are these changes needed?

As title, if ds.fully_executed() has exception, we should not catch exception and call ds.stats(), because at that time, ds.stats() would have undefined behavior. Change to skip calling of ds.stats() by putting all dataset operation in one code block.

This is to help debug the real issue of #32203 .

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

Signed-off-by: Cheng Su <scnju13@gmail.com>
@@ -119,6 +119,7 @@ def make_block(count: int, num_columns: int) -> Block:
else:
ds = ds.sort(key="c_0")
ds.fully_executed()
print(ds.stats())
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: to keep the stats coming after the "finished" etc, assign ds.stats() to a variable and use later for print.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jianoaix - updated.

Signed-off-by: Cheng Su <scnju13@gmail.com>
@c21 c21 assigned ericl Feb 9, 2023
@ericl ericl merged commit 67d1515 into ray-project:master Feb 9, 2023
@c21 c21 deleted the test-fix branch February 9, 2023 07:57
c21 added a commit to c21/ray that referenced this pull request Feb 9, 2023
edoakes pushed a commit to edoakes/ray that referenced this pull request Mar 22, 2023
…ised (ray-project#32329)

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
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.

5 participants