-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add tests that verify existing of component documentation #1025
Comments
@asuresh4 will work on this (I cannot assign yet, since you have no PRs in this repo). |
@tigrannajaryan - I assume we are looking to add the same verification to the contrib repo as well? Today all the documentation for components of a specific seem to be in a single README. For example, documentation related to all processors are in Also, I was thinking about generating the README from a For example, component_name: "Span Processor"
component_type: processor/span
release: ga
doc:
|
Describe what the processor does and give examples. would result in a README like
What do you think @tigrannajaryan ? |
If we decide to put other metadata in yaml I think we can fold in #985 and have just one file. The SFX agent does this with a single Having all the README.mds combined into a top-level I'd drop |
I synced with Tigran on this offline and he seemed to partly agree on generating the docs from something like yaml in the long term but details need to be flushed out. However, he mentioned for the purposes of this issue it would suffice to verify existence of docs for all components. Based on the discussion, for now this would entail splitting out the component docs into separate READMEs and automating the verification of those READMEs. But yes, I think we should combine the metric documentation along with the component docs in the long term. |
Once the READMEs are moved into the directory corresponding to the component, the READMEs could potentially end up in different locations. For example, the README for I wrote a go test that derives a list of enabled components by leveraging imports in Here's the test: ddbb166 What do you think @tigrannajaryan @jrcamp ? |
If we are ok with this approach I believe it could also be extended to the contrib repository. |
@asuresh4 the approach looks good to me. That's a nice way of finding the location of README. |
Generally lgtm, will make some comments when you open PR on it. |
Add a simple go test to ensure existence of documentation for enabled components. **Link to tracking Issue:** #1025
Add a simple go test to ensure existence of documentation for enabled components. **Link to tracking Issue:** open-telemetry#1025
…emetry#1025) * add helper to set kind in HPA * update autoscaling comment in values * bump version
We want to have documentation tests that verify that all components have a section in the corresponding README.md.
The text was updated successfully, but these errors were encountered: