Repository navigation
ci: smoke-test packages, harden release publishing, check the site before deploy - #125
bodencrouch wants to merge 1 commit into
Conversation
…fore deploy Audit findings on release.yml, package-manual.yml and pages.yml: - Packages were published without any binary ever being started. package-manual now unpacks each package on its native runner, checks the binary against its build receipt, and runs `modsync --version`. - release.yml required "at least one" package; it now requires exactly one per target listed in packaging/targets.json at the release commit. - A tag left by a failed run made `gh release create --target` publish packages from a different commit than the tag. prepare now refuses when the tag exists at another commit. - The Nexus duplicate-upload check piped `gh release view` into `jq -e` inside an `if`, so an API error read as "not uploaded" and re-uploaded. It now reads the assets first, so an API error fails the step. - Nexus-Mods/upload-action (which receives the API key) and download-artifact were tag-pinned; both are now commit-pinned. - pages.yml deployed site/ with no checks. site_check.py now refuses a missing index.html or a broken local link; its tests also run the check on the real site, so PRs catch breakage before deploy. - Stale "nothing publishes these packages" comments corrected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QDKiomK3BZE8fScCAGRfuq
|
Root cause: This target has never linked: Fix (separate PR): declare the FFI block and callback types 🤖 Generated with Claude Code https://claude.ai/code/session_01QDKiomK3BZE8fScCAGRfuq Generated by Claude Code |
|
Once #122 merges, I'll update this branch onto 🤖 Generated with Claude Code https://claude.ai/code/session_01QDKiomK3BZE8fScCAGRfuq Generated by Claude Code |
Fixes found by auditing
release.yml,package-manual.ymlandpages.ymlfor steps that could pass without doing their job.modsync --version(must exit 0 and printmodsync <ver>). The result goes intolane.json→smokeTest.packaging/targets.jsonat the release commit.preparefails if the tag exists at a different commit.gh release view … | jq -einsideif, so an API error read as "not uploaded" and re-uploaded (archiving the live file)Nexus-Mods/upload-action(gets the API key) anddownload-artifactused moveable tagsv1.0.0-beta.11,v6.0.0to match upload-artifact v6).site/uncheckedsite_check.pyrefuses a missingindex.htmlor a broken/escaping local link; its unit test runs it on the real site, so every PR checks it.package-manual.yml,packaging/README.md).Not changed (needs a decision): a Nexus leg still skips green when its secret or file-ID variable is unset. That's deliberate so forks release cleanly. Making it required in this repo would fail releases until Nexus is configured.
Verification
test_site_check.pytests.site_check.py sitereports 14 pages with 0 problems.package-manualon this branch and report all 7 lanes here before merging.Generated by Claude Code