fix(release): admit exact reviewed publisher SEO repair paths
Deploy Canina / deploy (push) Failing after 9h30m37s

This commit is contained in:
devops committed 2026-10-25 18:34:09 +00:00
1 parent 44d74d35e6
commit b4420e54b7
2 files changed
+21 -1

No files matched your search

+6 -1
View File
@@ -41,7 +41,12 @@ ALLOWED = {'nginx.conf', 'Dockerfile', 'backend/Dockerfile', '.dockerignore',
'frontend/application/components/BlogPostClient.tsx',
'frontend/application/components/__tests__/BlogPostClient.test.tsx',
'frontend/application/lib/extractFaqs.ts',
'frontend/application/lib/extractFaqs.test.ts'}
'frontend/application/lib/extractFaqs.test.ts',
# Exact authorized publisher technical SEO repair; no frontend wildcard.
'frontend/application/app/blog/[slug]/page.tsx',
'frontend/application/app/blog/[slug]/publisher-seo.test.tsx',
'frontend/application/lib/blogAuthor.ts',
'frontend/application/lib/blogAuthor.test.ts'}
def validate_receipt(r, sha, baseline, paths):
if not (r.get('accepted') is True and r.get('scope') == 'reliability-only'
+15
View File
@@ -64,6 +64,21 @@ class ProductionGuards(unittest.TestCase):
with self.assertRaises(ValueError):
m.validate_receipt(r, 'a'*40, 'b'*40, [path])
def test_exact_publisher_seo_repair_paths_allowed_only(self):
paths = ['frontend/application/app/blog/[slug]/page.tsx',
'frontend/application/app/blog/[slug]/publisher-seo.test.tsx',
'frontend/application/lib/blogAuthor.ts',
'frontend/application/lib/blogAuthor.test.ts']
r = self.receipt(); r['paths'] = paths
m.validate_receipt(r, 'a'*40, 'b'*40, paths)
for path in ['frontend/application/app/blog/[slug]/other.tsx',
'frontend/application/lib/other.ts',
'frontend/application/app/blog/page.tsx']:
r['paths'] = [path]
with self.assertRaises(ValueError):
m.validate_receipt(r, 'a'*40, 'b'*40, [path])
self.assertFalse(any('*' in path for path in m.ALLOWED))
def test_independent_typed_catalog_acceptance_required(self):
r = self.receipt()
r.pop('typed_catalog_acceptance', None)