Files
Heimdall/skills/installer-checksum-acceptance/SKILL.md
T
arnaud.dartois 7c0c8ecf46
Heimdall Gitea / Detect CI scope (push) Successful in 11s
Heimdall Gitea / Build and tests (push) Successful in 18m40s
Heimdall Gitea / Build and scan server image (push) Successful in 8m5s
Heimdall Gitea / Build and scan agent image (push) Successful in 12m52s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Successful in 28m19s
Heimdall Gitea / Publish versioned installer release (push) Successful in 4m43s
Heimdall Gitea / CI policy (push) Successful in 13s
[Install] Vérifier le checksum publié du bundle serveur (#328)
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-12 03:17:50 +01:00

2.5 KiB

name, description
name description
installer-checksum-acceptance Build and verify the versioned Central installer checksum asset and both server bootstrap verification paths.

Central installer checksum acceptance

Use this workflow when changing install/install-server.sh, install/install-server.ps1, scripts/ci/package.sh, or the release asset set in scripts/ci/release-gitea.py.

Release contract

  • package.sh creates heimdall-installers-<version>.zip.sha256 beside the ZIP. Its single standard sha256sum line names the ZIP asset exactly, with no workspace-relative path.
  • release-gitea.py requires and publishes both files before making a release visible. The sidecar is part of the exact expected asset set for already-published releases.
  • The raw Linux and Windows bootstraps prefer a valid sha256:<64 hex> digest from the matching release API asset. If the digest is absent or null, they find the correspondingly named checksum asset, require an HTTPS download URL and exactly one checksum line naming the ZIP, download the ZIP, and compare its SHA-256 before extraction or execution.
  • A malformed, non-null API digest fails closed. Do not fall back from an invalid digest or calculate the expected checksum from the ZIP that is being verified.

Acceptance

  1. Run python3 scripts/ci/accept-release-offline.py in a clean dedicated checkout. Its TLS loopback Gitea double and fake Docker CLI must prove release asset publication, the API digest-present path, the Forgejo-compatible digest: null sidecar path, rejection of a mismatched sidecar, and fail-closed behavior for a malformed non-null API digest. Assert the expected installer asset names and the sidecar content against the produced ZIP.
  2. Run python3 -m unittest scripts.ci.test_ci (or the repository's equivalent CI policy test command) and verify release asset fixtures include the sidecar.
  3. Run bash -n install/install-server.sh; if pwsh is available, parse install/install-server.ps1 without invoking Windows-only installation actions.
  4. For any disposable Compose validation required by the behavior change, follow skills/compose-disposable-recipe/SKILL.md: use source-built unique tags and isolated credentials/ports/volumes, install cleanup before build/start, and verify project resources and exact image tags are absent afterward.
  5. Record local and CI evidence in the Gitea issue and PR. Do not claim a production Gitea release, /releases/latest, Docker Hub, runner, or deployed installer was validated by the offline API double.