4.7 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 object-storage key exposed through the permanent distribution gateway:
<distribution-base>/<ComponentId>/<version>/<artifact>
The signed public feed refers only to the distribution URL. It never contains Gitea credentials, object-storage credentials, presigned URLs, or private clone URLs. Private Gitea repositories do not have independently public release units, so public delivery must remain a separate distribution concern.
The object origin should be private from its first deployment. The gateway may
allow anonymous GET requests initially; a future entitlement check can return
401 or 403 at the same permanent URL without rewriting signed immutable
feed documents.
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_BASE_URLECHOION_FEED_BASE_URLECHOION_FEED_SIGNING_KEY_IDCOMPONENT_OBJECT_STORAGE_BUCKETCOMPONENT_OBJECT_STORAGE_ENDPOINTwhen using a non-AWS S3 serviceCOMPONENT_OBJECT_STORAGE_PREFIX, normallycomponentsCOMPONENT_OBJECT_STORAGE_REGION
The following secrets are required in each component repository:
RELEASE_CHECKOUT_SSH_KEY(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_KEYRELEASE_FEED_GIT_SIGNING_KEYCOMPONENT_OBJECT_STORAGE_ACCESS_KEYCOMPONENT_OBJECT_STORAGE_SECRET_KEY
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.