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

dev: refactor prompts for autofix permission #128211

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

rickystewart
Copy link
Collaborator

@rickystewart rickystewart commented Aug 2, 2024

This code is duplicated in many places, so this refactor saves us some
LOC.

Epic: none
Release note: None
Release justification: Build-only code changes

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
This code is duplicated in many places, so this refactor saves us some
LOC.

Epic: none
Release note: None
Release justification: Build-only code changes
@rickystewart rickystewart requested a review from a team as a code owner August 2, 2024 19:47
Copy link

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
Member

This change is Reviewable

@rickystewart
Copy link
Collaborator Author

First commit is from #128207 and can be ignored

@rickystewart rickystewart requested a review from rail August 2, 2024 20:10
@rickystewart rickystewart changed the title dev: in doctor, add --sandbox_add_mount_pair if relevant dev: refactor prompts for autofix permission Aug 2, 2024
@rickystewart
Copy link
Collaborator Author

bors r=rail

@rickystewart rickystewart added backport-24.1.x Flags PRs that need to be backported to 24.1. backport-24.2.x Flags PRs that need to be backported to 24.2 labels Aug 2, 2024
@craig craig bot merged commit a9b7510 into cockroachdb:master Aug 2, 2024
21 of 22 checks passed
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. backport-24.2.x Flags PRs that need to be backported to 24.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants