Skip to content

dev: refactor prompts for autofix permission#128211

Merged
craig[bot] merged 2 commits intocockroachdb:masterfrom
rickystewart:prompt-refactor
Aug 2, 2024
Merged

dev: refactor prompts for autofix permission#128211
craig[bot] merged 2 commits intocockroachdb:masterfrom
rickystewart:prompt-refactor

Conversation

@rickystewart
Copy link
Copy Markdown
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
@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
Copy link
Copy Markdown
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
Copy Markdown
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 labels Aug 2, 2024
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 2, 2024

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.

3 participants