Repository navigation
Distribute AACP as GitHub Release assets (v0.3.0a1) - #27
Conversation
Add a tag-driven release workflow that verifies, builds, smoke-tests and publishes the aacp-conformance wheel, sdist, CycloneDX SBOM and SHA256SUMS.txt as a GitHub Release, with Sigstore-signed build provenance and SBOM attestations. - verify: tag == v + pyproject version, non-empty CHANGELOG section, tagged commit on main, full conformance suite and lab tests - build: two builds under SOURCE_DATE_EPOCH; wheel must be byte-identical, sdist content-identical; wheel metadata, console script, licence and schema bytes checked; no runs/ or CI paths shipped; twine --strict - smoke: installed CLI on Linux, macOS and Windows, Python 3.12 and 3.13, plus the sdist, run outside any checkout - publish: tag push only, behind the `release` environment; draft, upload, asset-list check, then publish (compatible with immutable releases) Pull requests touching release inputs rehearse everything except publish. The CLI package CI job now shares scripts/smoke_installed_cli.py. CHANGELOG's unreleased section becomes 0.3.0a1. No PyPI publication.
darklordVirtual
left a comment
There was a problem hiding this comment.
Review (AI-drafted, Claude Opus 5.5; not independent): ready to merge.
Checked: the release workflow end to end (verify → build twice from SOURCE_DATE_EPOCH → check-dist --rebuild-dist → SBOM in a pip-less venv → checksums → smoke matrix → gated publish), smoke_installed_cli.py against the assertions removed from validate-assessments.yml (all kept: schema-valid results, NOT_RUN, property_verdict is None, C/F/G suite), and CI (14/14 green across ubuntu/macos/windows × 3.12/3.13 plus sdist).
Good: actions pinned by SHA, permissions: {} with per-job grants, publish only on tag reachable from origin/main, refuses to replace an existing release, draft → asset diff → publish, git diff --exit-code after the checks.
Non-blocking:
- Order with #28–#30. The tag is cut from
main. Ifv0.3.0a1is tagged right after this merges, the release contains none of the controls work. Suggest merging #24 and #28–#30 first, then tagging. conformance/is packaged, butconformance.controlsresolves its catalog throughROOT(the repository), sopython -m conformance.controlsfrom an installed wheel cannot find the catalog. Fine for an alpha if controls stay repo-only; worth one line indocs/INSTALL.md.- The smoke script relies on
assert, so it must never run underpython -O. It doesn't today.
Simulated merge of all open PRs in order (#27, #24, #25, #26, #28, #29, #30): no conflict from this PR; combined tree passes all AGENTS.md checks (490 tests OK).
Generated by Claude Code
What
A tag-driven release pipeline that publishes the
aacp-conformancepackage as GitHub Release assets instead of PyPI:aacp_conformance-<v>-py3-none-any.whlaacp_conformance-<v>.tar.gzaacp_conformance-<v>.cdx.jsonSHA256SUMS.txtPlus Sigstore-signed build-provenance (all assets) and SBOM (wheel) attestations, verifiable with
gh attestation verify.Workflow (
.github/workflows/release.yml)v+pyproject.tomlversion,CHANGELOG.mdmust have a non-empty## <version>section, tagged commit must be onmain; full conformance suite, vectors and lab tests (same as CI); fails if checks rewrite tracked files.SOURCE_DATE_EPOCH; wheel must be byte-identical, sdist content-identical. Checks wheel name/version/Requires-Python,aacpconsole script, LICENSE, everyschema/*.jsonbyte for byte, and that noruns//.github//cache paths ship.twine check --strict. SBOM from a pip-less venv. Checksums.aacp init/validate/inspect/adversarial --listoutside any checkout. Fails ifaacpimports from anywhere but the test venv.releaseenvironment. Re-verifies checksums, refuses an existing release, attests, creates a draft, uploads, checks the asset list, then publishes (works with immutable releases).PRs touching release inputs rehearse everything except publish (this PR triggers it). All actions pinned to commit SHAs; build tooling pinned in
requirements-release.txt.Also
scripts/release.py(stdlib only): tag/version/changelog gates, notes, dist checks, checksums.tests/test_release.py: 19 tests incl. changed-byte, stray-file,runs/leak, stale-schema and non-reproducible-wheel cases.scripts/smoke_installed_cli.py: shared by release and the existingcli-packageCI job (replaces its inline heredoc; same assertions plus version and import-location checks).docs/INSTALL.md(install, and what checksum/attestation do and do not establish),docs/RELEASING.md(runbook), README/CLI-onboarding pointers.CHANGELOG.md:## Unreleased→## 0.3.0a1 — alpha.Local verification
Full suite: 370 tests OK. Local rehearsal of the build job: wheel reproducible,
twine check --strictpasses, SBOM validates, wheel and sdist install and pass the smoke test; a wrong--versionfails it.actionlintclean.Before tagging (manual repo settings)
releaseenvironment with a required reviewer and deployment tag rulev*. Without it GitHub auto-creates the environment unprotected.v*.Then: merge →
git tag -a v0.3.0a1 -m "AACP 0.3.0a1" && git push origin v0.3.0a1→ approve the deployment.Not in scope
No PyPI publication, no bundled dependencies, no reusable
uses: …@v1Action yet.Generated by Claude Code