5.5 KiB
Independent component releases
Echoion product releases and component releases are deliberately separate.
A component release never edits components.lock.json, creates an Echoion
product tag, or starts the Echoion product workflow. The lock is updated only
while preparing a later full Echoion release.
Published objects
Every runtime component publishes the same verified package to two places:
-
A release in the component's own Gitea repository. This is the provenance and maintainer-facing release after that repository becomes private.
-
An immutable public distribution key. The default deployment uses the public
Voidorganization Generic Package Registry:https://git.faumaray.ru/api/packages/Void/generic/<ComponentId>/<version>/<artifact>Gitea packages belong to the organization rather than a repository, so they remain anonymously downloadable while component repositories and their native releases are private.
The signed public feed refers only to the distribution URL. It never contains Gitea credentials, storage credentials, presigned URLs, or private clone URLs. Private Gitea repositories do not have independently public release units, so public delivery remains a separate distribution concern.
The organization registry is the no-infrastructure public backend. A future paid distribution gateway should use a separate permanent origin from its first published version; immutable feed documents must not have their URLs rewritten after signing.
Release transaction
The workflow on a signed vX.Y.Z tag publishes stable releases. A prerelease
tag publishes beta. A scheduled run publishes a nightly only when that
component's source SHA differs from its last nightly state.
The shared release tool performs this idempotent transaction:
- Verify the component tag and derive the required version from the prior stable feed state and canonical ABI contract.
- Check out exact dependency revisions from the product dependency snapshot.
- Configure the component with its own
ECHOION_COMPONENT_VERSION, build, test, install, and package it deterministically. - Upload with an object-store create precondition and download-verify the result. An existing object is accepted only when its bytes match.
- Create or reconcile the component's native Gitea release.
- Merge that component into the signed channel feed and push one signed
release-feedcommit.
Gitea 1.25 does not enforce the GitHub Actions concurrency and permissions
keys. All component release jobs therefore target the dedicated
echoion-release-serial runner label. That label must have capacity one.
The feed push is still a compare-and-swap through Git's fast-forward rule, so a
misconfigured second runner fails instead of losing another publication.
Required configuration
Set ECHOION_RELEASE_TOOLS_REF to the full 40-character Echoion commit that
contains the approved release tools. Workflows verify the checkout against the
exact value.
The following Gitea Actions variables are required:
ECHOION_RELEASE_TOOLS_REFECHOION_DISTRIBUTION_BACKEND, currentlygitea-genericECHOION_DISTRIBUTION_BASE_URLECHOION_FEED_BASE_URLECHOION_FEED_SIGNING_KEY_IDCOMPONENT_OBJECT_STORAGE_BUCKETonly for the optionals3backendCOMPONENT_OBJECT_STORAGE_ENDPOINTwhen using a non-AWS S3 serviceCOMPONENT_OBJECT_STORAGE_PREFIX, normallycomponents, for S3COMPONENT_OBJECT_STORAGE_REGIONfor S3
The following secrets are required once at the Void organization level and
are inherited by every component release workflow:
RELEASE_CHECKOUT_SSH_KEY(single-line base64 of an OpenSSH private key with read access to every private component and dependency repository, plus write access to Echoion's protectedrelease-feedbranch)RELEASE_TAG_ALLOWED_SIGNERSRELEASE_BOT_TOKENRELEASE_FEED_ED25519_PRIVATE_KEY(single-line base64 of the PEM private key)RELEASE_FEED_GIT_SIGNING_KEY(single-line base64 of the OpenSSH private key)COMPONENT_OBJECT_STORAGE_ACCESS_KEYonly for S3COMPONENT_OBJECT_STORAGE_SECRET_KEYonly for S3
Create single-line private-key values with base64 -w0. Raw multiline private
keys are deliberately rejected because some runner versions expose multiline
environment values in job diagnostics.
The Echoion product repository needs only
RELEASE_FEED_ED25519_PUBLIC_KEY for feed verification. It must not receive
the component-feed private key.
Use a release-bot PAT limited to repository release and feed publication
operations. Do not share a personal administrator token. Protect v* tags and
the Echoion release-feed branch, and permit only the release identity to
publish them.
Manifest schema 3
Independent packages use manifest schema 3. The manifest carries the component version, product compatibility range, source/tree/ABI identities, exact build dependency provenance, platform/toolchain contract, activation policy, private libraries, and file hashes. It does not claim the current Echoion product version.
The channel catalog is a merge of independently published components. Its sequence is global and monotonic; each component state also maintains monotonic per-channel history. Immutable release documents are never replaced with different artifact or source identities.
Before creating a full Echoion tag, update components.lock.json intentionally.
The product workflow verifies every locked component against its signed
immutable feed document before it builds or publishes the product.