2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-27 12:52:16 +00:00
Commit Graph

29028 Commits

Author SHA1 Message Date
Vinícius Ferrão 07f3442380 test(cumulus): isolate the key-generation failure
Use a valid provisioning URL so the missing-master path cannot satisfy the
expected key-generation failure status.
2026-10-21 14:35:09 -03:00
Vinícius Ferrão b6334f7f55 docs(test): update Cumulus discovery test instructions 2026-10-21 14:35:09 -03:00
Vinícius Ferrão cc603ea2c0 test(cumulus): exercise discovery key failure with Bats
Run the complete discovery postscript in the shared shell sandbox. Keep the
key-generation, exit-status and listener side-effect checks. Preserve the
dedicated CI step and its cancellation condition.
2026-10-21 14:18:21 -03:00
Daniel Hilst 4deb10d9ca Merge pull request #7965 from VersatusHPC/docs/shared-profile-maintenance
docs(profiles): explain shared profile maintenance
2026-10-21 14:15:31 -03:00
Daniel Hilst 40292a1019 Merge pull request #7957 from VersatusHPC/fix/genesis-header-redraw
fix(genesis): clear stale identity text from the console header
2026-10-21 13:14:47 -03:00
Daniel Hilst 383f85ea14 Merge pull request #7961 from VersatusHPC/refactor/r26-fips-policy
refactor(fips): share shell policy across runtime artifacts
2026-10-21 13:13:12 -03:00
Vinícius Ferrão 262bf12ae4 docs(test): describe Genesis header redraw coverage 2026-10-21 11:43:54 -03:00
Vinícius Ferrão 82fa33a0eb test(genesis): cover console header identity changes 2026-10-21 11:43:34 -03:00
Vinícius Ferrão dd26b11a01 fix(genesis): clear stale identity text from the console header
A shorter node identity leaves the prefix of the previous text on screen.
Pad the field on each redraw to erase that prefix.

Limit the field to the context buffer before padding. This keeps leading
spaces from truncating the identity on wide terminals.
2026-10-21 11:43:06 -03:00
Vinícius Ferrão 88f8d3f92d docs(fips): remove misleading generation order comment 2026-10-21 11:36:55 -03:00
Vinícius Ferrão 0b42cb5fd4 test(fips): reject malformed artifacts before writes 2026-10-21 11:36:55 -03:00
Vinícius Ferrão 26be5646f9 test(fips): preserve the policy command contract 2026-10-21 11:29:41 -03:00
Vinícius Ferrão 0d95f40775 docs(profiles): explain shared profile maintenance 2026-10-21 11:17:08 -03:00
Daniel Hilst cfa3073da7 refactor(fips): generate the shell policy through a module sub
xCAT-test/unit/fips_policy_sources.t ran build-utils/sync-fips-policy as a
subprocess, so a file in the unit directory measured a program rather than a
routine, and it asserted on the diagnostics the script printed instead of on an
answer. buildrpms.pl and builddebs.pl started the same script with system() to
check the generated libraries before packaging xCAT or xCAT-genesis-scripts.

XCAT::BuildUtils gains fips_policy_artifacts, fips_policy_plan and
sync_fips_policy. fips_policy_plan reads the canonical policy and both runtime
libraries and reports what generation would write, without writing.
sync_fips_policy applies that plan in write mode and returns the stale paths,
the paths it rewrote and the diagnostics for its caller to print. The two
builders now call sync_fips_policy in their own process and print the
diagnostics before they stop, which keeps the output xCAT-test/native/
fips_build_guard.t asserts on. build-utils/sync-fips-policy keeps its
--check and --write contract and its exit status, and is now a thin caller.

The unit test calls the sub in-process and asserts on the returned hash. It
also covers a library holding two policy blocks and a library replaced by a
symbolic link, which the subprocess form did not reach. Ten mutants of the
module, one per guard, each fail the assertion that names that guard.

