mirror of
https://github.com/xcat2/xcat-dep.git
synced 2026-12-03 23:57:03 +00:00
0c001170520e633133b4a08fbc97fc88416bcd2b
sbuild-all.pl refuses --genesis-release unless --dists covers every codename
known_codenames() names:
FATAL: --genesis-release updates the shared Genesis pool every suite indexes, so it must
cover all of them; --dists omits: focal
The reason behind the guard is sound. A release lands once in
pool/main/xcat-genesis-openembedded and every suite's Packages indexes that one copy, so a
suite this run does not rebuild keeps indexing files the release retired.
But it compares against the wrong set. known_codenames() is the codenames this build system
can build -- focal, jammy, noble and resolute -- not the suites a given repository contains,
and those differ by design. An apt tree assembled from a manifest with no 20.04 cell carries
jammy, noble and resolute, and focal has no dists/focal at all. Demanding focal there
protects nothing, because a suite that does not exist cannot be left indexing anything, and
it refuses the publication outright: the Genesis payload could not be published to that tree
at any --dists. A CI dep build verified a release and then died on this, and a dead publish
stage blocks every test that installs from the repository.
BuildUtils::stranded_suites reads the suites from the tree's own dists/ and returns the ones
this run does not rebuild. The property the guard exists for is unchanged: a tree that
carries focal and omits it from --dists still refuses, and still names it.
Evidence, since this replaces a rule rather than adding one: restoring the comparison against
known_codenames() fails 5 of the 8 new assertions in t/sbuild-all.t, returning an empty list
fails 3, and counting a plain file under dists/ as a suite fails 1. The whole xcat-dep suite
passes: 32 files, 1431 tests.
t/genesis_openembedded_consumer.t gains the end-to-end pair: a tree carrying three of the four
known suites publishes the release for those three and creates no fourth suite, and the same
tree still refuses a release published for one suite, naming the two it would strand and not
naming the one it never carried.
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
Description
No description provided
Languages
Perl
79.3%
JavaScript
6.3%
C
3.9%
Shell
3.1%
SQLPL
2%
Other
5.2%