test: integrate diagnostic report adapter
Beffroi Reporting CI Beffroi Reporting integration CI failed.
Beffroi/beffroi-reporting/pipeline/head There was a failure building this commit
Details
Beffroi Reporting CI Beffroi Reporting integration CI failed.
Beffroi/beffroi-reporting/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
53cdfee3c5
commit
25b49f446b
|
|
@ -126,8 +126,9 @@ Depends on a working end-to-end slice from Passes 2–4. Work in beffroi-reporti
|
|||
- [ ] P5.3 Add high-level workflow commands based on the component CLIs for collection, offline analysis, draft report generation, rendering, and a complete incident run. Keep implementation in components.
|
||||
- [ ] P5.4 Add an integration test: sanitized capture → analysis → diagnostic artifact → report adapter → report input → Reportist → PDF. Validate schemas, expected evidence/findings, and PDF output; use isolated temporary outputs.
|
||||
- [ ] P5.5 Invoke component checks and the integration test from Jenkins; report actual validation coverage, tool versions, and artifacts accurately.
|
||||
- Component contract suites are wired through `make check` and Jenkins; the
|
||||
end-to-end integration test remains pending.
|
||||
- Component contract suites are wired through `make check` and Jenkins; the
|
||||
diagnostic-to-report slice is now included, while analysis, PDF rendering,
|
||||
and the complete end-to-end integration test remain pending.
|
||||
- [ ] P5.6 Pin the tested component commits intentionally and document external dependencies plus clean-checkout reproduction commands; verify `git clone --recursive` followed by bootstrap and integration testing.
|
||||
|
||||
Exit: a pinned integration revision runs the sanitized pipeline reproducibly,
|
||||
|
|
@ -149,6 +150,18 @@ reports remain understandable/recreatable and individual tools need no macro rep
|
|||
|
||||
## Pass handoff log
|
||||
|
||||
### 2026-09-15 — First diagnostic-to-report slice
|
||||
|
||||
- Completed reports tasks BR2.1–BR2.2 with an immutable adapter generation,
|
||||
evidence snapshots, validator delegation, hash-based conflict detection and
|
||||
atomic Linux publication. Updated `make check` to execute its six preservation
|
||||
tests and a real synthetic generation through both pinned validators.
|
||||
- Validation: 10 diagnostic, eight Reportist and six adapter tests pass; the
|
||||
generated draft validates as Reportist v1. Analysis and PDF output remain out
|
||||
of scope for this slice, so P5.4/P5.5 remain open.
|
||||
- Next: expand adapter error coverage and branding, implement the first offline
|
||||
diagnostic analysis and generic renderer slices, then connect PDF integration.
|
||||
|
||||
### 2026-09-15 — Adapter regeneration policy
|
||||
|
||||
- Completed P1.4 / BR1.4 as a specification in the reports component. Generated
|
||||
|
|
|
|||
|
|
@ -63,8 +63,9 @@ synchronizes each component's pinned requirements. On first use, uv may download
|
|||
Python and dependencies, requiring network access. No system packages are changed.
|
||||
The runner prints tool versions and component revisions and stops on any failure.
|
||||
|
||||
Current coverage is the diagnostic and report contract suites. The reports adapter
|
||||
has no executable suite yet; this command does not verify analysis or PDF output.
|
||||
Current coverage includes the diagnostic and report contract suites, adapter
|
||||
preservation tests, and a synthetic diagnostic-to-report generation validated by
|
||||
both component tools. It does not verify diagnostic analysis or PDF output.
|
||||
Submodules must already be initialized with the command above.
|
||||
|
||||
## Push component commits and the workspace together
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 12970575d33a6d166828ccabdba63ddecc1abf9e
|
||||
Subproject commit cce56374324aa055bca031e81ab77c061f580595
|
||||
|
|
@ -25,4 +25,21 @@ for component in win-diagnostics reportist; do
|
|||
"$environment/bin/python" -m unittest discover -s "$component/tests" -p 'test_*.py' -v
|
||||
done
|
||||
|
||||
echo 'Component contract checks passed. Full pipeline and PDF checks remain pending.'
|
||||
echo "Checking beffroi-reports ($(git -C beffroi-reports rev-parse HEAD))"
|
||||
python3 --version
|
||||
python3 -m unittest discover -s beffroi-reports/tests -p 'test_*.py' -v
|
||||
|
||||
adapter_check_root="$(mktemp -d "${TMPDIR:-/tmp}/beffroi-adapter-check.XXXXXX")"
|
||||
trap 'rm -rf -- "$adapter_check_root"' EXIT
|
||||
".venv/component-checks/reportist/bin/python" beffroi-reports/tools/diagnostic-to-report.py \
|
||||
--diagnostic beffroi-reports/tests/fixtures/diagnostic.json \
|
||||
--evidence-root beffroi-reports/tests/fixtures \
|
||||
--output-dir "$adapter_check_root/generation" \
|
||||
--title 'Synthetic diagnostic draft' \
|
||||
--author 'CI Test' \
|
||||
--date 2026-09-15 \
|
||||
--generator-version "$(git -C beffroi-reports rev-parse HEAD)" \
|
||||
--diagnostic-validator win-diagnostics/tools/validate.py \
|
||||
--report-validator reportist/tools/validate.py
|
||||
|
||||
echo 'Contract and adapter checks passed. Analysis and PDF checks remain pending.'
|
||||
|
|
|
|||
Loading…
Reference in New Issue