-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
roachprod: enable roachprod to be configured for external use #120340
Conversation
Thank you for contributing to CockroachDB. Please ensure you have followed the guidelines for creating a PR. Before a member of our team reviews your PR, I have some potential action items for you:
🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
@@ -131,7 +133,7 @@ func initFlags() { | |||
providerOptsContainer[providerName].ConfigureCreateFlags(createCmd.Flags()) | |||
|
|||
for _, cmd := range []*cobra.Command{ | |||
destroyCmd, extendCmd, listCmd, syncCmd, gcCmd, | |||
destroyCmd, extendCmd, listCmd, syncCmd, gcCmd, setupSSHCmd, startCmd, pgurlCmd, adminurlCmd, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Methinks only setupSSHCmd
calls Sync
, which in turn may invoke SyncDNS
. The others don't need parameterized DNS flags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for refactoring hardcoded configs and making roachprod
useful externally! I played around with the PR locally; things appear to work as they should. Still, it wouldn't hurt to do a full run of the nightlies as a sanity check.
@renatolabs @herkolategan I'd appreciate another pair of eyes.
1596150
to
f319305
Compare
Thank you for updating your pull request. Before a member of our team reviews your PR, I have some potential action items for you:
🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
I rebased the patches. A review would be greatly appreciated; this PR will help us do other good things for cockroach :) |
Thanks and sorry for the delay! I am happy with the changes. The reason it probably stalled is we didn't do any smoke testing. Lemme do some local testing as well as kick off a nightly run with |
f319305
to
0a79c67
Compare
Will check the smoke test, SELECT_PROBABILITY=0.6, when it completes. |
Ugh, I think there might be something broken, so please hold on on the testing. I think things are good when |
No worries! Yep, seeing a lot of these in CI,
|
0a79c67
to
b437271
Compare
OK, I believe I've fixed the issue. roachtests run fine for me now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 5 of 6 files at r6, 2 of 3 files at r8, 5 of 5 files at r9, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @ajwerner, @DarrylWong, @herkolategan, and @renatolabs)
Smoke test: SELECT_PROBABILITY=0.6. |
b437271
to
cf578a7
Compare
I've pushed the fix to the problem I was describing in #124678 (comment). |
cf578a7
to
a04a38c
Compare
Kicked off another run of SELECT_PROBABILITY=0.6. |
Cluster reuse looks good now -- you see |
Smoke test results look good! Resolving merge conflict and merging. Thanks for making roachprod ready for external use! |
This commit introduces the email domain flag persistently and sets its default from the environment using ROACHPROD_EMAIL_DOMAIN. Epic: None Release note: None
This allows both flag and environment variable configuration for a variety of critical pieces of functionality. Epic: None Release note: None
These subcommands also benefit from this configuration. Epic: None Release note: None
Before this change, DNS would only sync if the AWS provider was active. This is now configurable. Epic: None Release note: None
00db517
to
439daf3
Compare
Final smoke test SELECT_PROBABILITY=0.25, since there were non-trivial merge conflicts after [1] got merged. [1] #124604 |
This patch makes an empty value for the COCKROACH_PROM_HOST_URL env var disable the roachprod's cluster registration with the Prometheus registration service. This is useful for people who don't work at CockroachLabs and don't have access to this service. Release note: None Epic: None
439daf3
to
ff46295
Compare
Final smoke test looks good, let's 🚢 bors r+ |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error creating merge commit from 48f0dc8 to blathers/backport-release-23.2-120340: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 23.2.x failed. See errors above. error creating merge commit from 48f0dc8 to blathers/backport-release-24.1-120340: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 24.1.x failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
After this change, roachprod fully works on GCP at my company with the following configuration:
All of these configuration options can also be set via flags.
See individual commits.
Epic: none
Release note: none