-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (64 loc) · 2.34 KB
/
Copy pathpublic-release-boundary.yml
File metadata and controls
77 lines (64 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Public Release Boundary
on:
pull_request:
branches: [develop, main]
push:
branches: [develop, main]
workflow_dispatch:
jobs:
boundary-validation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Validate source boundary (allowlisted scope)
run: |
bash scripts/validate-public-manifest.sh \
--root . \
--manifest release/public-manifest.yaml \
--only-included
- name: Build deterministic public artifact
run: |
mkdir -p /tmp/public-artifact
bash scripts/build-public-artifact.sh \
--root . \
--manifest release/public-manifest.yaml \
--output /tmp/public-artifact
- name: Verify artifact boundary
run: |
bash scripts/validate-public-manifest.sh \
--root /tmp/public-artifact \
--manifest release/public-manifest.yaml
- name: Run pipeline regression tests
run: |
bash tests/test_public_manifest_pipeline.sh
- name: Validate public docs version consistency
run: |
python - <<'PY'
from pathlib import Path
import re
import sys
version = Path("VERSION").read_text(encoding="utf-8").strip()
readme = Path("README.md")
changelog = Path("CHANGELOG.md")
contributing = Path("CONTRIBUTING.md")
missing = [p for p in [readme, changelog, contributing] if not p.exists()]
if missing:
print("Missing required public docs:")
for p in missing:
print(f"- {p}")
sys.exit(1)
readme_text = readme.read_text(encoding="utf-8", errors="ignore")
changelog_text = changelog.read_text(encoding="utf-8", errors="ignore")
if not re.search(re.escape(version), readme_text):
print(f"README.md missing current version marker: {version}")
sys.exit(1)
if not re.search(re.escape(version), changelog_text):
print(f"CHANGELOG.md missing current version marker: {version}")
sys.exit(1)
print("Public docs version consistency check passed.")
PY