Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix in-process materialization of unresolved symlinks in runfiles #23328

Closed

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Aug 18, 2024

Unresolved symlinks, when consumed as runfiles with --experimental_inprocess_symlink_creation, are now created as symlinks directly pointing to their target path instead of to the absolute path of the unresolved symlink artifact under the execroot, just like with out-of-process symlink creation.

Along the way, fix the propagation of --experimental_inprocess_symlink_creation to the exec configuration, which previously would have caused the new test cases to fail open.

Fixes #23327

@fmeum fmeum force-pushed the 23327-inprocess-unresolved-symlink branch from ff8c1fe to 07b5275 Compare August 18, 2024 18:58
@fmeum fmeum force-pushed the 23327-inprocess-unresolved-symlink branch from 07b5275 to 161c61f Compare August 18, 2024 18:58
@fmeum fmeum marked this pull request as ready for review August 18, 2024 19:01
@fmeum fmeum requested a review from tjgq August 18, 2024 19:01
@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Aug 18, 2024
@fmeum
Copy link
Collaborator Author

fmeum commented Aug 18, 2024

@bazel-io fork 7.4.0

@iancha1992 iancha1992 added the team-Local-Exec Issues and PRs for the Execution (Local) team label Aug 19, 2024
Copy link
Contributor

@tjgq tjgq left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@tjgq tjgq added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Aug 20, 2024
@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Aug 21, 2024
@fmeum fmeum deleted the 23327-inprocess-unresolved-symlink branch August 21, 2024 09:05
fmeum added a commit to fmeum/bazel that referenced this pull request Aug 22, 2024
Unresolved symlinks, when consumed as runfiles with `--experimental_inprocess_symlink_creation`, are now created as symlinks directly pointing to their target path instead of to the absolute path of the unresolved symlink artifact under the execroot, just like with out-of-process symlink creation.

Along the way, fix the propagation of `--experimental_inprocess_symlink_creation` to the exec configuration, which previously would have caused the new test cases to fail open.

Fixes bazelbuild#23327

Closes bazelbuild#23328.

PiperOrigin-RevId: 665754549
Change-Id: I6b240ca27dac513738056b015c97baec91677c4e
github-merge-queue bot pushed a commit that referenced this pull request Aug 22, 2024
…iles (#23391)

Unresolved symlinks, when consumed as runfiles with
`--experimental_inprocess_symlink_creation`, are now created as symlinks
directly pointing to their target path instead of to the absolute path
of the unresolved symlink artifact under the execroot, just like with
out-of-process symlink creation.

Along the way, fix the propagation of
`--experimental_inprocess_symlink_creation` to the exec configuration,
which previously would have caused the new test cases to fail open.

Fixes #23327

Closes #23328.

PiperOrigin-RevId: 665754549
Change-Id: I6b240ca27dac513738056b015c97baec91677c4e

Closes #23329
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Local-Exec Issues and PRs for the Execution (Local) team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In-process symlink creation doesn't materialize unresolved symlinks as such
3 participants