mirror of
https://github.com/xcat2/xcat-dep.git
synced 2026-12-01 23:02:16 +00:00
09f559d0d1ab8d4cac72bbbca96166b7116376c0
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>
Description
No description provided
Languages
Perl
79.3%
JavaScript
6.3%
C
3.9%
Shell
3.1%
SQLPL
2%
Other
5.2%