2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-09-12 04:26:25 +00:00
Commit Graph

29 Commits

Author SHA1 Message Date
Daniel Hilst de98bb24f1 feat(xcat-dep): merge master and carry the Genesis release into the apt publisher
PR #64 landed on master and added --genesis-release to build-apt-repo.sh -- the
very script this branch deletes, having absorbed the apt assembly + signing phase
into sbuild-all.pl. A plain merge would either resurrect the shell publisher or
silently drop the OpenEmbedded Genesis release from every apt suite, so the
feature is ported to where apt publication now lives.

sbuild-all.pl --genesis-release <dir>:

- The release is validated once at startup, before any build or publish, with the
  same checksum-verify-checksum sequence mockbuild-all.pl uses on the rpm side, so
  a release rewritten together with its SHA256SUMS while the verifier runs is
  rejected. It must be complete (every supported architecture) and carry debs.
- During assemble_into, each release deb is copied into the codename's pool and the
  flat per-version directory and re-checked against the verified checksums. That
  happens with the publish lock held, between the pool wipe and apt-ftparchive, so
  the bytes that are indexed and signed are the bytes that were verified -- the
  separate re-verification pass build-apt-repo.sh ran before indexing has no
  window left to cover here.
- Copies are plain copies, never link(): a pool file sharing an inode with the
  release would let a write through either path change what the other holds.
- Anything staged under the OpenEmbedded Genesis package name is dropped when the
  option is given; the verified release is the only source of those packages.
- XCAT::GenesisRelease is loaded on demand rather than imported at compile time. It
  pulls in XCAT::BuildUtils, which needs File::Slurper, and xcat-master-ub does not
  carry it: a compile-time import made every apt build -- including the ones that
  never pass --genesis-release -- die with "Can't locate File/Slurper.pm".

Also here:

- --publish-lock-wait <seconds> makes the 1800s publish-lock wait settable, so a
  caller that would rather fail fast than queue can, and so the lock is testable.
- t/genesis_openembedded_consumer.t: the four APT consumer tests now drive
  sbuild-all.pl's real publish path (staging tree, publish lock, atomic swap)
  instead of build-apt-repo.sh, including the new flock-based lock behaviour.
- The workflow compiles sbuild-all.pl and BuildUtils.pm instead of shellchecking
  the removed script; BUILD.md and genesis-openembedded/README.md document the apt
  invocation.

Full suite green on both build hosts: 345 tests on xcat-master-ub (Ubuntu 24.04,
where the APT and RPM consumer tests actually run) and 341 on xcat-master.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-08-24 15:36:27 -03:00
Vinícius Ferrão 5b226fdad4 docs(genesis): explain the release re-checksum and the verified rpm versions
The two checksum passes around the verifier read as a duplicated walk; say what
the second one is for. Record which rpm versions reproduce the package identity
verify-release requires, so a build host outside that set is a known question
rather than a guess.
2026-08-24 13:57:25 -03:00
Vinícius Ferrão 2fe5f186a1 build(genesis): drop the _buildtime define no rpm 4 honours
%_buildtime is not an rpm macro: built with it alone and no SOURCE_DATE_EPOCH,
rpm 4.14.3, 4.16.1.3 and 4.19.1.1 all stamped the current time. The build time
and build host the release verifier checks come from SOURCE_DATE_EPOCH with
use_source_date_epoch_as_buildtime, and from _buildhost -- both honoured on
every one of those versions and on rpm 6.0.2, where the package also builds
and verifies unchanged.
2026-08-24 13:57:25 -03:00
Vinícius Ferrão e13f2fc207 fix(genesis): support custom RPM build layouts 2026-08-23 00:10:03 -03:00
Vinícius Ferrão 72cba4a4a5 docs(genesis): state the release trust boundary 2026-08-22 23:45:42 -03:00
Vinícius Ferrão d81a4ae248 fix(genesis): harden package publication 2026-08-22 23:44:01 -03:00
Vinícius Ferrão 994ba1f9e8 docs(genesis): list shared Perl modules 2026-08-22 19:36:35 -03:00
Vinícius Ferrão f91f5ff929 fix(genesis): share copied package verification 2026-08-22 19:27:24 -03:00
Vinícius Ferrão 69a00bf43f refactor(genesis): share release build helpers 2026-08-22 19:24:45 -03:00
Vinícius Ferrão 861cec2d8f ci(genesis): test unprivileged package builds 2026-08-22 02:43:01 -03:00
Vinícius Ferrão 17bd87c53c fix(genesis): harden staged release publication 2026-08-22 02:39:38 -03:00
Vinícius Ferrão fd0cffadac docs(genesis): describe staged package rollout 2026-08-22 02:15:04 -03:00
Vinícius Ferrão 6516f29423 fix(genesis): stage OpenEmbedded packages separately 2026-08-22 02:14:17 -03:00
Vinícius Ferrão 2531e9f579 docs(genesis): clarify release publication 2026-08-22 01:34:32 -03:00
Vinícius Ferrão be73af9799 fix(genesis): replace legacy DEB packages 2026-08-22 01:31:36 -03:00
Vinícius Ferrão 6597def239 fix(genesis): harden package install hooks 2026-08-22 01:31:36 -03:00
Vinícius Ferrão 7ac007d545 fix(genesis): accept valid release filenames 2026-08-22 01:31:36 -03:00
Vinícius Ferrão c71b04344e fix(genesis): require reproducible archive tooling 2026-08-22 01:31:36 -03:00
Vinícius Ferrão 779f5f7b21 fix(genesis): pin verified release checksums 2026-08-22 01:25:39 -03:00
Vinícius Ferrão fc11b981ab fix(genesis): require complete repository releases 2026-08-22 01:22:06 -03:00
Vinícius Ferrão d4e0d6c390 fix(genesis): normalize package build modes 2026-08-22 01:20:07 -03:00
Vinícius Ferrão 4d0ee7d5f1 fix(genesis): tolerate inaccessible build cwd 2026-08-22 00:27:12 -03:00
Vinícius Ferrão e3ff2eb1cf fix(genesis): isolate OpenEmbedded tmpdir 2026-08-21 10:44:42 -03:00
Vinícius Ferrão 87c769304a fix(genesis): reject untracked release sources 2026-08-21 09:38:56 -03:00
Vinícius Ferrão 57f0db1ed3 docs(genesis): record package transition gate 2026-08-21 09:35:39 -03:00
Vinícius Ferrão ed1d72bc77 fix(genesis): make file listing scalar-safe 2026-08-21 09:33:14 -03:00
Vinícius Ferrão d0cee4f005 docs(genesis): document release packaging 2026-08-21 09:27:05 -03:00
Vinícius Ferrão 063ffc7724 fix(genesis): verify source package identity 2026-08-21 09:10:51 -03:00
Vinícius Ferrão f909033b10 feat(genesis): package OpenEmbedded exports 2026-08-21 09:07:02 -03:00