Fix BlendSearch OptunaSearch warning for non-hierarchical spaces with Ray Tune domains #1477
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BlendSearch issues a warning when using Ray Tune domains in non-hierarchical search spaces: "You passed a
spaceparameter to OptunaSearch that contained unresolved search space definitions."Changes
blendsearch.py: Always use define-by-run mode when passing spaces to Ray's OptunaSearch, not just for hierarchical spaces. Ray's OptunaSearch expects either Optuna distributions or a callable define-by-run function, not Ray Tune domain objects.
test_searcher.py: Add regression test capturing stderr to verify warning is eliminated.
CFO remains unaffected (doesn't use global search). The
evaluated_rewardsparameter continues to be correctly set toNonefor define-by-run mode.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
metadata.google.internal/usr/bin/python3 /usr/bin/python3 /home/REDACTED/.local/lib/python3.12/site-packages/ray/dashboard/dashboard.py --host=127.0.0.1 --port=8265 --port-retries=50 --temp-dir=/tmp/ray --log-dir=/tmp/ray/session_2026-01-10_08-37-43_892531_3832/logs --session-dir=/tmp/ray/session_2026-01-10_08-37-43_892531_3832 --logging-rotate-bytes=536870912 --logging-rotate-backup-count=5 --gcs-address=127.0.0.1:43919 --cluster-id-hex=97d382d349ced6bc4406879caed009b547b42c9aad36ac5cd3305571 --node-ip-address=127.0.0.1 --stdout-filepath=/tmp/ray/session_2026-01-10_08-37-43_892531_3832/logs/dashboard.out --stderr-filepath=/tmp/ray/session_2026-01-10_08-37-43_892531_3832/logs/dashboard.err --minimal pull.rebase(dns block)/usr/bin/python3 /usr/bin/python3 /home/REDACTED/.local/lib/python3.12/site-packages/ray/dashboard/dashboard.py --host=127.0.0.1 --port=8265 --port-retries=50 --temp-dir=/tmp/ray --log-dir=/tmp/ray/session_2026-01-10_08-38-34_168600_4240/logs --session-dir=/tmp/ray/session_2026-01-10_08-38-34_168600_4240 --logging-rotate-bytes=536870912 --logging-rotate-backup-count=5 --gcs-address=127.0.0.1:46054 --cluster-id-hex=fb1fa4f56b7d156e008fbba8f39cdf69844e221bfd3ffd5b729b74c4 --node-ip-address=127.0.0.1 --stdout-filepath=/tmp/ray/session_2026-01-10_08-38-34_168600_4240/logs/dashboard.out --stderr-filepath=/tmp/ray/session_2026-01-10_08-38-34_168600_4240/logs/dashboard.err --minimal .js(dns block)/usr/bin/python3 /usr/bin/python3 /home/REDACTED/.local/lib/python3.12/site-packages/ray/dashboard/dashboard.py --host=127.0.0.1 --port=8265 --port-retries=50 --temp-dir=/tmp/ray --log-dir=/tmp/ray/session_2026-01-10_08-40-16_435306_4778/logs --session-dir=/tmp/ray/session_2026-01-10_08-40-16_435306_4778 --logging-rotate-bytes=536870912 --logging-rotate-backup-count=5 --gcs-address=127.0.0.1:45251 --cluster-id-hex=12830389913f810d52524c2e0628c76352cbd9da533c1b2c9ada2482 --node-ip-address=127.0.0.1 --stdout-filepath=/tmp/ray/session_2026-01-10_08-40-16_435306_4778/logs/dashboard.out --stderr-filepath=/tmp/ray/session_2026-01-10_08-40-16_435306_4778/logs/dashboard.err --minimal(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.