You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "errose28 (via GitHub)" <gi...@apache.org> on 2024/07/09 15:40:27 UTC

Re: [PR] HDDS-11072. Publish user-facing configs to the doc site [ozone]

errose28 commented on PR #6916:
URL: https://github.com/apache/ozone/pull/6916#issuecomment-2218046023

   Thanks for working on this @sarvekshayr. The PR description mentions automation and publishing, but I don't see any automated way of running this in the PR currently. This is important to work out because it affects the implementation:
   - If we are generating the table on every Ozone build, a Java implementation would be preferred so no new deps are added to the build.
   - If we are generating the table with GitHub actions in CI, a shell based implementation would be preferred.
     - A script using an XML parser like [yq](https://mikefarah.gitbook.io/yq/usage/xml) (similar to jq and already bundled in Ubuntu actions runners) or [xmllint](https://xmllint.com/) with xpath queries can pull config keys from a config xml file.
     - If we plan to run this from the [new website](https://github.com/apache/ozone-site/tree/HDDS-9225-website-v2) in a "pull" model for HDDS-10683, there will be no Java dependencies in that environment.
       - Note that the repo for the new website contains all the docs there instead of having them in the ozone repo.
   
   Since it looks like the configs require outputs from the Ozone build, not just the source, I'm assuming the plan for automation will look something like this:
   - The Java implementation is plugged into the Maven build when the Ozone is built.
   - For the current website, the source file it generates as a result of the build is committed back to the repo somehow, either as a separate PR by a bot or a commit done in CI.
   - For the new website, the source file it generates is committed back to the ozone-site repo by a bot either automatically or through a pull request.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org