xCAT-test/bats/fips_policy_artifacts.bats copies XCAT::BuildUtils into its
fixture, because the script it runs now loads the module.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-21 10:42:37 -03:00
Daniel Hilst b74a0f27aa Merge upstream/master into refactor/r26-fips-policy
Two files needed a resolution. Both are unions of independent additions.

XCAT::Test::Lifecycle::build_deb takes master's new $source argument and its
-xpf extraction, and keeps the control-$arch selection this branch adds for
xCAT-genesis-scripts. $source defaults to the repository root, so the branch
behaviour does not change.

.github/workflows/xcat_test.yml keeps master's profile_package_payload.t on
both lifecycle prove lines and master's Perl module list, and keeps this
branch's FIPS steps, bzip2 and openssl.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-21 10:32:47 -03:00
Daniel Hilst ee6b4f5328 Merge pull request #7964 from VersatusHPC/fix/ci-run-bats-after-perl-failure
fix(ci): run Bats after Perl unit failures
2026-10-21 09:33:40 -03:00
Vinícius Ferrão e87e226412 Merge pull request #7963 from KevinSpek/fix-dead-links
docs: replace the dead GitGuys reference for remote branches
2026-10-21 09:22:52 -03:00
Daniel Hilst 47168d7adf Merge pull request #7934 from VersatusHPC/refactor/r26-provisioning-reuse
refactor(provisioning): share package defaults and identical profiles
2026-10-21 08:21:57 -03:00
Daniel Hilst c0724ea08c Merge pull request #7959 from VersatusHPC/test/r26-oe-behavior-gaps
test(genesis): cover console interaction and NetworkManager policy
2026-10-21 07:59:14 -03:00
Vinícius Ferrão 9653713bdd test(ci): cover Perl and Bats failure combinations
Exercise the full driver with either or both unit suites failing. Check
execution order, both result messages, and the final exit status.

Allow multiple command failures in the fixture. Encode logged commands as
JSON arrays for compatibility with older JSON::PP versions.
2026-10-20 16:20:29 -03:00
Vinícius Ferrão a1b2ac7a80 fix(ci): run Bats after Perl unit failures
Run both unit suites before stopping the CI driver. Preserve the failure
of either suite and leave later phases blocked when either suite fails.
2026-10-20 16:14:13 -03:00
Vinícius Ferrão 32a98d6d99 docs(test): describe Genesis policy and terminal coverage 2026-10-20 13:09:32 -03:00
Vinícius Ferrão 8dab5e4989 test(genesis): exercise maintenance shell confirmation and return 2026-10-20 13:09:32 -03:00
Vinícius Ferrão 385f641e03 test(genesis): exercise journal follow and navigation 2026-10-20 13:09:32 -03:00
Vinícius Ferrão 2281b14a13 test(genesis): exercise live console status and diagnostics 2026-10-20 13:09:31 -03:00
Kevin 3926cafcff docs: replace the dead GitGuys reference for remote branches 2026-10-20 18:42:34 +03:00
Vinícius Ferrão 516e915bcc test(genesis): exercise the NetworkManager wait-online policy 2026-10-20 12:03:51 -03:00
Vinícius Ferrão 214cbd4c9a test(profiles): accept owner-only executable source assets
A restrictive checkout umask can remove group and other execute bits.
Require the owner execute bit on source postinstall files and reject all
execute bits on data files. Native package tests still require exact modes.
2026-10-19 19:47:59 -03:00
Vinícius Ferrão fa233e6d36 test(packaging): cover Debian profile permissions from writable sources
Preserve source modes when staging Debian package builds and accept a
private source fixture. Build group-writable profiles under umasks 0022
and 0002, then check the extracted data, postscripts and directories.

Verify that staging and packaging leave source permissions unchanged,
including a world-writable data file. Reuse the payload checks for normal,
reduced and permission-regression builds.
2026-10-19 19:33:33 -03:00
Vinícius Ferrão 0ad1448564 fix(packaging): remove write access from Debian profile payloads
Group-writable sources leave install and netboot assets writable by other users in the Debian package. Remove group and other write permission from those two staged trees. Preserve executable bits and leave source files and the rest of the payload unchanged.
2026-10-19 19:31:25 -03:00
Vinícius Ferrão fa29763b71 test(profiles): allow group-writable source checkouts
Check executable bits when selecting source profiles. Exact package modes remain covered by the native payload test.
2026-10-19 19:29:44 -03:00
Vinícius Ferrão 91e19b16b1 test(profiles): check packaged modes independently of checkout
RPM preparation removes group write permission from source files. Assert the packaged data and postinstall modes instead of comparing them with checkout permissions. Report modes in octal and keep the content, alias and customization checks.
2026-10-19 19:29:26 -03:00
Vinícius Ferrão 748493b9ea test(fips): validate public key exporter arguments 2026-10-19 17:41:15 -03:00
Vinícius Ferrão 3d7212c3d1 test(fips): guard Bats fixtures and expose failure output 2026-10-19 17:35:12 -03:00
Vinícius Ferrão aebdbb804b test(fips): separate generated policy shell execution 2026-10-19 17:23:02 -03:00
Vinícius Ferrão 9eec586e7b test(fips): move public key fallback cases to Bats 2026-10-19 17:21:12 -03:00
Daniel Hilst 306723152f Merge pull request #7958 from VersatusHPC/fix/genesis-journal-selection
fix(genesis): retain the selected journal entry across history rollover
2026-10-19 16:14:11 -03:00
Vinícius Ferrão 7f3a0acf8e test(profiles): retain Rocky assets in the reduced RPM 2026-10-19 12:17:03 -03:00
Vinícius Ferrão 16ebc98702 test(ubuntu): cover package-list aliases across releases and architectures 2026-10-19 12:17:03 -03:00
Vinícius Ferrão 0d1e044ea9 refactor(ubuntu): share identical release and architecture package lists 2026-10-19 12:17:03 -03:00
Vinícius Ferrão 4a894610a5 test(profiles): exercise packaged assets and custom profile precedence 2026-10-19 12:17:03 -03:00
Vinícius Ferrão adaff490cf refactor(profiles): share identical EL10 RISC-V assets
Use relative aliases for identical shipped profiles. Keep their public names,
resolved contents and executable modes. Custom copies remain independent.
2026-10-19 11:48:36 -03:00
Vinícius Ferrão a13ecfe9c6 test(ubuntu): cover shared mirror defaults through provisioning callers 2026-10-19 11:30:49 -03:00
Vinícius Ferrão 2a5b55da47 refactor(ubuntu): share architecture-specific APT mirror defaults 2026-10-19 11:30:48 -03:00
Vinícius Ferrão 6931621d65 test(pkglist): cover shared line filtering through both readers
Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-10-19 11:30:48 -03:00
Vinícius Ferrão db6cec2b80 refactor(pkglist): share package-list line filtering
Share line normalization and directive filtering across the legacy text
reader, its include reader and the record reader. Keep leading whitespace
in legacy includes and leave each parser expansion policy unchanged.

Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-10-19 11:30:48 -03:00
Vinícius Ferrão f9024b9fd2 docs(test): describe journal selection rollover coverage 2026-10-18 19:28:55 -03:00
Vinícius Ferrão 53a2b75d49 test(genesis): cover paused journal selection during rollover 2026-10-18 19:28:55 -03:00
Vinícius Ferrão 5d125637ee fix(genesis): retain the selected journal entry across history rollover
A paused journal view restores a row number after refreshing its history.
When older records leave the window, that row selects a different entry.

Match the selected entry by its journal cursor and retain its wrapped-line
position. If the entry has left the window, select the oldest retained row
without resuming follow mode.
2026-10-18 19:06:39 -03:00
Vinícius Ferrão e07f488643 test(fips): verify generated artifact modes are preserved 2026-10-18 13:46:52 -03:00