refactor: rename fragments directory to ingredients and update all references

- Directory rename: fragments/ → ingredients/ (54 .ks files)
- Updated all Python scripts:
  * tests/integration/conftest.py - fixture renames
  * tests/integration/test_integration.py - constant and path updates
  * tests/test_recipe_generator.py - updated test assertions
  * recipe-generator/validators.py - updated comments and error messages
  * recipe-generator/recipe_generator.py - updated comment
- Updated all YAML files:
  * recipe-generator/recipe_templates.yaml - 66 path references
  * .gitea/workflows/validate-fragments.yaml → validate-ingredients.yaml
  * .gitea/workflows/test-generation.yaml - path patterns
- Updated scripts:
  * bin/ksflatten-relative - updated path detection
- Updated test file:
  * tests/integration/test_fragments.py → test_ingredients.py
- Updated documentation:
  * DEVELOPMENT.md - simplified references
  * DEVELOPMENT_QUICK.md - updated examples
  * tests/container/README.md - test references
- Regenerated all recipes (16 files) with ingredient paths
- Updated test fixtures (7 files)
- All integration tests pass (5/5)
- All unit tests pass (29/31 - 2 pre-existing failures unrelated)
This commit is contained in:
Lukas Greve
2026-03-26 20:27:56 +01:00
parent 3eb4c75392
commit 31955a8983
135 changed files with 670 additions and 1319 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ on:
paths:
- 'recipe-generator/**/*.py'
- 'recipe-generator/**/*.yaml'
- 'fragments/**/*.ks'
- 'ingredients/**/*.ks'
pull_request:
paths:
- 'recipe-generator/**/*.py'
@@ -1,12 +1,12 @@
name: validate-fragments
name: validate-ingredients
on:
push:
paths:
- 'fragments/**/*.ks'
- 'ingredients/**/*.ks'
pull_request:
paths:
- 'fragments/**/*.ks'
- 'ingredients/**/*.ks'
jobs:
validate:
@@ -22,21 +22,21 @@ jobs:
- name: Install pykickstart
run: pip install pykickstart
- name: Validate all fragments
- name: Validate all ingredients
run: |
errors=0
for fragment in $(find fragments -name "*.ks"); do
for ingredient in $(find ingredients -name "*.ks"); do
if python3 -c "
from pykickstart.parser import KickstartParser
from pykickstart.version import makeVersion, DEVEL
parser = KickstartParser(makeVersion(DEVEL))
parser.readKickstart(open('$fragment').read())
parser.readKickstart(open('$ingredient').read())
" 2>/dev/null; then
echo "✓ $fragment"
echo "✓ $ingredient"
else
echo "✗ $fragment"
echo "✗ $ingredient"
errors=$((errors + 1))
fi
done
echo "Fragment validation complete: $errors errors"
echo "Ingredient validation complete: $errors errors"
exit $errors