Skip to content

dev: in doctor, add --sandbox_add_mount_pair if relevant#128207

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
rickystewart:sandbox-add-mount-pair
Aug 2, 2024
Merged

dev: in doctor, add --sandbox_add_mount_pair if relevant#128207
craig[bot] merged 1 commit intocockroachdb:masterfrom
rickystewart:sandbox-add-mount-pair

Conversation

@rickystewart
Copy link
Copy Markdown
Collaborator

This was apparently broken with the Bazel 7 upgrade and bazelbuild/bazel#22001 specifically. If --test_tmpdir is set to some directory under /tmp, we need to add /tmp as a mount pair as well. This cannot be done in remote mode so doctor needs to be aware of this.

Closes: #128204
Epic: None
Release note: None
Release justification: Build-only code changes

@rickystewart rickystewart added backport-24.1.x Flags PRs that need to be backported to 24.1. backport-24.2.x labels Aug 2, 2024
@rickystewart rickystewart requested a review from a team as a code owner August 2, 2024 19:20
@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Aug 2, 2024

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@rickystewart rickystewart force-pushed the sandbox-add-mount-pair branch from 1f17c6c to 579899d Compare August 2, 2024 19:29
This was apparently broken with the Bazel 7 upgrade and
bazelbuild/bazel#22001 specifically. If `--test_tmpdir` is set to
some directory under `/tmp`, we need to add `/tmp` as a mount pair as
well. This cannot be done in remote mode so `doctor` needs to be aware
of this.

Closes: cockroachdb#128204
Epic: None
Release note: None
Release justification: Build-only code changes
@rickystewart
Copy link
Copy Markdown
Collaborator Author

bors r=rail

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 2, 2024

@craig craig bot merged commit a9b7510 into cockroachdb:master Aug 2, 2024
@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Aug 2, 2024

Based on the specified backports for this PR, I applied new labels to the following linked issue(s). Please adjust the labels as needed to match the branches actually affected by the issue(s), including adding any known older branches.


Issue #128204: branch-release-24.1, branch-release-24.2.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-24.1.x Flags PRs that need to be backported to 24.1.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bazel: --test_tmpdir's under /tmp are broken on Linux since Bazel 7 upgrade

3 participants