Skip to content

fix: use checked file names when populating yang model dirs - #12135

Merged
jennifer-richards merged 1 commit into
ietf-tools:mainfrom
rjsparks:fix/yang-model-dir-file-names
Dec 3, 2026
Merged

jennifer-richards merged 1 commit into
ietf-tools:mainfrom
rjsparks:fix/yang-model-dir-file-names

Conversation

@rjsparks

Copy link
Copy Markdown
Member

populate_yang_model_dirs() now extracts models with ModelExtractor, as the
submission checker does, in place of calling xym.xym().

Behaviour change: a model is kept only if its file name, with quotesremoved, is a plain model file name. Names with spaces, with a directory part, or not ending in .yang were written before and are dropped now.

populate_yang_model_dirs() called xym.xym(), which writes each model to
the file name given in the document. It now uses ModelExtractor, as the
submission checker does. A model is kept only if its file name, with
quotes removed, is a plain model file name. Other models are removed.

File names with spaces, with a directory part, or not ending in .yang
were written before and are no longer written.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.51%. Comparing base (e4103bc) to head (a5bc44e).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12135      +/-   ##
==========================================
+ Coverage   89.45%   89.51%   +0.06%     
==========================================
  Files         343      343              
  Lines       47044    46581     -463     
==========================================
- Hits        42083    41698     -385     
+ Misses       4961     4883      -78     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jennifer-richards
jennifer-richards merged commit 7b4eb53 into ietf-tools:main Dec 3, 2026
9 checks passed
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