elastic / docs-tools

A place to put documentation tooling
4 stars 13 forks source link

Add enhanced CI to capture common doc problems #84

Open karenzone opened 2 years ago

karenzone commented 2 years ago

Our docs tooling is a workhorse. But sometimes, it burps and introduces plugin regressions for a wide variety of reasons. We pass docs-ci, even though there are changes lurking in the PR that we don't want to merge. @jsvd suggested that I capture the heuristics I use to review plugin updates so that we can investigate adding additional CI to identify and notify on these problems.

Sample PRs with regressions: https://github.com/elastic/logstash-docs/pull/1434

Indications that a regression has sneaked in:

This falls under the category of linting, but adding to my wish list just in case:

Note: Currently, the manual approval process also gives us a chance to find and fix problems in the changelog. Some changelog linting would be a good thing, too.

Expanding scope to include Doc quality

The previous suggestions are mostly related to catching regressions in plugin docs for the Logstash Reference (LSR). This section expands into the realm of general doc quaility.

Related

Keep an eye on this effort, too: https://github.com/elastic/docs-lint/issues/37

Next steps

When we have this tooling in place and working reliably, we can investigate additional automation for plugin docs.

Deploy at the plugin repo level

This additional checking should be deployed at the plugin repo level to alert contributors to problems before they merge the PR, bump versions, publish the plugin. This approach would help prevent problems at the source where they can be resolved before they get "in the wild" where they require more work to fix.

karenzone commented 7 months ago

Another example: