fix(ci): fail fast and legibly when the push cannot succeed #2
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/publish-diagnostics"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to the first real run of
publish.yaml, which failed with:That message points at the race-retry loop. The actual cause was that
KVARTSI_TOKENwas empty — nas provisions it viaforgejo-actions-secrets, and that host has not been deployed yet. Anyone reading the log would have gone looking at concurrency.Only retry what retrying can fix
The loop treated every push failure as a lost race. A bad credential, a protected branch or a deleted repo fails identically five times and then reports the attempt count instead of the error.
Now only a non-fast-forward retries; everything else fails immediately and prints git's own output. Verified by classifying real captured output from both cases — a genuine
! [rejected] ... (non-fast-forward)and the actualAuthentication failedthis run produced.Check the token up front
kvartsi is public, so
git clonesucceeds with no credential at all — the missing secret only surfaces four steps later, at the push, as an auth error against a URL that looks correct. A one-line check names the problem and the host that fixes it.No behaviour change on the happy path.