Defer report authoring and retain technical build integration
This commit is contained in:
+2
-2
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user