Skip to content

Conversation

dayshah
Copy link
Contributor

@dayshah dayshah commented Aug 6, 2025

Why are these changes needed?

We want people to report ray check failures more and make them feel less bad after their ray cluster crashes.

dayshah added 2 commits August 5, 2025 17:23
Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: dayshah <dhyey2019@gmail.com>
@dayshah dayshah added the go add ONLY when ready to merge, run all tests label Aug 6, 2025
@dayshah dayshah requested a review from a team as a code owner August 6, 2025 00:26
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.

Summary of Changes

Hello @dayshah, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

I've implemented a change to improve the user experience when a Ray check fails. The goal is to transform a potentially frustrating event into a positive interaction by providing a more encouraging message that congratulates the user for finding a bug and guides them on how to report it, thereby fostering more community contributions to bug fixing.

Highlights

  • Enhanced User Experience for Ray Check Failures: I've updated the RAY_CHECK_WITH_DISPLAY macro in src/ray/util/logging.h to change the message displayed when a Ray check fails. The new message is designed to be more encouraging, congratulating the user for discovering a bug and providing clear instructions, including a link, on how to report the issue on GitHub.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments or fill out our survey to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

<< " Congratulations! A check failed, this means you discovered a bug in " \
"Ray that made the system behave in an unexpected way. Please report " \
"this issue at https://github.com/ray-project/ray/issues for extra " \
"credit points and it'll (hopefully) get fixed ASAP! : " display " ")
Copy link
Contributor

Choose a reason for hiding this comment

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

lol, can we still keep the " Check failed: " display " at the end of the message, that way the go/core/crashes stuff will still be working link

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Comment on lines 143 to 149
? RAY_IGNORE_EXPR(0) \
: ::ray::Voidify() & \
(::ray::RayLog(__FILE__, __LINE__, ray::RayLogLevel::FATAL) \
<< " Congratulations! A check failed, this means you discovered a bug in " \
"Ray that made the system behave in an unexpected way. Please report " \
"this issue at https://github.com/ray-project/ray/issues for extra " \
"credit points and it'll (hopefully) get fixed ASAP! : " display " ")
Copy link
Contributor

Choose a reason for hiding this comment

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

bruh

Copy link
Contributor

Choose a reason for hiding this comment

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

Not what I had in mind

dayshah added 2 commits August 5, 2025 22:19
Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: dayshah <dhyey2019@gmail.com>
Copy link
Contributor

@can-anyscale can-anyscale left a comment

Choose a reason for hiding this comment

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

<< " Congratulations! This means you discovered a bug in Ray that made the " \
"system behave in an unexpected way. Please report this issue at " \
"https://github.com/ray-project/ray/issues for extra credit points and " \
"it'll (hopefully) get fixed ASAP! Check failed: " display " ")
Copy link
Contributor

Choose a reason for hiding this comment

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

I would perhaps remove hopefully, it doesn't project confidence

Copy link
Contributor Author

Choose a reason for hiding this comment

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

true, removed

Signed-off-by: dayshah <dhyey2019@gmail.com>
dayshah and others added 2 commits August 6, 2025 11:24
Co-authored-by: Ibrahim Rabbani <israbbani@gmail.com>
Signed-off-by: Dhyey Shah <dhyey2019@gmail.com>
Signed-off-by: dayshah <dhyey2019@gmail.com>
Comment on lines 144 to 149
: ::ray::Voidify() & \
(::ray::RayLog(__FILE__, __LINE__, ray::RayLogLevel::FATAL) \
<< " Congratulations! You've discovered a bug in Ray that made the " \
"system behave in an unexpected way. Please report this issue at " \
"https://github.com/ray-project/ray/issues and we'll try to fix it " \
"ASAP! Check failed: " display " ")
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's a little too tongue-in-cheek IMO. Would prefer something more straightforward:

Suggested change
: ::ray::Voidify() & \
(::ray::RayLog(__FILE__, __LINE__, ray::RayLogLevel::FATAL) \
<< " Congratulations! You've discovered a bug in Ray that made the " \
"system behave in an unexpected way. Please report this issue at " \
"https://github.com/ray-project/ray/issues and we'll try to fix it " \
"ASAP! Check failed: " display " ")
: ::ray::Voidify() & \
(::ray::RayLog(__FILE__, __LINE__, ray::RayLogLevel::FATAL) \
<< " An unexpected system state has occurred. You have likely " \
"discovered a bug in Ray. Please report this issue at " \
"https://github.com/ray-project/ray/issues and we'll work with you to fix it. " \
"Check failed: " display " ")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the user will feel unappreciated for their usage 😞

dayshah added 2 commits August 6, 2025 20:40
Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: dayshah <dhyey2019@gmail.com>
@edoakes edoakes enabled auto-merge (squash) August 7, 2025 22:06
@github-actions github-actions bot disabled auto-merge August 7, 2025 22:06
@dayshah dayshah enabled auto-merge (squash) August 10, 2025 03:12
@dayshah dayshah merged commit 96036f7 into ray-project:master Aug 10, 2025
6 checks passed
@dayshah dayshah deleted the ray-check-msg branch August 11, 2025 03:19
BestVIncent pushed a commit to BestVIncent/ray that referenced this pull request Aug 11, 2025
…file an issue (ray-project#55276)

Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: Dhyey Shah <dhyey2019@gmail.com>
Co-authored-by: Ibrahim Rabbani <israbbani@gmail.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
sampan-s-nayak pushed a commit that referenced this pull request Aug 12, 2025
…file an issue (#55276)

Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: Dhyey Shah <dhyey2019@gmail.com>
Co-authored-by: Ibrahim Rabbani <israbbani@gmail.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: sampan <sampan@anyscale.com>
dioptre pushed a commit to sourcetable/ray that referenced this pull request Aug 20, 2025
…file an issue (ray-project#55276)

Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: Dhyey Shah <dhyey2019@gmail.com>
Co-authored-by: Ibrahim Rabbani <israbbani@gmail.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Andrew Grosser <dioptre@gmail.com>
jugalshah291 pushed a commit to jugalshah291/ray_fork that referenced this pull request Sep 11, 2025
…file an issue (ray-project#55276)

Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: Dhyey Shah <dhyey2019@gmail.com>
Co-authored-by: Ibrahim Rabbani <israbbani@gmail.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: jugalshah291 <shah.jugal291@gmail.com>
dstrodtman pushed a commit that referenced this pull request Oct 6, 2025
…file an issue (#55276)

Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: Dhyey Shah <dhyey2019@gmail.com>
Co-authored-by: Ibrahim Rabbani <israbbani@gmail.com>
Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Douglas Strodtman <douglas@anyscale.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.

4 participants