Skip to content

refactor: externalize package changes and branches to auto-reloading YAML#1576

Draft
aparcar wants to merge 2 commits intoopenwrt:mainfrom
aparcar:yaml
Draft

refactor: externalize package changes and branches to auto-reloading YAML#1576
aparcar wants to merge 2 commits intoopenwrt:mainfrom
aparcar:yaml

Conversation

@aparcar
Copy link
Member

@aparcar aparcar commented Feb 6, 2026

Move hardcoded package change rules and branch definitions into external YAML files (package_changes.yaml, branches.yaml) validated by JSON Schema and auto-reloaded on modification. No server restart required for updates.

Add CI step to validate YAML files against their schemas.

@codecov
Copy link

codecov bot commented Feb 6, 2026

Codecov Report

❌ Patch coverage is 98.00797% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.17%. Comparing base (5e65dec) to head (ddb615b).
⚠️ Report is 346 commits behind head on main.

Files with missing lines Patch % Lines
asu/main.py 25.00% 3 Missing ⚠️
asu/package_changes.py 97.56% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1576       +/-   ##
===========================================
+ Coverage   80.75%   94.17%   +13.41%     
===========================================
  Files          15       18        +3     
  Lines         977     1905      +928     
===========================================
+ Hits          789     1794     +1005     
+ Misses        188      111       -77     

☔ View full report in Codecov by Sentry.
📢 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.

@aparcar aparcar force-pushed the yaml branch 3 times, most recently from ea41fd9 to 495e512 Compare February 6, 2026 23:46
…YAML

Move hardcoded package change rules and branch definitions from Python
into asu.yaml, validated by asu_schema.json and auto-reloaded on file
modification. No server restart required for updates.

Add CI step to validate YAML files against their schemas.
@efahl
Copy link
Contributor

efahl commented Feb 7, 2026

Looking good, might take me a day or two for me to digest it all but I like what I'm seeing here. I'll start running this locally and poking at it, see what I find.

@aparcar
Copy link
Member Author

aparcar commented Feb 7, 2026

Thanks, I'm still thinking about some details. Also I'd add an interface to visualize the changes

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