mirror of
https://github.com/xcat2/xcat-dep.git
synced 2026-09-12 12:36:23 +00:00
411da1539eb890ae896cfbf1f1db58a7440674ad
The xCAT-genesis-base build runs buildrpms.pl without a per-run --mock-uniqueext, so its mock chroot (xCAT-genesis-base-<target>) is shared across CD runs. mock only scrubs a chroot on a SUCCESSFUL build, so a killed or failFast-interrupted prior run leaves the chroot stunted (missing /bin/sh), and mock REUSES that corpse on the next run, which then dies with FileNotFoundError: '/bin/sh' during genesis -- failing an otherwise-healthy build until an operator manually scrubs the chroot. Scrub the genesis chroot before building it: a lock-safe, best-effort 'mock --scrub=chroot --scrub=bootstrap' (skipped if a concurrent build holds the lock, a no-op on the first run before the config exists). Any corpse from an interrupted run is dropped and mock recreates the chroot fresh from the cached root, so an interrupted build can no longer poison the next one. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
fix(mockbuild-all): address PR #62 review (build-number, finalize, run-state, skip-build, goconserver, docs)
Description
No description provided
Languages
C
89%
Perl
6.7%
Assembly
1.4%
JavaScript
0.8%
Makefile
0.6%
Other
1.4%