2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-10-21 07:08:12 +00:00
Commit Graph

28901 Commits

Author SHA1 Message Date
Vinícius Ferrão c2d64d4e58 docs(test): describe profile artifact test prerequisites
List the native cases selected by CI, their dependencies and their isolation requirements. Distinguish rendered-artifact execution from operating-system and firmware boot qualification.
2026-10-16 18:33:42 -03:00
Vinícius Ferrão 1d362211e7 test(ubuntu): execute rendered Subiquity command sequences
Render Subiquity configuration with real database rows and execute the emitted commands in private namespaces. Check resulting files, failure ordering and the install-monitor handshake without rewriting shell fragments.
2026-10-16 18:33:42 -03:00
Vinícius Ferrão fdf18e24c3 test(packaging): run the generated Debian repository helper
Build a real package and repository, then execute the generated helper with representative host architectures and releases. Check its apt configuration and preserve unrelated sources.
2026-10-16 18:33:41 -03:00
Vinícius Ferrão 4c47d8b3ec test(netboot): execute selected RISC-V postinstall scripts
Run each selected postinstall script in an isolated filesystem. Check SELinux settings and fstab after repeated execution instead of comparing shell source.
2026-10-16 18:33:41 -03:00
Vinícius Ferrão 7af7b97a78 test(provisioning): execute rendered RISC-V install checks
Render the selected profiles with an isolated database. Check the installer data and run the emitted post-install blocks against a private filesystem, including the EFI fallback and missing-loader paths.

Run the native case from the source snapshot preserved before CI package builds.
2026-10-16 18:33:41 -03:00
Daniel Hilst d5da7b0b5c Merge pull request #7937 from VersatusHPC/refactor/r26-bmc-reuse
refactor(genesis): share BMC field readers
2026-10-16 18:19:18 -03:00
Daniel Hilst cf170b36c4 Merge pull request #7942 from VersatusHPC/feat/rootimg-sha256
feat(netboot): check the root image against its SHA-256 checksum
2026-10-16 18:18:10 -03:00
Daniel Hilst fb9541ffde Merge pull request #7949 from VersatusHPC/fix/table-commands
fix(table): refuse extra tabrestore fields and unknown chtab -d tables
2026-10-16 18:17:31 -03:00
Daniel Hilst b17d37380a Merge pull request #7912 from VersatusHPC/fix/kvm-aarch64-guest-arch
fix(kvm): mkvm builds an aarch64 node as an x86_64 domain
2026-10-16 11:03:20 -03:00
Daniel Hilst d8c38ec6d2 Merge pull request #7906 from VersatusHPC/fix/openeuler-core-mock-resultdir-owner
fix(xcat-core): the openEuler ppc64le core build runs rpmbuild as root
2026-10-15 18:15:42 -03:00
Vinícius Ferrão e9dcd9f631 docs(test): describe BMC sandbox coverage 2026-10-15 15:09:51 -03:00
Vinícius Ferrão b784c95e06 test(genesis): cover BMC configuration field behavior 2026-10-15 15:09:10 -03:00
Vinícius Ferrão f7621a6cae refactor(genesis): share BMC configuration field reads 2026-10-15 15:09:10 -03:00
Vinícius Ferrão dcf68e8afb test(genesis): cover BMC LAN query and retry behavior 2026-10-15 15:09:10 -03:00
Vinícius Ferrão e70cd9a961 refactor(genesis): share BMC LAN field queries 2026-10-15 15:09:09 -03:00
Daniel Hilst 39c12e119b fix(xcat-core): give the release repository test a stand-in for mock's loader
buildall now calls prepare_mock_resultdirs before the cache checks, so a
cached build also loads the mock configuration through mockbuild.config.
release_repository.t builds xCAT-release in a user namespace on a host
without mock, and the build stopped with "mock is not installed: cannot
import mockbuild.config".

