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

config: update config descriptions to match docs #23347

Merged
merged 2 commits into from
Oct 5, 2024

Conversation

Deflaimun
Copy link
Contributor

@Deflaimun Deflaimun commented Sep 17, 2024

Backfeed changes to configuration descriptions that were added to docs.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.2.x
  • v24.1.x
  • v23.3.x

Release Notes

Improvements

  • Improve property configuration descriptions.

@Deflaimun Deflaimun requested a review from a team as a code owner September 17, 2024 16:11

* Disabled - Redpanda does not start in FIPS mode.

* Permissive - Redpanda performs the same check as enabled, but a warning is logged, and Redpanda continues to run. Redpanda loads the OpenSSL FIPS provider into the OpenSSL library. After this completes, Redpanda is operating in FIPS mode, which means that the TLS cipher suites available to users are limited to the TLSv1.2 and TLSv1.3 NIST-approved cryptographic methods.
Copy link
Member

@dotnwat dotnwat Sep 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • we try to line wrap around 80 columns
  • maybe we need to maintain the nicely formatted version somewhere else?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be awesome if we could move those messages to a message bundle of sorts.

@Feediver1
Copy link

@dotnwat @Deflaimun Can we get a status update please?

Copy link
Contributor

@aanthony-rp aanthony-rp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do have some functionality problems caused by several changes within. Please see my comments for more details. briefly: any change that remains as a single line of text with no breaks will be accepted. Any multi-line doc strings cannot be accepted without a code change. let's work together on next steps.

"List of the seed servers used to join current cluster. If the "
"seed_server list is empty the node will be a cluster root and it will "
"form a new cluster",
"List of the seed servers used to join current cluster. If the `seed_servers` list is empty the node will be a cluster root and it will form a new cluster.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, multi-line rich formatting like this will cause UX issues because we do output these strings in certain scenarios where we expect the string to be a one-line string.

@dotnwat and I had an idea that we could extend the C++ to have a _desc and a _longdesc member so that we could safely integrate really nice summaries like this into the product.

summary for today: any changes coming into this file need to be one-line strings. We'll need to follow up to accept larger blobs like this one. I'm happy to get on a call to help clarify what needs to change.

"Duplicate items in seed_servers: {}", *s_dupe_i);
}
return std::nullopt;
std::sort(s.begin(), s.end());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you meant to change this, looks like a formatter did it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's correct.

"seed_servers list must be identical among those nodes' configurations, "
"and those nodes will form the initial cluster.",
"Controls how a new cluster is formed. All brokers in a cluster must have the same value.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even in cases like this, we don't want to have line breaks.

{.visibility = visibility::user},
{model::broker_endpoint(net::unresolved_address("127.0.0.1", 9644))})
, admin_api_tls(
*this,
"admin_api_tls",
"TLS configuration for admin HTTP server",
"Specifies the TLS configuration for the HTTP Admin API.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes like this are 100% compatible.

@Deflaimun Deflaimun force-pushed the update-properties-descriptions branch 2 times, most recently from a36eec9 to 3c3b521 Compare October 2, 2024 19:08
@Deflaimun Deflaimun force-pushed the update-properties-descriptions branch from 3c3b521 to d65ae8c Compare October 2, 2024 20:34
@Deflaimun
Copy link
Contributor Author

  • Force-push: Updated peer code review. Removed multi-line strings. For some specific cases, added the guide to check docs "For more information see [link]"

@Deflaimun Deflaimun requested a review from aanthony-rp October 2, 2024 20:36
@dotnwat dotnwat force-pushed the update-properties-descriptions branch from d65ae8c to 84bc7c6 Compare October 2, 2024 23:19
@dotnwat
Copy link
Member

dotnwat commented Oct 2, 2024

@Deflaimun i've fixed the compilation error and formatting. lemme know if it looks ok.

"form a new cluster",
"`seed_servers` list is empty the node will be a cluster root and it "
"will form a new cluster. When `empty_seed_starts_cluster` is `true`, "
"Redpanda enables one broker with an empty `seed_servers` list to "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seed_servers

this isn't a big deal, but these strings really aren't intended to contain markdown, and i'm assuming that is what the backticks are for.

@vbotbuildovich

This comment was marked as outdated.

Copy link
Member

@BenPope BenPope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a poke with this over here: #23619

@@ -1190,7 +1299,7 @@ configuration::configuration()
*this,
"storage_max_concurrent_replay",
"Maximum number of partitions' logs that will be replayed concurrently "
"at startup, or flushed concurrently on shutdown.",
"at startup, or flushed concurrently on shutdown. asdasdasdasdas",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, not sure how that got in there. Will remove! Thanks for the catch

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

"Raft heartbeat RPC (remote procedure call) timeout. Raft uses a "
"heartbeat mechanism to maintain leadership authority and to trigger "
"leader elections. The `raft_heartbeat_interval_ms` is a periodic "
"heartbeat sent by the partition leader to all followers to assert its "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The easy fix for the ducktape tests is to avoid the word "assert"

Copy link
Contributor Author

@Deflaimun Deflaimun Oct 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we reword to remove "assert" ? or are we writing an exception for these strings?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we should add exceptions for these cases in ducktape. we don't want to restrict the language we can use in descriptions.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we should add exceptions for these cases in ducktape. we don't want to restrict the language we can use in descriptions.

I agree, which is what I attempted here - but the NodeCrash regex still needs changing. I suggested an easy workaround.

I don't think the description of the config really needs to be rendered to the log at startup, the value should suffice.

Copy link
Member

@BenPope BenPope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't escape the % (\%), I count 4 of them.

@Deflaimun Deflaimun force-pushed the update-properties-descriptions branch from 84bc7c6 to efe56d8 Compare October 3, 2024 19:30
@Deflaimun
Copy link
Contributor Author

Force-push:

@BenPope
Copy link
Member

BenPope commented Oct 3, 2024

Force-push:

It doesn't lint anymore, the lines are too long.

@Deflaimun Deflaimun force-pushed the update-properties-descriptions branch from efe56d8 to 6577f4e Compare October 4, 2024 13:58
@Deflaimun
Copy link
Contributor Author

force-push: remove the word "assert" from description string.

@BenPope BenPope force-pushed the update-properties-descriptions branch from 6577f4e to 0b1ae30 Compare October 4, 2024 14:02
BenPope
BenPope previously approved these changes Oct 4, 2024
@BenPope
Copy link
Member

BenPope commented Oct 4, 2024

The interesting diff between my review and now.

aanthony-rp
aanthony-rp previously approved these changes Oct 4, 2024
@BenPope
Copy link
Member

BenPope commented Oct 4, 2024

Known CI Failures:

Unknown (possible new)

  • In test_describe_topics_with_documentation_and_types: doc_string == prop.doc_string

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
@dotnwat dotnwat dismissed stale reviews from aanthony-rp and BenPope via 4b74f30 October 5, 2024 01:02
@dotnwat dotnwat merged commit a8e608e into dev Oct 5, 2024
18 checks passed
@dotnwat dotnwat deleted the update-properties-descriptions branch October 5, 2024 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants