Repository navigation
[data] include profiling dir in release tests - #63806
goutamvenkat-anyscale merged 1 commit into
Conversation
Signed-off-by: iamjustinhsu <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request updates 'benchmark_py_modules' in 'release/nightly_tests/dataset/benchmark.py' to return paths to both 'benchmark.py' and the 'profiling' package. The reviewer recommends using 'os.path.abspath' instead of 'os.path.realpath' to prevent potential path resolution issues in environments that use symlinks, such as Bazel.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| dataset_dir = os.path.dirname(os.path.realpath(__file__)) | ||
| return [ | ||
| os.path.realpath(__file__), | ||
| os.path.join(dataset_dir, "profiling"), | ||
| ] |
There was a problem hiding this comment.
Using os.path.realpath resolves symlinks to their physical locations. In environments where files are symlinked (such as Bazel runfiles, virtual environments, or containerized setups), the physical location of benchmark.py might not have the profiling directory next to it, even if they are next to each other in the logical/symlinked directory structure. Using os.path.abspath preserves the logical path structure, ensuring that relative path resolution via os.path.join(dataset_dir, "profiling") remains robust and consistent with the original implementation.
| dataset_dir = os.path.dirname(os.path.realpath(__file__)) | |
| return [ | |
| os.path.realpath(__file__), | |
| os.path.join(dataset_dir, "profiling"), | |
| ] | |
| dataset_dir = os.path.dirname(os.path.abspath(__file__)) | |
| return [ | |
| os.path.abspath(__file__), | |
| os.path.join(dataset_dir, "profiling"), | |
| ] |
## Description As titled ## Related issues > Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to ray-project#1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. Signed-off-by: iamjustinhsu <[email protected]>
## Description As titled ## Related issues > Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to ray-project#1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. Signed-off-by: iamjustinhsu <[email protected]>
## Description As titled ## Related issues > Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to ray-project#1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. Signed-off-by: iamjustinhsu <[email protected]> Signed-off-by: 400Ping <[email protected]>
Description
As titled
Related issues
Additional information