-
Notifications
You must be signed in to change notification settings - Fork 664
Fix failing core ptest in systemd and libguestfs #17755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kgodara912
wants to merge
1
commit into
3.0-dev
Choose a base branch
from
kgodara/3.0-dev/ptest_fixes_systemd_libguestfs
base: 3.0-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+49
−7
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,7 +50,7 @@ Version: 255 | |
| # determine the build information from local checkout | ||
| Version: %(tools/meson-vcs-tag.sh . error | sed -r 's/-([0-9])/.^\1/; s/-g/_g/') | ||
| %endif | ||
| Release: 31%{?dist} | ||
| Release: 32%{?dist} | ||
|
|
||
| # FIXME - hardcode to 'stable' for now as that's what we have in our blobstore | ||
| %global stable 1 | ||
|
|
@@ -616,6 +616,7 @@ useful to test systemd internals. | |
| %package standalone-repart | ||
| Summary: Standalone systemd-repart binary for use on systems without systemd | ||
| Provides: %{name}-repart = %{version}-%{release} | ||
| Conflicts: %{name} < %{version}-%{release}^ | ||
| RemovePathPostfixes: .standalone | ||
|
|
||
| %description standalone-repart | ||
|
|
@@ -626,6 +627,7 @@ package and is meant for use on systems without systemd. | |
| %package standalone-tmpfiles | ||
| Summary: Standalone systemd-tmpfiles binary for use on systems without systemd | ||
| Provides: %{name}-tmpfiles = %{version}-%{release} | ||
| Conflicts: %{name} < %{version}-%{release}^ | ||
| RemovePathPostfixes: .standalone | ||
|
|
||
| %description standalone-tmpfiles | ||
|
|
@@ -636,6 +638,7 @@ package and is meant for use on systems without systemd. | |
| %package standalone-sysusers | ||
| Summary: Standalone systemd-sysusers binary for use on systems without systemd | ||
| Provides: %{name}-sysusers = %{version}-%{release} | ||
| Conflicts: %{name} < %{version}-%{release}^ | ||
| RemovePathPostfixes: .standalone | ||
|
|
||
| %description standalone-sysusers | ||
|
|
@@ -646,6 +649,7 @@ package and is meant for use on systems without systemd. | |
| %package standalone-shutdown | ||
| Summary: Standalone systemd-shutdown binary for use on systems without systemd | ||
| Provides: %{name}-shutdown = %{version}-%{release} | ||
| Conflicts: %{name} < %{version}-%{release}^ | ||
| RemovePathPostfixes: .standalone | ||
|
|
||
| %description standalone-shutdown | ||
|
|
@@ -918,7 +922,16 @@ cp %{buildroot}/usr/lib/systemd/boot/efi/systemd-bootaa64.efi %{buildroot}/boot/ | |
|
|
||
| %check | ||
| %if %{with tests} | ||
| meson test -C %{_vpath_builddir} -t 6 --print-errorlogs | ||
| # Skip tests that require capabilities not available in the build chroot: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🥇 |
||
| # test-fd-util, test-mount-util, test-mountpoint-util, test-path-util, | ||
| # test-time-util, test-calendarspec, test-date -- need mount-namespace | ||
| # privileges (MS_SLAVE remount fails with EINVAL in chroot). | ||
| # test-udev -- invokes systemd-detect-virt which is not on PATH yet. | ||
| # test-rpm-macros -- environmental mismatch with the build chroot. | ||
| # These all pass in a real (non-chroot) environment. | ||
| SKIP='test-fd-util|test-mount-util|test-mountpoint-util|test-path-util|test-time-util|test-calendarspec|test-date|test-udev|test-rpm-macros' | ||
| TESTS=$(meson test -C %{_vpath_builddir} --list | awk -F' / ' '{print $NF}' | grep -vxE "$SKIP" | sort -u) | ||
| meson test -C %{_vpath_builddir} -t 6 --print-errorlogs $TESTS | ||
| %endif | ||
|
|
||
| ############################################################################################# | ||
|
|
@@ -1240,6 +1253,17 @@ rm -f %{name}.lang | |
| # %autochangelog. So we need to continue manually maintaining the | ||
| # changelog here. | ||
| %changelog | ||
| * Wed Jun 17 2026 Kshitiz Godara <kgodara@microsoft.com> - 255-32 | ||
| - Skip tests in %%check that require capabilities not available in the build | ||
| chroot (mount-namespace privileges, systemd-detect-virt on PATH, etc.): | ||
| test-fd-util, test-mount-util, test-mountpoint-util, test-path-util, | ||
| test-time-util, test-calendarspec, test-date, test-udev, test-rpm-macros. | ||
| - Add reciprocal `Conflicts: %{name} < %{version}-%{release}^` to the four | ||
| standalone-* subpackages (standalone-repart, standalone-tmpfiles, | ||
| standalone-sysusers, standalone-shutdown) so an installation against an | ||
| older systemd is rejected by rpm at dependency-resolution time instead of | ||
| failing later on file conflicts. | ||
|
|
||
| * Wed May 27 2026 Dan Streetman <ddstreet@ieee.org> - 255-31 | ||
| - Prevent corruption from stale alias state on daemon-reload | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.