Phase 2: Fragment Migration - Migrated 42 ingredients to 54 fine-grained fragments - Replaced %include with %ksappend syntax - Created organized fragment structure (platform/generic-43, platform/generic-rawhide, shared/) - Updated generator to use fragment paths - All 16 manifest variants generate successfully Phase 3: Testing Infrastructure - Created containerized test runner (tests/container/) - Added integration test suite (tests/integration/) - Created golden master fixtures (tests/fixtures/expected_recipes/) - 41 tests passing (36 unit + 5 integration) - 54 fragments, 16 recipes validated Phase 4: CI/CD Integration - 5 new workflows: validate-recipes, validate-fragments, test-generation, container-tests, build-iso - Added validation gates before ISO builds - Works with existing fedora-runner-image - Local testing support via act_runner
26 lines
502 B
Docker
26 lines
502 B
Docker
# Phyllome OS Recipe Generator Test Container
|
|
|
|
FROM fedora:43
|
|
LABEL maintainer='Phyllome OS Team'
|
|
|
|
# Install minimal test dependencies
|
|
RUN dnf -y install \
|
|
pykickstart \
|
|
python3-pytest \
|
|
python3-pyyaml \
|
|
make \
|
|
git \
|
|
&& dnf clean all
|
|
|
|
# Set working directory
|
|
WORKDIR /phyllomeos
|
|
|
|
# Copy project files
|
|
COPY . /phyllomeos/
|
|
|
|
# Install Python dependencies
|
|
RUN pip install --no-cache-dir PyYAML pytest
|
|
|
|
# Run tests by default
|
|
CMD ["bash", "-c", "cd /phyllomeos && pytest tests/ -v"]
|