-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[core] Congratulate the user for a ray check failure and ask them to file an issue #55276
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
Conversation
Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: dayshah <dhyey2019@gmail.com>
There was a problem hiding this 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 insrc/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
-
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. ↩
Warning Gemini encountered an error creating the review. You can try again by commenting |
src/ray/util/logging.h
Outdated
<< " 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 " ") |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/ray/util/logging.h
Outdated
? 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 " ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bruh
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/ray/util/logging.h
Outdated
<< " 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 " ") |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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>
Co-authored-by: Ibrahim Rabbani <israbbani@gmail.com> Signed-off-by: Dhyey Shah <dhyey2019@gmail.com>
Signed-off-by: dayshah <dhyey2019@gmail.com>
src/ray/util/logging.h
Outdated
: ::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 " ") |
There was a problem hiding this comment.
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:
: ::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 " ") |
There was a problem hiding this comment.
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 😞
Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: dayshah <dhyey2019@gmail.com>
…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>
…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>
…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>
…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>
…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>
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.