Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/integration/runtime
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The Omarchy runtime CI tests the packages against: a repository and a full commit.
# Move it deliberately, like a recipe pin. Today the head of omacom/omarchy#14431;
# upstream omacom/omarchy once it merges.
omacom/omarchy 8614160b78e882c181f4ee38c51f507d43248979
omacom/omarchy 4d9bdc49dffdb5e78d9c89d24d3903350cb00ca7
2 changes: 1 addition & 1 deletion tools/package-resolution/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Platforms name the runtime's own package lists (`install/omarchy-*.packages`), r
## Checks per platform

- **Repositories:** none of the platform's `forbidden_repos` is configured.
- **Closure:** every list entry and extra package resolves, and the whole set resolves in one transaction. Entries in `unpublished` are skipped with their reason and reported once they resolve.
- **Closure:** every list entry and extra package resolves, and the whole set resolves in one transaction. Entries in `unpublished` are skipped with their reason and reported once they resolve. Names in the runtime's `install/omarchy-x86_64-only.packages` (base packages only x86_64 builds, which `omarchy-pkg-defaults` leaves out on aarch64) are not wanted at all; `transitions` and `kernel` are still checked as written.
- **Conflicts:** no closure package declares a conflict with another one. `pacman -Sp` skips this check, so it is computed from the databases, with versioned conflicts compared by `vercmp`.
- **Forbidden packages:** no closure package matches `forbidden_packages`.
- **linux provider:** reports what `pacman -S linux` selects and every package offering `linux`; fails when a forbidden package is selected. With `kernel` set, also reports the selection with that kernel installed.
Expand Down
6 changes: 6 additions & 0 deletions tools/package-resolution/check
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ check_platform() {
done
wanted+=("${packages[@]}")
mapfile -t wanted < <(printf '%s\n' "${wanted[@]}" | awk 'NF && !seen[$0]++')
# The runtime leaves the base packages only x86_64 builds out of every
# aarch64 set (omarchy-pkg-defaults), so they are not wanted here either.
if [[ -n $runtime && -f $runtime/install/omarchy-x86_64-only.packages ]]; then
mapfile -t wanted < <(printf '%s\n' "${wanted[@]}" |
grep -vxF -f <(sed -e 's/[[:space:]]*#.*//' -e '/^[[:space:]]*$/d' "$runtime/install/omarchy-x86_64-only.packages"))
fi

local missing=() targets=() out
local -A is_wanted=() is_missing=()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
[options]
Architecture = aarch64

[omarchy]
Server = https://pkgs.omarchy.org/edge/$arch

[core]
Server = https://ca.us.mirror.archlinuxarm.org/$arch/$repo
Server = https://fl.us.mirror.archlinuxarm.org/$arch/$repo
Expand All @@ -21,6 +24,3 @@ Server = http://mirror.archlinuxarm.org/$arch/$repo
Server = https://ca.us.mirror.archlinuxarm.org/$arch/$repo
Server = https://fl.us.mirror.archlinuxarm.org/$arch/$repo
Server = http://mirror.archlinuxarm.org/$arch/$repo

[omarchy]
Server = https://pkgs.omarchy.org/edge/$arch
7 changes: 7 additions & 0 deletions tools/package-resolution/test/check-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ expect_fail repos "an Asahi repository on a generic platform fails" 'repos: forb
platform missing "core" "tool ghost" 'unpublished=([ghost]="not published yet")' 'transitions=(ghost)'
expect_pass missing "an unpublished package with a reason is skipped" 'skip missing: ghost transitions \(not published yet\)'

mkdir -p "$scratch/runtime/install"
printf '# x86_64 only\nghost\n' >"$scratch/runtime/install/omarchy-x86_64-only.packages"
platform x86only "core" "tool ghost"
output=$("$CHECK" --platforms "$scratch/platforms" --work "$scratch/work" --runtime "$scratch/runtime" x86only 2>&1) && status=0 || status=$?
(( status == 0 )) && ! grep -q ghost <<<"$output" || fail "a runtime's x86_64-only package is not wanted on aarch64" "$output"
pass "a runtime's x86_64-only package is not wanted on aarch64"

platform unknown "core" "tool ghost" 'transitions=(ghost)'
expect_fail unknown "an unknown package fails" 'unknown: ghost is in no configured repository'
grep -Fq 'FAIL unknown: ghost does not resolve for transitions' <<<"$output" || fail "an unknown transition package fails" "$output"
Expand Down
Loading