Add change request builder and validated local output publication

This commit is contained in:
Nico committed 2026-10-14 12:47:22 +02:00
1 parent e6d202c211
commit d7e3753bb5
16 files changed
+1719 -4

No files matched your search

@@ -156,3 +156,12 @@ def test_full_bug20_package_pair(tmp_path):
assert reader.manifest['artifacts']['failure_report']==diagnosed.failure_ref
assert PackageValidator().validate(diagnosed.package).valid
assert [hashlib.sha256(path.read_bytes()).hexdigest() for path in (diag, src)] == original_hashes
from viano_bug_analysis.analysis import OutputValidator, ChangeRequestBuilder
delivery_gateway=gateway(final_adapter,max_request_bytes=4*1024*1024)
delivery_router=InvestigationToolRouter(database_tool=DatabaseQueryTool(normalize_schema_descriptor))
assert asyncio.run(ChangeRequestBuilder(store,delivery_gateway,router=delivery_router).build(*identity)).status=='INCONCLUSIVE'
exported=asyncio.run(OutputValidator(store,delivery_gateway,router=delivery_router).publish(*identity))
assert exported.status=='REVIEW' and exported.exported.parent==store.workspace.review
assert exported.exported.read_bytes()==exported.package.read_bytes()
assert PackageValidator().validate(exported.exported).valid
assert final_adapter.calls==1