Repository navigation
Refuse promotions that move an unqualified Mac package set - #1745
Merged
Merged
Conversation
maralcbr
force-pushed
the
mac-package-set-enforce
branch
from
October 28, 2026 10:37
bb202fd to
fefa54d
Compare
[High impact] No new code defect blocks merging; the owner's inventory choice and policy agreement remain explicit prerequisites. SummaryThis PR makes the Mac-set check block promotions instead of only reporting problems.
|
maralcbr
force-pushed
the
mac-package-set-enforce
branch
2 times, most recently
from
October 28, 2026 11:14
e843ea5 to
c4187c8
Compare
maralcbr
force-pushed
the
mac-package-set-check
branch
from
October 28, 2026 11:14
5e98482 to
64794cd
Compare
maralcbr
force-pushed
the
mac-package-set-enforce
branch
2 times, most recently
from
October 28, 2026 12:16
c773913 to
b47a065
Compare
promote-channel now refuses a plan check-mac-set refuses, dry run included, and promote.yml checks every architecture before either publishes. The fast-ring publish at merge refuses the rc or stable slot the same way.
A Mac package rebuilt under a pkgbase the inventory does not list stays in the Mac set and is refused, named.
check-mac-set --slots checks a whole merge publish at once, and publish.yml runs it before its first slot. The fast-ring catch-up plans every slot with --dry-run first. A refusal on one architecture now publishes nothing.
Set the qualified Mac package set to the 4.5 candidate frozen on edge on 2026-10-29: image omarchy-mac-edge-2026.10.29-20c83855d86d-e0d77393d485 (VM acceptance, and an M2 Max fresh install updated to the same set).
maralcbr
force-pushed
the
mac-package-set-enforce
branch
from
October 29, 2026 08:11
e37a166 to
74eb2c5
Compare
This was referenced Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Turns the Mac package-set check from reporting into refusing, at all three promotion points.
Evidence
Before (omarchy-pkgs#1744):
a promotion the check would refuse is reported and still published.After:
tests/mac-package-set.sh:tests/promote-channel.shandtests/publish-artifact.shstill pass unchanged.Testing evidence
x86_64 and aarch64 unaffected: before/after regression
tests/promotion-regression.sh(new, in CI) runs the same fixture channels through the promotion tooling ofbe8ab9bd(master before the check) and through this branch's tooling (this PR together with omarchy-pkgs#1744). It then requires every step to match exactly: exit code, plan (each package's action and hold reason), publishes, and the resulting channel database. The fixtures are an x86-only set and a non-Mac aarch64 set; the last aarch64 step names a non-Mac package while a Mac stack is ahead on edge.be8ab9bd)alphaedge → rc--fast-ringedge → stable--fast-ringedge → rcarm-tool, Mac stack ahead on edgeThe only difference is additive. With the change, the record carries one
{"type":"mac-set","result":"untouched"}line per run (asserted, then set aside before comparing), and stdout gets one info line.Fixture channel cases (
tests/mac-package-set.sh)The fixture channels hold Mac pkgbases
mac-kernel,mac-bootandmac-audio(arch=any), plusmac-new(inventorynone). They also hold the sharedshared-lib(provideslibshared.so) and the fast-ringfast-tool(providestool-api). Each case runs throughpromote-channelorcheck-mac-set --remote --addthe way the workflows call them:alphawhile edge's Mac stack is aheadmac-kernel 1.0-2(inventory 1.0-1)mac-kernelmac-audio 1.0-2mac-audio(same rule)mac-new(inventorynone)mac-kernelmac-audio,mac-boot(missing)shared-lib 2dropslibshared.so=1(no Mac package moves)mac-boot needs libshared.so=1; rc would offer only libshared.so=2 (from shared-lib)--fast-ringwithfast-tool 2droppingtool-api=1--add): breaking / non-Mac / compatible fast-ring filemac-audiorebuilt under unlisted pkgbaseaudio-renamedmac-audio would move from Mac pkgbase mac-audio to audio-renamed--slots: rc/x86_64 untouched + rc/aarch64 breaking--slots: all slots passWhole suite
be8ab9bd)self-tests(every test intest.yml, native x86_64)build-isolationtest.ymlself-test plus everypkgbuilds/*/test.shmac-package-set.sh(25 PASS) andpromotion-regression.sh(2 PASS)tests/promote-channel.shtests/publish-artifact.shtests/fast-ring-check.shnode --test tests/{pr-workflow-approval,sync-upstream-summary,builder-image}.cjs(local macOS)Commands:
x86-visible behaviour
Yes, this PR changes x86-visible behaviour, and it's isolated here so Ryan can agree the policy. When everything is reachable, promotions with no Mac change behave exactly as before;
tests/promotion-regression.shabove proves it on x86_64 and aarch64. What changes:aurora-audio,alsa-ucm-conf-aurora);omarchy,limine-mkinitcpio-hook, …) that would break a Mac dependency;Each of these is refused. The full list is under Merge Danger. omarchy-pkgs#1744 changes no x86-visible behaviour (it only reports).
Intended behaviour change
Only promotions that move a Mac package, or something the Mac set depends on, change. They are refused when the result wouldn't be the qualified set or the closure wouldn't resolve, and nothing is published on either arch. The x86-visible consequences are listed under Merge Danger.
Merge Danger
Door: two-way
A revert restores report-only.
Blast Radius: promotions
What x86 users and maintainers will see:
release/mac-inventory.txtnow fails, and moves nothing on either arch. With the inventory as seeded (rc's set on 2026-10-28) and edge's Mac stack ahead, today's whole-channel edge → rc would be refused until the owner sets the candidate's versions or the run names only non-Mac pkgbases.aurora-audioandalsa-ucm-conf-auroraarearch=any, so they're in the x86_64 channels and fall under the same rule. That's the agreed no-per-arch-exception rule, but it means an x86_64 run can fail on them.omarchy,limine-mkinitcpio-hook, anything the Mac set depends on) is refused if its new version stops satisfying a Mac dependency. That's the joint-blocker rule from the train policy.omarchy-release shipreaches stable through promote.yml, so it's enforced there too.shipitself is unchanged.