feat(rhdh-templates): add a new rhdh-templates skill for authoring and validating Software Templates in RHDH#47
Draft
04kash wants to merge 3 commits into
Draft
Conversation
c3d5fc4 to
6f63fe1
Compare
…d validating Software Templates in RHDH Signed-off-by: Kashish Mittal <kmittal@redhat.com>
6f63fe1 to
c58f35e
Compare
Signed-off-by: Kashish Mittal <kmittal@redhat.com>
Signed-off-by: Kashish Mittal <kmittal@redhat.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: https://redhat.atlassian.net/browse/RHDHPLAN-1072
Summary
Adds
rhdh-templates(v0.5.1): interactive authoring and validation for RHDH Software Templates. Stdlib-only Python CLIs, bundled examples (minimal-template,nodejs-backend,java-springboot), curated example catalog, JSON Schema validation, and optional live Scaffolder API integration viarhdh-local.Reviewer quick check
uv sync --extra dev uv run pytest tests/unit/test_rhdh_templates.py -v # 39 tests, no RHDH needed python skills/rhdh-templates/scripts/validate.py \ --path skills/rhdh-templates/assets/examples/minimal-template --repo --jsonOptional (live RHDH on
:7007):What's included
skills/rhdh-templates/SKILL.md+ 12 sub-command referencesskills/rhdh/SKILL.mdTest results
rhdh-localbaseline; skipped withoutRHDH_URLManual lab — template matrix
example-templatemy-node-apiacme-widget-apimy-spring-servicePhase 5 exercised
list_actions,explain_action, anddry_runon all four templates. Integration pytest: 4 passed in 0.45s.Known sharp edge
fix_gotchas --applycorruptedmy-node-api/template.yamlduring lab testing; restored from bundled example. Dry-run mode is safe — prefer it until apply behavior is hardened.Test plan
rhdh-localvalidate.py --reposmoke checkRHDH_URLset