Skip to content

Auto generate readme tables#39

Merged
sayalinvidia merged 3 commits intoNVIDIA:mainfrom
sayalinvidia:auto-generate-readme-tables
May 1, 2026
Merged

Auto generate readme tables#39
sayalinvidia merged 3 commits intoNVIDIA:mainfrom
sayalinvidia:auto-generate-readme-tables

Conversation

@sayalinvidia
Copy link
Copy Markdown
Collaborator

Onboarding type

  • New product onboarding (components.yml entry)
  • Other (catalog change, README fix, infrastructure, etc.)

For new product onboarding — author affirmations

By submitting this PR, I confirm on behalf of my team:

  • Skills cleared for open source release per NVIDIA's internal IP review process (six-question check, all answers affirmative)
  • License selected: Apache 2.0 / CC-BY 4.0 / Dual (Apache 2.0 + CC-BY 4.0). Specify: _____
  • No new license or new third-party component introduced beyond what the source repo already carries
  • Source repo is public and under an NVIDIA-owned GitHub org
  • .agents/skills/ or skills/ path used for new entries (or existing path retained for legacy entries per components.yml)

NVIDIA contributors: see the internal onboarding guide for the IP review process details and license selection.

Reviewer checklist (OSS Skills PIC)

  • Author confirmations above are checked
  • components.yml entry valid (required fields, unique catalog_dir, path exists in source repo)
  • SKILL.md frontmatter spec-compliant (at least one sampled)
  • README rows added (Available Skills + Getting Help & Contributing)
  • No new license or third-party dependency requiring OSRB filing

All PRs

  • All commits signed off with DCO (git commit -s).
    If you forgot, run git rebase --signoff origin/main && git push --force-with-lease to retroactively sign all commits in your branch.

Other context (for non-onboarding PRs)

@sayalinvidia sayalinvidia marked this pull request as ready for review May 1, 2026 00:16
@sayalinvidia sayalinvidia requested a review from mosheabr as a code owner May 1, 2026 00:16
Copy link
Copy Markdown
Collaborator

@mosheabr mosheabr left a comment

Choose a reason for hiding this comment

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

Approve in principle — solves the human-vs-human conflict problem structurally by making components.yml the single source of truth for both README tables. Awk-spliced replacement between marker pairs is clean and uses standard tools.

Two items before merge:

  1. Rebase from main — currently DIRTY/CONFLICTING because RAG Blueprint landed via #36 after this branch was cut. After rebase, the auto-gen will pick up the rag-blueprint components.yml entry and emit a row for it (with 0 skills count and version cell until the next bot sync populates skills/rag/).

  2. Follow-up (non-blocking): for components with multiple skills: entries, the script links only skills[0].catalog_dir. In this PR's diff, NeMo Evaluator's catalog link flips from skills/NeMo-Evaluator/ to skills/NeMo-Evaluator-Launcher/ because Launcher is index 0 in the yaml. Either reorder the yaml entries so the canonical dir is first, or extend the script to list multiple dirs when a component has more than one. Fine to land this PR as-is and address in a follow-up.

Side benefit worth noting: auto-gen surfaces stale skill counts in current README — Megatron-Bridge 9→25, Megatron-Core 6→7, Model-Optimizer 5→8, NeMo-Gym 1→2, TensorRT-LLM 20→24. These will now self-correct on each sync.

After rebase + push, this should sail through (DCO check is now live as of #38).

sayalinvidia and others added 3 commits April 30, 2026 17:50
Adds a regeneration script (.github/scripts/regenerate-readme.sh) that
builds both the "Available Skills" and "Getting Help & Contributing"
tables from components.yml. The script wraps tables in marker pairs
(<!-- skills-table-start --> / <!-- skills-table-end --> and the help
equivalents) so subsequent runs replace just the table contents.

Why: removes the per-row hand-maintenance step from onboarding. Teams
edit components.yml; the workflow regenerates README on each sync.
Also fixes drift — stale skill counts (Megatron-Bridge 9→25,
Megatron-Core 6→7, Model-Optimizer 5→8, NeMo Gym 1→2, TensorRT-LLM
20→24) reflect actual SKILL.md file counts, and RAG Blueprint (in
README but never registered in components.yml) is dropped.

Also replaces per-row version markers (<!-- sync:slug:version -->...)
with plain rendered cells. Since the workflow now regenerates the full
row, version cells are part of the row template.

Convention: when a component has multiple `skills:` entries (e.g.
NeMo Evaluator with Launcher + Evaluator), the first entry is treated
as the "primary" for the Catalog and Source links. Reorder the
components.yml entries to change which skill displays.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Sayali Kandarkar <skandarkar@nvidia.com>
Replaces the per-row sed-based "Update README version markers" step
with a single call to .github/scripts/regenerate-readme.sh. The script
rebuilds both README tables from components.yml on every sync run, so
adding/removing/reordering components no longer requires hand-editing
README rows or marker blocks.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Sayali Kandarkar <skandarkar@nvidia.com>
The sync workflow now regenerates README tables from components.yml
on every run (see auto-generate-readme-tables PR), so onboarding PRs
no longer need to add README rows by hand. The reviewer checklist
item becomes inapplicable.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Sayali Kandarkar <skandarkar@nvidia.com>
@sayalinvidia sayalinvidia force-pushed the auto-generate-readme-tables branch from 9b0e880 to 86460a7 Compare May 1, 2026 00:55
@sayalinvidia
Copy link
Copy Markdown
Collaborator Author

Thank you for the feedback, @mosheabr
The rebase addresses point 1 (rebase from main) directly — that was the merge blocker. PR is now clean and DCO-passing, ready to land.

Point 2 (NeMo Evaluator multi-skill linking) - I haven't touched it in this update, will be a separate follow-up PR (either a one-line components.yml reorder so NeMo-Evaluator is skills[0], or extending the script to render multiple catalog dirs per row).

@sayalinvidia sayalinvidia merged commit 63be640 into NVIDIA:main May 1, 2026
1 check passed
@mosheabr mosheabr mentioned this pull request May 1, 2026
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants