Skip to content

Conversation

@aslonnie
Copy link
Collaborator

use double brackets as much as possible

use double brackets as much as possible

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
@aslonnie aslonnie requested a review from a team November 16, 2025 01:31
reason() {
# Keep in sync with e2e.py ExitCode enum
if [ "$1" -eq 0 ]; then
if [[ "$1" -eq 0 ]]; then
Copy link

Choose a reason for hiding this comment

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

Bug: Debugging Output Feature Unexpectedly Removed

The DEBUG environment variable check and set -x functionality was removed, eliminating the ability to enable verbose shell debugging output. This appears unintentional since the PR only aims to standardize bracket usage, not remove features.

Fix in Cursor Fix in Web

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

The pull request correctly updates the shell script to use [[ ... ]] instead of [ ... ], which is a good practice for bash scripts. However, I've identified two issues. A block of code for enabling debug mode appears to have been unintentionally removed. Additionally, the reason function has a bug that could lead to incorrect error reporting for unhandled exit codes. I've provided detailed comments and suggestions for both of these points.

@aslonnie aslonnie added the go add ONLY when ready to merge, run all tests label Nov 16, 2025
@ray-gardener ray-gardener bot added core Issues that should be addressed in Ray Core devprod release-test release test labels Nov 16, 2025
@aslonnie aslonnie merged commit fa8bc74 into master Nov 16, 2025
6 checks passed
@aslonnie aslonnie deleted the lonnie-251115-scriptstyle branch November 16, 2025 22:45
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 2025
…project#58670)

use double brackets as much as possible

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Signed-off-by: Aydin Abiar <aydin@anyscale.com>
ykdojo pushed a commit to ykdojo/ray that referenced this pull request Nov 27, 2025
…project#58670)

use double brackets as much as possible

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Signed-off-by: YK <1811651+ykdojo@users.noreply.github.com>
SheldonTsen pushed a commit to SheldonTsen/ray that referenced this pull request Dec 1, 2025
…project#58670)

use double brackets as much as possible

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Future-Outlier pushed a commit to Future-Outlier/ray that referenced this pull request Dec 7, 2025
…project#58670)

use double brackets as much as possible

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Signed-off-by: Future-Outlier <eric901201@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core devprod go add ONLY when ready to merge, run all tests release-test release test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants