2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-12-01 23:02:16 +00:00
Daniel Hilst 09f559d0d1 test(xcat-dep): a suite added while a publisher queues is left indexing a retired release
sbuild-all.pl resolves --genesis-release, and reads the suites the apt tree carries, before it
takes the publish lock. Nothing holds the tree still in between.

A --dists noble run against a tree that carries only noble passes that reading, queues behind
another publisher, and reaches the pool after that publisher has published jammy. publish_repo
seeds its side tree from the published tree, so jammy's index is copied in verbatim, while
install_genesis_release_debs wipes and refills the shared pool every suite indexes. jammy is then
left naming a DEB the new release retired. The completeness gate does not catch it: it checks the
suites in --dists.

test_publish_race_adds_suite drives that sequence. It holds the publish lock, so the run queues;
it waits for the RUN locks, which the run takes after --genesis-release is resolved, so the
pre-lock reading has provably happened and saw no jammy; only then does jammy appear in the tree.
It asserts the run reaches the lock, refuses, names jammy, leaves the DEB that jammy's index names
in the pool, and publishes nothing. A positive control runs the same hold-queue-release sequence
with no suite arriving and must publish, so the refusal cannot come from the lock handoff.

spawn_apt_consumer, reap_spawned and wait_for_path start a run without waiting for it.
apt_consumer_command is the command run_apt_consumer already built, moved out so both callers
share it.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-26 21:07:42 -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%