Skip to content

Carry PR build artifacts inside a tar so epoch package names survive - #553

Merged
ryanrhughes merged 1 commit into
masterfrom
ci/pack-artifacts-for-epoch-names
Sep 20, 2026
Merged

ryanrhughes merged 1 commit into
masterfrom
ci/pack-artifacts-for-epoch-names

Conversation

@ryanrhughes

Copy link
Copy Markdown
Collaborator

Why

actions/upload-artifact@v4 rejects any path containing :. makepkg names an epoch package name-1:ver-rel-arch.pkg.tar.zst. So every PR that builds an epoch package fails its build job at "Upload artifact" even though the build succeeded, and publish.yml then rebuilds from scratch on merge.

Seen on the sync PR #512 (cursor-cli, both arches, twice) and #550 (omasnap). Ten package dirs carry an epoch today: asdcontrol, cursor-cli, libfprint-git, libretro-cap32-git, libretro-database-git, libretro-fbneo-git, minecraft-launcher, omasnap, spotify, vi. All but omasnap are already published under those names, so the epochs cannot come off.

What

  • helpers/artifact-helpers.sh: pack_packages tars the built *.pkg.tar.zst into packages.tar; unpack_packages restores them. Filenames stay exactly as makepkg wrote them, which bin/publish-artifact and pacman clients require.
  • build-pr.yml: pack before upload; the artifact is one packages.tar.
  • publish.yml: unzip into a scratch dir, then unpack into build-output/edge/<arch>/. Bare pre-packing artifacts still unpack until 7-day retention drains them.
  • tests/artifact-helpers.sh: round trip with an epoch name, signature/db exclusion, legacy bare artifacts, empty inputs. Added to the self-tests job.

Verified

  • tests/artifact-helpers.sh passes locally and in the archlinux:base-devel container CI uses.
  • node --test tests/pr-workflow-approval.cjs: 34/34.
  • actionlint findings identical to master (only the pre-existing self-hosted label notices).

Tooling comes from the base branch in PR builds, so this PR's own build job runs the old upload step. Once merged, re-run the build on #512 and #550.

actions/upload-artifact rejects any path containing ':', and makepkg names
a package with an epoch `name-1:ver-rel-arch.pkg.tar.zst`. Every PR that
built such a package (cursor-cli in the sync PRs, omasnap once it gained an
epoch) failed at "Upload artifact" after a successful build, and publish
then rebuilt from scratch on merge.

The files now ride inside packages.tar for the artifact hop and come back
out with makepkg's names untouched: pacman clients and bin/publish-artifact
both require the filename to match PKGINFO, and the channels already carry
these names. publish.yml still accepts bare pre-packing artifacts until the
7-day retention drains them.

helpers/artifact-helpers.sh holds both halves; tests/artifact-helpers.sh
covers the round trip and runs with the other self-tests.
@ryanrhughes
ryanrhughes merged commit 30e8629 into master Sep 20, 2026
6 checks passed
@ryanrhughes
ryanrhughes deleted the ci/pack-artifacts-for-epoch-names branch September 20, 2026 20:17
gentlemanSoup pushed a commit to gentlemanSoup/omarchy-pkgs that referenced this pull request Sep 21, 2026
github.event.pull_request.base.sha is a snapshot taken when the PR was
last pushed, not the current tip of the base branch. A reopened or rerun
PR therefore builds with whatever master looked like at its last push,
and a tooling fix that landed on master since then never reaches it:
the daily sync PR reopened after omacom#553 merged checked out a base without
helpers/artifact-helpers.sh and failed at "Pack artifact".

Check out base.ref instead. The plan's diff and the empty-PR check still
compare base.sha to head.sha, so the list of changed packages is
unaffected; only the tooling that runs on the droplet moves to the tip.
APS6 pushed a commit to APS6/omarchy-pkgs that referenced this pull request Sep 26, 2026
Moves the pin from f7ea7ecc to the head of quattro-upstream, which adds
omacom#552's reset-prepare, reset-verify, reset-commit and reset-rollback
entrypoints, omacom#553's luks-slots entrypoint and recovery key handling,
omacom#556's encrypt unit output to kmsg at notice, and omacom#560's snapshot restore
check with its limine-snapper-sync pre and post hooks. The pin's UTC date is
still 20260925, so pkgrel goes to 4. omacom#544 is not in it, so the Plymouth
fragment still ships and no HOOKS baseline dependency applies.
APS6 pushed a commit to APS6/omarchy-pkgs that referenced this pull request Sep 26, 2026
…ntrypoints need

omarchy-lifecycle-dispatch requires reset-* (omacom#552) and luks-slots (omacom#553) on
Apple Silicon, so a runtime carrying them before this package blocks factory
reset, owner setup and omarchy-drive-password on Macs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant