Defer report authoring and retain technical build integration

This commit is contained in:
Codex
2026-11-25 20:12:07 +00:00
parent e8d4653abf
commit 1fa79546e6
6 changed files with 6 additions and 159 deletions
+2 -2
View File
@@ -229,9 +229,9 @@ def publish(bundle, expected, pdf, state, output, baseline, jenkins_build):
from pypdf import PdfReader
reader = PdfReader(pdf)
text = '\n'.join(p.extract_text() or '' for p in reader.pages)
for value in [version, expected['source_commit'], 'Configuring and Running the DevOps Pipeline']:
for value in [version, expected['source_commit']]:
if value not in text:
raise ValueError('PDF is missing release identity or final-project chapter')
raise ValueError('PDF is missing release identity')
build_meta = json.loads(pdf.with_name('build-manifest.json').read_text())
if (build_meta.get('release_version') != version or build_meta.get('commit') != expected['source_commit']
or build_meta.get('review_sha256') != digest(files['review.json'])