Skip to content

[data] include profiling dir in release tests - #63806

Merged
goutamvenkat-anyscale merged 1 commit into
ray-project:masterfrom
iamjustinhsu:jhsu/include-profiling-dir
Jun 2, 2026
Merged

goutamvenkat-anyscale merged 1 commit into
ray-project:masterfrom
iamjustinhsu:jhsu/include-profiling-dir

Conversation

@iamjustinhsu

Copy link
Copy Markdown
Contributor

Description

As titled

Related issues

Link related issues: "Fixes #1234", "Closes #1234", or "Related to #1234".

Additional information

Optional: Add implementation details, API changes, usage examples, screenshots, etc.

@gemini-code-assist gemini-code-assist Bot left a comment

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.

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.

Comment on lines +165 to +169
dataset_dir = os.path.dirname(os.path.realpath(__file__))
return [
os.path.realpath(__file__),
os.path.join(dataset_dir, "profiling"),
]

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

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.

Suggested change
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"),
]

@goutamvenkat-anyscale
goutamvenkat-anyscale enabled auto-merge (squash) June 2, 2026 20:52
@github-actions github-actions Bot added the go add ONLY when ready to merge, run all tests label Jun 2, 2026
@goutamvenkat-anyscale
goutamvenkat-anyscale merged commit e338e93 into ray-project:master Jun 2, 2026
3 checks passed
@iamjustinhsu
iamjustinhsu deleted the jhsu/include-profiling-dir branch June 3, 2026 20:53
rueian pushed a commit to rueian/ray that referenced this pull request Jun 4, 2026
## 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]>
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jun 30, 2026
## 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]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ray fails to serialize self-reference objects

2 participants