fix(release): decouple download mirrors from source synchronization

This commit is contained in:
AAA committed 2026-11-13 15:21:51 -04:00
1 parent 15d159bff0
commit c40ae1e403
8 files changed
+66 -80

No files matched your search

+24 -14
View File
@@ -117,14 +117,22 @@ signing identity before distributing a package that promises automatic updates.
## AtomGit Download Mirror
[AtomGit TNTcraftHIM/Piik](https://atomgit.com/TNTcraftHIM/Piik) is the public
source and Release mirror. GitHub owns development, issues and original packages.
AtomGit's configured repository synchronization handles branches, tags and commits;
the **AtomGit mirror** GitHub workflow separately copies published binary assets.
Git synchronization remains AtomGit's responsibility; this workflow does not push,
create or change Git references, and does not ask users to synchronize them manually.
download mirror. GitHub owns development, issues, source identity and original packages.
The **AtomGit mirror** GitHub workflow copies published binary assets. Repository
synchronization is optional and must not gate package distribution. A mirror's
local Release tag only locates attachments; the GitHub source marker and verified
original package digests establish their identity. Release creation uses the
mirror's initialized default branch when the local tag does not exist.
Its repository Actions secret is `ATOMGIT_TOKEN`. Never put this token in source,
a remote URL or a distributed package. GitHub publication keeps its scoped token.
Use a writable repository for package distribution. AtomGit's Pull-mirror mode
rejects Release creation when it needs to create a tag, with an `image repository`
error. Remove that Pull association in **Project Settings → Repository Mirroring**
without deleting the repository or its Releases. Automatic source synchronization
is optional; it must not make the distribution repository read-only. Provider-generated
source archives are not the canonical source linked in the mirrored release body.
After a completed main-push CI run, the workflow checks the current stable GitHub
release and finds its original publishing CI run, even when the triggering run
only updated tooling. A later failed container step does not prevent
@@ -134,18 +142,19 @@ If that published Release includes signed update metadata, the mirror restores
those two original GitHub attachments, verifies their digest and signature against
the package inventory, and uploads identical bytes. It never generates a new
signature or requires the private signing key.
GitHub publication and **Website** do not depend on mirror success. An unfinished mirror remains a
An authorized release is not complete until its mirror and managed deployments
pass their postflight checks. GitHub publication and **Website** can proceed independently,
but a failed mirror remains unfinished release work. An unfinished mirror remains a
prerelease until every package passes anonymous full-download SHA-256 validation.
This includes the original signed Android APK without rebuilding it.
Every three hours the same workflow also checks the latest GitHub release's mirror
metadata. A stable mirror with the matching source marker and complete package
inventory of uploaded attachments needs no further work; provider-generated source
archives do not count as packages. A missing source commit or matching tag is
reported as deferred until AtomGit's scheduled Git synchronization completes.
Both outcomes use a sparse tools-only checkout and skip dependency installation
and artifact downloads. API failures
or conflicting source identities remain failures, not successful deferrals.
archives do not count as packages. A missing or incomplete prerelease resumes
publication from original artifacts without reading mirrored commits or tags.
Completed mirrors use a sparse tools-only checkout and skip dependency installation
and artifact downloads. API failures or conflicting source identities remain failures.
When ready, recovery locates the completed main-push CI run for that exact source,
downloads its original artifacts and resumes the existing publisher. It never
@@ -161,9 +170,10 @@ For recovery, rerun **AtomGit mirror** with the original publishing CI run ID:
gh workflow run atomgit-mirror.yml --repo TNTcraftHIM/Piik --ref main -f run_id=RUN_ID
```
The run ID is optional for a manual status check; without it, the workflow uses
the same latest-release lookup as its scheduled check. Ordinary delayed source
synchronization or interrupted uploads need no manual trigger.
The run ID is optional; without it, the workflow resolves the latest GitHub release.
The scheduled check is recovery support, not the release-completion gate. If a
scheduled run is delayed or an upload fails, run this recovery during the authorized
release instead of assuming a later schedule will finish it.
The source must be a completed main-push CI run matching the latest published
GitHub release. The workflow runs trusted main tooling and treats artifacts only
+8 -6
View File
@@ -394,10 +394,11 @@ presentation, not Piik's version selection or feature claims.
## Release Sources
GitHub Releases is the primary publication. The public
[AtomGit project](https://atomgit.com/TNTcraftHIM/Piik) mirrors source branches,
tags and commits through its configured repository synchronization. Release
metadata and binary attachments are published separately; Git synchronization
alone does not make packages available.
[AtomGit project](https://atomgit.com/TNTcraftHIM/Piik) distributes the same original
Release packages. Optional source synchronization is independent of that duty
and must not delay it. The mirror's local tag is an attachment locator, not the
authority for the package's source revision; GitHub and the retained source marker
own that identity.
Build each target once. The mirror publisher reuses the shared artifact validator,
compares every original package with GitHub's published SHA-256 digest, and copies
@@ -412,8 +413,9 @@ credentials and must not appear in logs. Before marking the release stable,
anonymously download every package and verify its complete size and SHA-256.
A rerun inventories the existing release and attachments first; never blindly
retry a timed-out mutation or replace a published package. An incomplete release
remains a prerelease. GitHub and website publication remain independent of mirror
success. No automatic deletion or Gitee-specific quota policy applies to AtomGit.
remains a prerelease. GitHub and website publication may proceed independently,
but release completion requires the matching verified mirror. Scheduled retries
do not replace this postflight. No automatic deletion or Gitee-specific quota policy applies to AtomGit.
GitHub remains the first update source; the current Rust App and Server use
AtomGit when it is unavailable. Published 2.x binaries retain their embedded
+4
View File
@@ -20,6 +20,10 @@ the feedback period; they do not delay that delivery.
fixes a separate reproduced defect; verify the updated candidate on the
reported setup and whether intended sound remains after exclusion. Neither
that correction nor the earlier local-preview fix yet explains the PID-specific report.
- [ ] **Release mirror repository mode.** Remove AtomGit's read-only Pull
association so future Release tags can be created independently of source
synchronization. Keep the repository URL and published attachments;
[mirror operations](./operations/github.md#atomgit-download-mirror) owns setup.
- [ ] **Windows sound only works with exclusion (#534).** Compare the affected
application's playback endpoint with Piik's default-endpoint capture. The
[output-routing control](./research/media-fidelity.md#windows-output-routing)