Skip to content

[release test] disable over-selection blocking by default#62694

Merged
aslonnie merged 3 commits intoray-project:masterfrom
anyscale:lonnie-260416-noblock
Apr 19, 2026
Merged

[release test] disable over-selection blocking by default#62694
aslonnie merged 3 commits intoray-project:masterfrom
anyscale:lonnie-260416-noblock

Conversation

@aslonnie
Copy link
Copy Markdown
Collaborator

requested by data team

@aslonnie aslonnie requested a review from a team as a code owner April 17, 2026 00:05
Copy link
Copy Markdown
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 configurable threshold for manual test trigger confirmation via the --selection-block-threshold option, replacing the previous hardcoded value of 5. The feedback suggests simplifying the conditional logic used to determine whether to generate a confirmation block to improve readability.

Comment on lines +191 to +194
is_automatic = os.environ.get("AUTOMATIC", "") == "1"
if not is_automatic and test_filters and selection_block_threshold > 0:
if len(tests) >= selection_block_threshold:
block_step = generate_block_step(len(tests))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The logic for determining is_automatic and the subsequent conditional check can be simplified to improve readability by combining the conditions.

Suggested change
is_automatic = os.environ.get("AUTOMATIC", "") == "1"
if not is_automatic and test_filters and selection_block_threshold > 0:
if len(tests) >= selection_block_threshold:
block_step = generate_block_step(len(tests))
if os.environ.get("AUTOMATIC", "") != "1" and test_filters and selection_block_threshold > 0 and len(tests) >= selection_block_threshold:
block_step = generate_block_step(len(tests))

@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core data Ray Data-related issues release-test release test labels Apr 17, 2026
requested by data team

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
@aslonnie aslonnie force-pushed the lonnie-260416-noblock branch from b35ab2a to c31933c Compare April 17, 2026 16:06
@aslonnie aslonnie enabled auto-merge (squash) April 17, 2026 18:46
@aslonnie aslonnie disabled auto-merge April 17, 2026 18:46
@github-actions github-actions Bot added the go add ONLY when ready to merge, run all tests label Apr 17, 2026
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit ceb6afa. Configure here.

Comment thread release/ray_release/tests/test_custom_image_build_and_test_init.py
Signed-off-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.com>
@aslonnie aslonnie merged commit ebbf34e into ray-project:master Apr 19, 2026
6 checks passed
HLDKNotFound pushed a commit to chichic21039/ray that referenced this pull request Apr 22, 2026
…t#62694)

requested by data team

Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
Signed-off-by: Lonnie Liu <95255098+aslonnie@users.noreply.github.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 data Ray Data-related issues 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.

2 participants