2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-12-03 23:57:03 +00:00
Daniel Hilst 0c00117052 fix(xcat-dep): a Genesis release cannot be published to a repository with three suites
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>
2026-10-26 10:24:26 -03:00
2013-05-29 14:58:44 +00:00
2008-10-13 15:50:23 +00:00
2011-11-08 18:33:23 +00:00
2009-07-08 18:55:52 +00:00
2020-01-06 16:34:55 -05:00
2018-11-29 05:44:55 -05:00
2018-11-29 05:44:55 -05:00
2008-04-10 19:42:20 +00:00
2011-09-21 19:13:13 +00:00
2018-11-29 05:44:55 -05:00
2018-11-29 05:44:55 -05:00
2018-11-29 05:44:55 -05:00
2022-09-26 16:20:45 +02:00
2018-11-29 05:44:55 -05:00
2018-11-29 05:44:55 -05:00
2009-04-24 20:17:23 +00:00
2016-12-12 13:44:39 -05:00
S
Description
No description provided
245 MiB
Languages
Perl 79.3%
JavaScript 6.3%
C 3.9%
Shell 3.1%
SQLPL 2%
Other 5.2%