Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/releases/server-1.6.550.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Prepared source only; no Server image or release has been published.

## Change
## Verified component inputs

Backport the twelve official PCRE2 `release/pcre2-10.46` commits through
`947809f11e9c9744aa0974b4b630a1ae461733dd` onto the original Ubuntu 26.04
Expand Down
16 changes: 16 additions & 0 deletions scripts/test-render-server-release-notes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import importlib.util
from pathlib import Path
import re
import unittest

spec = importlib.util.spec_from_file_location('notes', Path(__file__).with_name('render-server-release-notes.py'))
Expand All @@ -10,6 +11,21 @@
class PublicationNotes(unittest.TestCase):
source = '# Server v1.6.546 candidate\n\nNot published.\n\n## Verified component inputs\n\n- Exact input.\n'

def test_actual_current_release_note_has_the_required_evidence_boundary(self):
root = Path(__file__).resolve().parents[1]
recipe = (root / 'server/Dockerfile.web-compose-release').read_text(encoding='utf-8')
tags = set(re.findall(r'^ARG SERVER_RELEASE_TAG=(v[0-9]+\.[0-9]+\.[0-9]+)$', recipe, re.M))
self.assertEqual(1, len(tags))
tag = tags.pop()
body = (root / ('docs/releases/server-' + tag[1:] + '.md')).read_text(encoding='utf-8')
self.assertEqual(1, body.count('## Verified component inputs\n'))
if body.startswith('# Server ' + tag + ' candidate\n'):
# In-memory format validation only; these fixture identities are
# never written to release assets or presented as a real image.
notes.render(body, tag, 'sha256:' + 'a' * 64, 'b' * 40)
else:
self.assertTrue(body.startswith('# Server ' + tag + '\n'))

def test_publication_identity_is_exact_and_deployment_is_not_claimed(self):
result = notes.render(self.source, 'v1.6.546', 'sha256:' + 'a' * 64, 'b' * 40)
self.assertIn('server:v1.6.546@sha256:' + 'a' * 64, result)
Expand Down