Skip to content

Conversation

sampan-s-nayak
Copy link
Contributor

Why are these changes needed?

fix test_traceback::test_unpickleable_stacktrace() test case on windows by scrubbing logs related to ray._raylet before assertion

ci run with failure: https://buildkite.com/ray-project/postmerge/builds/12165#01989bf5-4008-4098-a6ff-1963047047a6/3056-3537

Related issue number

NA

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

sampan added 5 commits August 11, 2025 05:39
…tions to improve debugability

Signed-off-by: sampan <sampan@anyscale.com>
Signed-off-by: sampan <sampan@anyscale.com>
Signed-off-by: sampan <sampan@anyscale.com>
Signed-off-by: sampan <sampan@anyscale.com>
Signed-off-by: sampan <sampan@anyscale.com>
@sampan-s-nayak sampan-s-nayak requested a review from a team as a code owner August 12, 2025 09:31
@sampan-s-nayak sampan-s-nayak added the go add ONLY when ready to merge, run all tests label Aug 12, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a valuable improvement for debugging by enhancing the error message for unpickleable exceptions. When deserialization fails, the error now includes the string representation and stack trace of the original exception, which is very helpful. The changes also include a fix for a test case on Windows by scrubbing Cython-related frames from tracebacks, ensuring test consistency across platforms. The tests have been updated accordingly to reflect these changes, and a minor refactoring improves test readability. The changes are well-implemented and address the stated problem effectively. I have no further comments and approve of these changes.

@edoakes edoakes enabled auto-merge (squash) August 12, 2025 12:12
@edoakes
Copy link
Collaborator

edoakes commented Aug 12, 2025

nice, ty for running windows tests 👍

@edoakes edoakes merged commit 7b7b01f into ray-project:master Aug 12, 2025
6 checks passed
dioptre pushed a commit to sourcetable/ray that referenced this pull request Aug 20, 2025
…55523)

fix `test_traceback::test_unpickleable_stacktrace()` test case on
windows by scrubbing logs related to `ray._raylet` before assertion

ci run with failure:
https://buildkite.com/ray-project/postmerge/builds/12165#01989bf5-4008-4098-a6ff-1963047047a6/3056-3537

---------

Signed-off-by: sampan <sampan@anyscale.com>
Co-authored-by: sampan <sampan@anyscale.com>
Signed-off-by: Andrew Grosser <dioptre@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants