Skip to content

Print interactive debug instructions in HardlinkedSandboxedSpawn #26581

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

Closed
wants to merge 1 commit into from

Conversation

wade-arista
Copy link
Contributor

When running with --experimental_use_hermetic_linux_sandbox, this allows us to see the interactive debug instructions like we'd see without it.

Note that EnterWorkingDirectory() in linux-sandbox requires that the working directory is under the sandbox_root path, so we need to include cwd=sandboxExecRoot() when calling describeCommand. This is a stricter requirement than for SymlinkedSandboxedSpawn which was changed in #26448 more for UX reasons.

Fixes #26580.

When running with --experimental_use_hermetic_linux_sandbox, this
allows us to see the interactive debug instructions like we'd see
without it.

Note that `EnterWorkingDirectory()` in `linux-sandbox` requires that
the working directory is under the sandbox_root path, so we need to
include `cwd=sandboxExecRoot()` when calling `describeCommand`. This
is a stricter requirement than for SymlinkedSandboxedSpawn which was
changed in bazelbuild#26448 more for UX reasons.

Fixes bazelbuild#26580.
@github-actions github-actions bot added team-Local-Exec Issues and PRs for the Execution (Local) team awaiting-review PR is awaiting review from an assigned reviewer labels Jul 18, 2025
@wade-arista
Copy link
Contributor Author

wade-arista commented Jul 18, 2025

@fmeum seems like this one might be right up your alley 😃

I'd also love to get this into 8.4.0.

@fmeum fmeum requested a review from tjgq July 19, 2025 06:28
@fmeum
Copy link
Collaborator

fmeum commented Jul 19, 2025

@bazel-io fork 8.4.0

@meisterT meisterT 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 Jul 21, 2025
@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 Jul 23, 2025
iancha1992 pushed a commit to iancha1992/bazel that referenced this pull request Jul 23, 2025
When running with --experimental_use_hermetic_linux_sandbox, this allows us to see the interactive debug instructions like we'd see without it.

Note that `EnterWorkingDirectory()` in `linux-sandbox` requires that the working directory is under the sandbox_root path, so we need to include `cwd=sandboxExecRoot()` when calling `describeCommand`. This is a stricter requirement than for SymlinkedSandboxedSpawn which was changed in bazelbuild#26448 more for UX reasons.

Fixes bazelbuild#26580.

Closes bazelbuild#26581.

PiperOrigin-RevId: 786165593
Change-Id: Ib1a2dfccb7731691314d88d10e4c6a168977c875
iancha1992 pushed a commit to iancha1992/bazel that referenced this pull request Jul 23, 2025
When running with --experimental_use_hermetic_linux_sandbox, this allows us to see the interactive debug instructions like we'd see without it.

Note that `EnterWorkingDirectory()` in `linux-sandbox` requires that the working directory is under the sandbox_root path, so we need to include `cwd=sandboxExecRoot()` when calling `describeCommand`. This is a stricter requirement than for SymlinkedSandboxedSpawn which was changed in bazelbuild#26448 more for UX reasons.

Fixes bazelbuild#26580.

Closes bazelbuild#26581.

PiperOrigin-RevId: 786165593
Change-Id: Ib1a2dfccb7731691314d88d10e4c6a168977c875
github-merge-queue bot pushed a commit that referenced this pull request Jul 24, 2025
…awn (#26619)

When running with --experimental_use_hermetic_linux_sandbox, this allows
us to see the interactive debug instructions like we'd see without it.

Note that `EnterWorkingDirectory()` in `linux-sandbox` requires that the
working directory is under the sandbox_root path, so we need to include
`cwd=sandboxExecRoot()` when calling `describeCommand`. This is a
stricter requirement than for SymlinkedSandboxedSpawn which was changed
in #26448 more for UX reasons.

Fixes #26580.

Closes #26581.

PiperOrigin-RevId: 786165593
Change-Id: Ib1a2dfccb7731691314d88d10e4c6a168977c875

Commit
289e385

---------

Co-authored-by: Wade Carpenter <wade@arista.com>
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.

HardlinkedSandboxedSpawn (--experimental_use_hermetic_linux_sandbox) does not print interactive debug instructions
3 participants