The namespace fixture already stands in for /etc/mock. It now also puts a
stand-in mockbuild package on PYTHONPATH. Its load_config fails when the
chroot configuration is missing, and reports the caller as chrootuid, as
mock does when no chrootuid is set. buildrpms.pl is unchanged.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-15 14:42:47 -03:00
Daniel Hilst 7c011fc9e5 Merge pull request #7916 from VersatusHPC/fix/probe-debian-directory-permissions
fix(probe): preserve Debian library directory permissions
2026-10-15 13:53:54 -03:00
Daniel Hilst c9e36a9c49 Merge pull request #7914 from VersatusHPC/refactor/r26-boot-artifacts
refactor(boot): reuse Genesis and HTTP helpers
2026-10-15 13:51:40 -03:00
Daniel Hilst 5c6347d930 Merge master into fix/openeuler-core-mock-resultdir-owner
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-15 13:42:27 -03:00
Vinícius Ferrão ea9d474303 docs(test): describe boot artifact sandbox requirements 2026-10-14 13:30:01 -03:00
Vinícius Ferrão e426804450 test(mknb): separate selector and compression checks 2026-10-14 13:30:01 -03:00
Vinícius Ferrão 3856dbeee8 refactor(boot): remove the private Genesis selector name 2026-10-14 13:30:00 -03:00
Vinícius Ferrão 8787b8484d test(boot): use the public Genesis file selector 2026-10-14 13:30:00 -03:00
Vinícius Ferrão 3b50ed9036 refactor(boot): expose the Genesis file selector 2026-10-14 13:30:00 -03:00
Vinícius Ferrão 90d0cf2779 test(mknb): exercise Genesis publication and rollback failures 2026-10-14 13:30:00 -03:00
Vinícius Ferrão a4066f75e3 refactor(mknb): stage Genesis artifacts with File::Temp 2026-10-14 13:29:22 -03:00
Vinícius Ferrão 68568ae3bc test(mknb): detect staging leftovers without fixed random names 2026-10-14 13:29:22 -03:00
Vinícius Ferrão 93b87ba063 test(http): characterize port defaults at boot URL callers 2026-10-14 13:29:22 -03:00
Vinícius Ferrão 937f6895f0 refactor(http): share port suffix formatting across boot callers 2026-10-14 13:29:22 -03:00
Vinícius Ferrão a6bf1a8695 test(boot): load source-tree dependencies in plugin fixtures 2026-10-14 13:29:22 -03:00
Vinícius Ferrão 9d3b78ca08 test(boot): cover Genesis selection across installer consumers 2026-10-14 13:29:22 -03:00
Vinícius Ferrão 6713d01af3 refactor(boot): share Genesis artifact selection 2026-10-14 13:29:22 -03:00
Vinícius Ferrão eb76a33652 test(genesis): load production architecture and repository owners 2026-10-14 13:29:21 -03:00
Vinícius Ferrão 35d01515eb test(mknb): exercise compression and archive publication 2026-10-14 13:29:21 -03:00
Vinícius Ferrão d59a683570 docs(test): describe the liteimg archive test 2026-10-14 13:14:50 -03:00
Vinícius Ferrão 0cca31bd2b test(statelite): run the liteimg archive test with the native tests
The liteimg archive test runs real cpio and gzip, and puts compressor
and ctorrent fixtures in PATH. That is a native test, so it moves out
of the unit suite. The pull-request workflow runs it explicitly.

A missing Linux tool now fails the test instead of skipping it. An
ilitefile fixture replaces the runcmd override, so liteimg runs its
commands through the real runcmd.
2026-10-14 13:14:50 -03:00
Vinícius Ferrão 67ada58599 test(tableutils): cover the delete of rows from several tables
delete_rows must delete the rows of the keys from every table that
opens. When a named table does not open, first, last or between two
tables, it must return that table and delete no row.
2026-10-14 13:14:42 -03:00
Vinícius Ferrão 06a3f486c7 fix(chtab): report a table that chtab -d cannot open
chtab -d called delEntries on each table that it named without a check
that the table opened. A table name that xCAT does not know made chtab
die after it had deleted the rows of the tables named before it. The
error was "Can't call method delEntries on an undefined value".

The delete moves to xCAT::TableUtils->delete_rows, which opens every
named table first. When a table does not open, it deletes no row and
returns the table name. chtab -d reports that table with the error of
the update form.
2026-10-14 13:14:42 -03:00
Vinícius Ferrão 1d7374c0e4 test(tabutils): cover the field count of a tabrestore row
tabrestore must restore a row with one field for each column, fewer
fields, or a quoted field that holds a comma. It must refuse a row with
an empty, 0 or text field after the last column, and roll back the
restore.
2026-10-14 13:14:41 -03:00
Vinícius Ferrão b7adfccad3 docs(test): describe the Debian probe permission check 2026-10-14 12:56:24 -03:00
Vinícius Ferrão 957c52fe53 test(probe): exercise Debian package permissions 2026-10-14 12:38:00 -03:00
Vinícius Ferrão be8ce8b975 fix(probe): preserve Debian library directory permissions
The Debian package set the xCAT helper directory to 0644, preventing
unprivileged users from loading the probe modules.

Set library directories to 0755 and regular files to 0644. Repair the old
helper-directory mode during configuration because dpkg preserves existing
modes. Leave administrator overrides, other modes, and symlinks unchanged.
2026-10-14 12:37:33 -03:00
Vinícius Ferrão 952787108e test(xnba): exercise generated boot scripts through nodeset 2026-10-14 12:37:32 -03:00
Daniel Hilst ba4824ef62 Merge pull request #7940 from VersatusHPC/fix/imgexport-destination
fix(imgport): write the imgexport bundle to its destination
2026-10-14 12:05:47 -03:00
Daniel Hilst bdd2a51efc Merge pull request #7945 from VersatusHPC/fix/imgimport-litefile-lookup
fix(imgport): quote the image column of the litefile lookup
2026-10-14 12:04:38 -03:00
Daniel Hilst 19d4b661af Merge pull request #7939 from middelkoopt/tm-configib-autoconnect
fix(postscripts/configib): turn autoconnect on when reusing a connection
2026-10-14 11:55:24 -03:00
Daniel Hilst c8a20a1ea2 Merge pull request #7950 from VersatusHPC/fix/kit-rhel-release
fix(kit): compare the RHEL release as a number
2026-10-14 11:53:59 -03:00
Daniel Hilst 25a3c8e55d Merge pull request #7947 from VersatusHPC/fix/table-setattribswhere-cache
fix(table): refresh the cache after a conditional update or rollback
2026-10-14 11:53:16 -03:00
Daniel Hilst 675c9f3dfd Merge pull request #7946 from VersatusHPC/fix/kit-lock
fix(kit): refuse a kit command while another process holds the kit lock
2026-10-14 11:51:23 -03:00
Daniel Hilst 5c0944854f Merge pull request #7944 from VersatusHPC/fix/imgimport-extra-destination
fix(imgport): copy an extra file into its destination directory
2026-10-14 11:49:02 -03:00