Stop an AUR outage from masking release verification

Merged
JE
4mo ago
+309-4

What happened

During the v0.8.0 release, aur.archlinux.org was down for maintenance:

Cloning into '/tmp/tmp.HmGroNAEYj/aur'...
The AUR is down due to maintenance. We will be back soon.
fatal: Could not read from remote repository.
Error: Process completed with exit code 128.

AUR publishing was a step inside the release job, positioned after both
GoReleaser (:241) and attestation (:264). So the step failed with the release
already published, which turned the job red — and took all four verification
jobs with it, skipped because they are needs: [release]:

JobOutcome for v0.8.0
Verify Windows signingskipped
Verify macOS signingskipped
Verify Nix flakeskipped
Sync skillsskipped

An unreachable third party silently cost us every signing verification on a
release that had already shipped. nix-verify and sync-skills were already
continue-on-error, but that does nothing when the job they depend on fails.

The fix

Split AUR into its own continue-on-error job. The release job now ends at
attestation, so its conclusion reflects only what we control, and the four
verification jobs run regardless of whether the AUR is reachable.

  • Three attempts with backoff absorb brief blips.
  • A failure opens an issue (mirroring the existing sync-skills idiom) instead of
    passing quietly, and always emits a ::error:: annotation.

Add aur-publish.yml, a workflow_dispatch recovery path for outages longer
than retries can cover. scripts/publish-aur.sh builds the PKGBUILD entirely from
the published GitHub release assets and no-ops when the AUR copy is already
current, so republishing an existing version is idempotent and needs no new tag.
It refuses versions that are not actually published, so a typo cannot push a
PKGBUILD pointing at assets that were never built.

Note on the alternative

Step-level continue-on-error would have been a smaller diff, but it leaves a
failed AUR publish sitting inside an otherwise-green job — it reads as a clean
release unless someone opens the job. A separate job keeps the failure visible on
its own.

Verification

  • bin/ci exit 0, actionlint clean, zizmor reports no findings.
  • v0.8.0's signing was verified locally in the meantime, so this PR is about
    preventing recurrence, not recovering that release.

Summary by cubic

Isolates AUR publishing into a continue-on-error job so AUR outages can’t block or hide release verification, and adds manual recovery workflows for AUR and skills sync.

  • New Features
    • Moved AUR publish to an aur-publish job; the release job now ends at attestation so macOS/Windows signing, Nix flake, and skills verification always run.
    • Added 3 attempts with backoff; on failure, open an issue and emit a workflow error annotation.
    • Added aur-publish.yml (workflow_dispatch) to republish a released version; verifies the version exists, refuses downgrades by checking the current AUR version via RPC (fails closed), preserves newer AUR pkgrel (handles dotted revisions via sort -V), and shares a concurrency group with the automatic publisher to prevent races; uses scripts/publish-aur.sh (idempotent, no new tag).
    • Added sync-skills.yml (workflow_dispatch) to mirror the skills/ tree from a release tag into basecamp/skills; requires the latest stable tag, checks out the tag and records the tagged SHA, and supports an honest dry_run (remote clone with read-only token).