fix: address production release review findings
CI / tests-and-images (pull_request) Successful in 2m43s
Runner smoke test / runner-smoke (pull_request) Successful in 2s

This commit is contained in:
agent committed 2026-10-25 13:44:56 +03:00
1 parent 852d639c45
commit 9d8ce6b67f
16 files changed
+505 -128

No files matched your search

+9 -7
View File
@@ -83,13 +83,15 @@ apply. The workflow fails before building if `REGISTRY_USERNAME` or
`REGISTRY_PASSWORD` is absent. Those names are not configured or verified on
Gitea. If the owner later enables it, the credential must be package-write-only
for the two approved image names; no production env, service secret, runner
socket, or host mount is passed. The release descriptor is unsigned and the
workflow prints its small JSON and checksum to the authenticated run log. The
runner's cache service remains disabled. Gitea's runner-v2 documentation says
that its v1 cache protocol requires Gitea's upload/download artifact forks;
this repository does not yet validate a compatible artifact action against
the installed act_runner 0.2.13, so the log is the bounded retrieval fallback
and no runner cache setting is changed. The workflow has
socket, or host mount is passed. The release descriptor is unsigned and is
uploaded with its SHA-256 sidecar as a Gitea Actions artifact using the
full-SHA-pinned Gitea-compatible upload-artifact v3 action. Gitea 1.25.5
provides the artifact runtime endpoints and act_runner 0.2.13 exposes
`ACTIONS_RUNTIME_URL` independently of the cache URL. PR CI uploads a small
synthetic marker with one-day retention to verify that endpoint without
registry credentials. Runner cache remains disabled and unchanged. The release
artifact requests 90-day retention, subject to the instance's configured cap;
the owner must confirm retention covers the rollback window. The workflow has
not yet been run with registry credentials.
## Installation and registration
+9
View File
@@ -30,6 +30,15 @@ conflicts with this dated recheck.
- Gitea is `1.25.5`; `main` is `b5adc09203cbbbd298054248206b9f47ae4a44ca`.
CI run 175 and runner smoke 176 succeeded on that commit. Package write
access and runner inventory remain outside this API principal's permissions.
- PR #59 head `852d639c455ff1c60202405e112d47b8128d66c6` received formal
review #308 with five requested fixes. CI run 177 failed in
`test_digest_rollback_fails_before_stopping_or_changing_references` because
the test's global `Path.stat` mock made `Path.exists()` report a false
recovery-journal hit under CI Python 3.12; runner smoke 178 succeeded. A
fix batch in this PR isolates state paths, handles ambiguous alias/cutover
outcomes, verifies rollback image IDs, and adds a synthetic artifact upload
check. Gitea CI for the updated head still needs to confirm the change; no
live release or VPS change was made.
- Owner-only outstanding evidence: sanitized container/volume and protected
file metadata; current backup and separate-target restore verification;
live corpus/index counts and RU/KY canaries; Cloudflare TLS mode; registry
+6 -3
View File
@@ -16,9 +16,12 @@ or raw process environments.
VPS, runner, or production service credentials.
- Confirm the registry retention rule keeps all digest-pinned versions for at
least the rollback window. State the number of versions/days, not secret data.
- The release descriptor is printed to the authenticated workflow run log; the
runner's artifact/cache service remains disabled to avoid extra disk use.
- The current descriptor is unsigned. Decide whether Gitea run/artifact
- Confirm Gitea artifact retention also covers the rollback window. The main-only
release workflow requests 90 days for its small descriptor and checksum;
instance policy may cap that value. PR CI uploads a tiny marker for one day
to validate the runner artifact endpoint. Neither requires enabling the
runner cache service.
- The release descriptor is unsigned. Decide whether Gitea run/artifact
traceability is sufficient for the first owner-run release or require a
separately provisioned signing/attestation service before publishing.
+6 -3
View File
@@ -29,9 +29,12 @@ against the separately pinned previous refs and image IDs, verifies image
availability, makes and verifies a second cold backup, and switches both
protected image refs atomically. Digest references are never retagged; legacy
tag images are restored by image ID. Compose runs with `--no-build`, followed
by healthcheck and local HTTPS validation. A failed cutover or rollback keeps
a secret-free recovery journal and blocks another release until an owner
resolves it. A legacy deployment without release state can still roll back
by a check that both running container image IDs equal the selected restore
plan, followed by healthcheck and local HTTPS validation. A mismatch fails the
rollback, restores the prior references when they can be verified, and keeps a
secret-free recovery journal; it never records the expected IDs as if they
were running. A failed cutover or rollback blocks another release until an
owner resolves the journal. A legacy deployment without release state can still roll back
matching legacy tags, but digest rollback is refused until the state is
established by the reviewed release helper.