feat(clean-release): complete and verify backend test suite (33 passing tests)
- Relocated and standardized tests for clean_release subsystem into __tests__ sub-packages. - Implemented missing unit tests for preparation_service, audit_service, and stages. - Enhanced API contract tests for candidate preparation and compliance reporting. - Updated 023-clean-repo-enterprise coverage matrix with final verification results. - Fixed relative import issues and model validation mismatches during test migration.
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
> High-level module structure for AI Context. Generated automatically.
|
||||
|
||||
**Generated:** 2026-03-04T11:13:41.118516
|
||||
**Generated:** 2026-03-04T13:18:11.370535
|
||||
|
||||
## Summary
|
||||
|
||||
- **Total Modules:** 84
|
||||
- **Total Entities:** 2288
|
||||
- **Total Modules:** 83
|
||||
- **Total Entities:** 2349
|
||||
|
||||
## Module Hierarchy
|
||||
|
||||
@@ -91,10 +91,10 @@
|
||||
|
||||
### 📁 `__tests__/`
|
||||
|
||||
- 🏗️ **Layers:** API, Domain (Tests), UI (API Tests)
|
||||
- 📊 **Tiers:** STANDARD: 61, TRIVIAL: 121
|
||||
- 📄 **Files:** 9
|
||||
- 📦 **Entities:** 182
|
||||
- 🏗️ **Layers:** API, Domain, Domain (Tests), UI (API Tests), Unknown
|
||||
- 📊 **Tiers:** STANDARD: 63, TRIVIAL: 134
|
||||
- 📄 **Files:** 12
|
||||
- 📦 **Entities:** 197
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
@@ -285,6 +285,18 @@
|
||||
- 🔗 DEPENDS_ON -> TaskLogger, USED_BY -> plugins
|
||||
- 🔗 DEPENDS_ON -> TaskManager, CALLS -> TaskManager._add_log
|
||||
|
||||
### 📁 `__tests__/`
|
||||
|
||||
- 🏗️ **Layers:** Unknown
|
||||
- 📊 **Tiers:** TRIVIAL: 9
|
||||
- 📄 **Files:** 1
|
||||
- 📦 **Entities:** 9
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
- 📦 **test_task_logger** (Module) `[TRIVIAL]`
|
||||
- Auto-generated module for backend/src/core/task_manager/__te...
|
||||
|
||||
### 📁 `utils/`
|
||||
|
||||
- 🏗️ **Layers:** Core, Domain, Infra
|
||||
@@ -363,13 +375,15 @@
|
||||
|
||||
### 📁 `__tests__/`
|
||||
|
||||
- 🏗️ **Layers:** Domain
|
||||
- 📊 **Tiers:** STANDARD: 2, TRIVIAL: 27
|
||||
- 📄 **Files:** 2
|
||||
- 📦 **Entities:** 29
|
||||
- 🏗️ **Layers:** Domain, Unknown
|
||||
- 📊 **Tiers:** STANDARD: 2, TRIVIAL: 38
|
||||
- 📄 **Files:** 3
|
||||
- 📦 **Entities:** 40
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
- 📦 **test_clean_release** (Module) `[TRIVIAL]`
|
||||
- Auto-generated module for backend/src/models/__tests__/test_...
|
||||
- 📦 **test_models** (Module) `[TRIVIAL]`
|
||||
- Unit tests for data models
|
||||
- 📦 **test_report_models** (Module)
|
||||
@@ -539,9 +553,9 @@
|
||||
### 📁 `services/`
|
||||
|
||||
- 🏗️ **Layers:** Core, Domain, Service
|
||||
- 📊 **Tiers:** CRITICAL: 7, STANDARD: 75, TRIVIAL: 6
|
||||
- 📊 **Tiers:** CRITICAL: 7, STANDARD: 76, TRIVIAL: 6
|
||||
- 📄 **Files:** 7
|
||||
- 📦 **Entities:** 88
|
||||
- 📦 **Entities:** 89
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
@@ -576,10 +590,10 @@
|
||||
|
||||
### 📁 `__tests__/`
|
||||
|
||||
- 🏗️ **Layers:** Domain, Domain Tests, Service
|
||||
- 📊 **Tiers:** STANDARD: 24, TRIVIAL: 7
|
||||
- 📄 **Files:** 3
|
||||
- 📦 **Entities:** 31
|
||||
- 🏗️ **Layers:** Domain, Domain Tests, Service, Unknown
|
||||
- 📊 **Tiers:** STANDARD: 24, TRIVIAL: 17
|
||||
- 📄 **Files:** 4
|
||||
- 📦 **Entities:** 41
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
@@ -591,6 +605,8 @@
|
||||
- Unit tests for ResourceService
|
||||
- 📦 **test_encryption_manager** (Module)
|
||||
- Unit tests for EncryptionManager encrypt/decrypt functionali...
|
||||
- 📦 **test_llm_provider** (Module) `[TRIVIAL]`
|
||||
- Auto-generated module for backend/src/services/__tests__/tes...
|
||||
|
||||
**Dependencies:**
|
||||
|
||||
@@ -635,17 +651,29 @@
|
||||
|
||||
### 📁 `__tests__/`
|
||||
|
||||
- 🏗️ **Layers:** Domain
|
||||
- 📊 **Tiers:** STANDARD: 12
|
||||
- 📄 **Files:** 2
|
||||
- 📦 **Entities:** 12
|
||||
- 🏗️ **Layers:** Domain, Infra, Unknown
|
||||
- 📊 **Tiers:** STANDARD: 18, TRIVIAL: 25
|
||||
- 📄 **Files:** 8
|
||||
- 📦 **Entities:** 43
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
- 📦 **backend.tests.services.clean_release.test_audit_service** (Module)
|
||||
- Validate audit hooks emit expected log patterns for clean re...
|
||||
- 📦 **backend.tests.services.clean_release.test_compliance_orchestrator** (Module)
|
||||
- Validate compliance orchestrator stage transitions and final...
|
||||
- 📦 **backend.tests.services.clean_release.test_manifest_builder** (Module)
|
||||
- Validate deterministic manifest generation behavior for US1.
|
||||
- 📦 **backend.tests.services.clean_release.test_preparation_service** (Module)
|
||||
- Validate release candidate preparation flow, including polic...
|
||||
- 📦 **backend.tests.services.clean_release.test_report_builder** (Module)
|
||||
- Validate compliance report builder counter integrity and blo...
|
||||
- 📦 **backend.tests.services.clean_release.test_source_isolation** (Module)
|
||||
- Verify internal source registry validation behavior.
|
||||
- 📦 **backend.tests.services.clean_release.test_stages** (Module)
|
||||
- Validate final status derivation logic from stage results.
|
||||
- 📦 **test_policy_engine** (Module) `[TRIVIAL]`
|
||||
- Auto-generated module for backend/src/services/clean_release...
|
||||
|
||||
### 📁 `reports/`
|
||||
|
||||
@@ -675,10 +703,10 @@
|
||||
|
||||
### 📁 `__tests__/`
|
||||
|
||||
- 🏗️ **Layers:** Domain, Domain (Tests)
|
||||
- 📊 **Tiers:** STANDARD: 2, TRIVIAL: 19
|
||||
- 📄 **Files:** 2
|
||||
- 📦 **Entities:** 21
|
||||
- 🏗️ **Layers:** Domain, Domain (Tests), Unknown
|
||||
- 📊 **Tiers:** STANDARD: 2, TRIVIAL: 24
|
||||
- 📄 **Files:** 3
|
||||
- 📦 **Entities:** 26
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
@@ -686,6 +714,8 @@
|
||||
- Validate unknown task type fallback and partial payload norm...
|
||||
- 📦 **test_report_service** (Module)
|
||||
- Unit tests for ReportsService list/detail operations
|
||||
- 📦 **test_type_profiles** (Module) `[TRIVIAL]`
|
||||
- Auto-generated module for backend/src/services/reports/__tes...
|
||||
|
||||
### 📁 `tests/`
|
||||
|
||||
@@ -717,26 +747,12 @@
|
||||
- 📦 **test_smoke_plugins** (Module) `[TRIVIAL]`
|
||||
- Auto-generated module for backend/tests/test_smoke_plugins.p...
|
||||
|
||||
### 📁 `routes/`
|
||||
|
||||
- 🏗️ **Layers:** Domain
|
||||
- 📊 **Tiers:** STANDARD: 2, TRIVIAL: 5
|
||||
- 📄 **Files:** 2
|
||||
- 📦 **Entities:** 7
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
- 📦 **backend.tests.api.routes.test_clean_release_api** (Module)
|
||||
- Contract tests for clean release checks and reports endpoint...
|
||||
- 📦 **backend.tests.api.routes.test_clean_release_source_policy** (Module)
|
||||
- Validate API behavior for source isolation violations in cle...
|
||||
|
||||
### 📁 `core/`
|
||||
|
||||
- 🏗️ **Layers:** Domain, Unknown
|
||||
- 📊 **Tiers:** STANDARD: 5, TRIVIAL: 32
|
||||
- 📊 **Tiers:** STANDARD: 5, TRIVIAL: 33
|
||||
- 📄 **Files:** 4
|
||||
- 📦 **Entities:** 37
|
||||
- 📦 **Entities:** 38
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
@@ -763,22 +779,6 @@
|
||||
- 📦 **backend.tests.core.migration.test_dry_run_orchestrator** (Module)
|
||||
- Unit tests for MigrationDryRunService diff and risk computat...
|
||||
|
||||
### 📁 `clean_release/`
|
||||
|
||||
- 🏗️ **Layers:** Domain
|
||||
- 📊 **Tiers:** STANDARD: 11, TRIVIAL: 5
|
||||
- 📄 **Files:** 3
|
||||
- 📦 **Entities:** 16
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
- 📦 **backend.tests.services.clean_release.test_manifest_builder** (Module)
|
||||
- Validate deterministic manifest generation behavior for US1.
|
||||
- 📦 **backend.tests.services.clean_release.test_policy_engine** (Module)
|
||||
- Validate policy model contracts and deterministic classifica...
|
||||
- 📦 **backend.tests.services.clean_release.test_source_isolation** (Module)
|
||||
- Verify internal source registry validation behavior.
|
||||
|
||||
### 📁 `components/`
|
||||
|
||||
- 🏗️ **Layers:** Component, Feature, UI, UI -->, Unknown
|
||||
@@ -1107,9 +1107,9 @@
|
||||
### 📁 `__tests__/`
|
||||
|
||||
- 🏗️ **Layers:** UI, UI (Tests)
|
||||
- 📊 **Tiers:** STANDARD: 6, TRIVIAL: 4
|
||||
- 📄 **Files:** 6
|
||||
- 📦 **Entities:** 10
|
||||
- 📊 **Tiers:** STANDARD: 7, TRIVIAL: 4
|
||||
- 📄 **Files:** 7
|
||||
- 📦 **Entities:** 11
|
||||
|
||||
**Key Entities:**
|
||||
|
||||
@@ -1123,6 +1123,8 @@
|
||||
- Validate report type profile mapping and unknown fallback be...
|
||||
- 📦 **frontend.src.lib.components.reports.__tests__.reports_filter_performance** (Module)
|
||||
- Guard test for report filter responsiveness on moderate in-m...
|
||||
- 📦 **frontend.src.lib.components.reports.__tests__.reports_list.ux** (Module)
|
||||
- Test ReportsList component iteration and event forwarding.
|
||||
- 📦 **frontend.src.lib.components.reports.__tests__.reports_page.integration** (Module)
|
||||
- Integration-style checks for unified mixed-type reports rend...
|
||||
|
||||
@@ -1657,6 +1659,8 @@ graph TD
|
||||
__tests__-->|TESTS|backend
|
||||
__tests__-->|TESTS|backend
|
||||
__tests__-->|TESTS|backend
|
||||
__tests__-->|TESTS|backend
|
||||
__tests__-->|TESTS|backend
|
||||
__tests__-->|DEPENDS_ON|backend
|
||||
__tests__-->|DEPENDS_ON|backend
|
||||
__tests__-->|VERIFIES|backend
|
||||
@@ -1729,6 +1733,11 @@ graph TD
|
||||
clean_release-->|DEPENDS_ON|backend
|
||||
__tests__-->|TESTS|backend
|
||||
__tests__-->|TESTS|backend
|
||||
__tests__-->|TESTS|backend
|
||||
__tests__-->|VERIFIES|backend
|
||||
__tests__-->|TESTS|backend
|
||||
__tests__-->|TESTS|backend
|
||||
__tests__-->|TESTS|backend
|
||||
reports-->|DEPENDS_ON|backend
|
||||
reports-->|DEPENDS_ON|backend
|
||||
reports-->|DEPENDS_ON|backend
|
||||
@@ -1739,16 +1748,11 @@ graph TD
|
||||
__tests__-->|TESTS|backend
|
||||
__tests__-->|TESTS|backend
|
||||
tests-->|TESTS|backend
|
||||
routes-->|TESTS|backend
|
||||
routes-->|TESTS|backend
|
||||
core-->|TESTS|backend
|
||||
core-->|VERIFIES|backend
|
||||
core-->|VERIFIES|backend
|
||||
migration-->|VERIFIES|backend
|
||||
migration-->|VERIFIES|backend
|
||||
clean_release-->|VERIFIES|backend
|
||||
clean_release-->|VERIFIES|backend
|
||||
clean_release-->|TESTS|backend
|
||||
__tests__-->|VERIFIES|components
|
||||
__tests__-->|VERIFIES|components
|
||||
__tests__-->|VERIFIES|lib
|
||||
|
||||
Reference in New Issue
Block a user