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

[7.1.0] Fix two issues with --incompatible_sandbox_hermetic_tmp that manifested themselves when the output base was under /tmp: #20714

Closed
wants to merge 2 commits into from

Conversation

bazel-io
Copy link
Member

@bazel-io bazel-io commented Jan 2, 2024

  1. Virtual action inputs didn't work. This was a fairly simple omission in the path transformation logic.
  2. Artifacts which are resolved symlinks (i.e. declared using declare_file) did not work. This is fixed by keeping track of the realpath of the symlink in FileArtifactValue / TreeArtifactValue.

Fixes #20515 and #20518.

RELNOTES: None.
Commit fb6658c

PiperOrigin-RevId: 595145191
Change-Id: I833025928374c78bc719d8e3be1efb2b2950b9f1

…sted themselves when the output base was under `/tmp`:

1. Virtual action inputs didn't work. This was a fairly simple omission in the path transformation logic.
2. Artifacts which are resolved symlinks (i.e. declared using `declare_file`) did not work. This is fixed by keeping track of the realpath of the symlink in `FileArtifactValue` / `TreeArtifactValue`.

Fixes bazelbuild#20515 and bazelbuild#20518.

RELNOTES: None.
PiperOrigin-RevId: 595145191
Change-Id: I833025928374c78bc719d8e3be1efb2b2950b9f1
@bazel-io bazel-io added the team-Local-Exec Issues and PRs for the Execution (Local) team label Jan 2, 2024
@bazel-io bazel-io requested a review from a team as a code owner January 2, 2024 18:35
@bazel-io bazel-io added the awaiting-review PR is awaiting review from an assigned reviewer label Jan 2, 2024
@iancha1992 iancha1992 enabled auto-merge January 2, 2024 18:54
@iancha1992 iancha1992 requested a review from lberki January 2, 2024 18:55
@iancha1992
Copy link
Member

@lberki looks like the tests are failing. Could you please take a look?

@lberki
Copy link
Contributor

lberki commented Jan 2, 2024

My guess is that this is some sort of mysterious flakiness; I encountered the same test failures when submitting 9790f6d and a sync + restarting the tests made the builds green (retrying the CI build didn't help, but I'll try it here in case that gets this change in faster). Here is an example failing build from that commit.

@meteorcloudy @fweikert have you seen anything similar?

@iancha1992
Copy link
Member

Dupe of #20766

@iancha1992 iancha1992 closed this Jan 8, 2024
auto-merge was automatically disabled January 8, 2024 19:10

Pull request was closed

@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Jan 8, 2024
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.

4 participants