action #32614
closed[opensuse][functional][u][systemd] systemd_testsuite fails, as it does not cope with the split of systemd-container
0%
Description
Observation¶
systemd has split out the various container parts into systemd=container, which is an optional, by default not-installed package.
The test suite started by openQA though expects it to be present.
Seems like we should ensure to have it installed before running the test suite.
- openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-suse_patches-systemd_testsuite@64bit fails in systemd_testsuite
Reproducible¶
- Fails since (at least) Build 20180228
Acceptance criteria¶
- AC: The test module systemd_testsuite passes or fail on a proper product bug.
Tasks¶
- Adapt the testsuite to require/install the systemd-container component DONE
- or fix the test module systemd_testsuite to install the package systemd-container for tumbleweed, Leap15 and SLE15. Canceled
- Handle the different urls for openSUSE Tumbleweed y openSUSE Leap
- Create a link of https://build.opensuse.org/package/show/devel:openSUSE:QA:Leap:15/systemd-v234-testsuite into https://build.suse.de/project/show/QA:SLE15
Further details¶
About using a proper project/repository to use, there is a discussion here: https://progress.opensuse.org/issues/32215
Updated by dimstar almost 7 years ago
An alternative solution, instead of adjusting the openQA test code, would be for the -testsuite package to require systemd-container; this might be even cleaner (but since nothing of that is in the product, I can't call this a product bug, thus stays here).
Please coordinate with Thomas Blume about the solution, and about the project on OBS where those test suites shall live. Currently they are in a home: space
Updated by SLindoMansilla almost 7 years ago
- Description updated (diff)
- Status changed from New to Workable
Updated by SLindoMansilla almost 7 years ago
- Subject changed from systemd_testsuite fails, as it does not cope with the split of systemd-container to [opensuse][functional][systemd] systemd_testsuite fails, as it does not cope with the split of systemd-container
Updated by dimstar almost 7 years ago
Sergio,
We now have a project called devel:openSUSE:QA - where we can collect such things together. I can assign you maintainer rights on this prj if you want (imho, this should be owned by QA)
Updated by SLindoMansilla almost 7 years ago
tblume fixes the systemd-testsuite to install the systemd-container package: https://build.opensuse.org/package/rdiff/home:tsaupe:testsuites/systemd-v234-testsuite?linkrev=base&rev=11
Updated by SLindoMansilla almost 7 years ago
PR with workaround: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/4591
Updated by SLindoMansilla almost 7 years ago
Test suite for v234 on openSUSE Leap 15 ready in https://build.opensuse.org/package/show/devel:openSUSE:QA/systemd-v234-testsuite
Updated by SLindoMansilla almost 7 years ago
Test suite for v228 on openSUSE Leap 42.3 ready in: https://build.opensuse.org/package/show/devel:openSUSE:QA/systemd-v228-testsuite
Updated by okurz almost 7 years ago
- Due date set to 2018-04-10
- Target version set to Milestone 15
Updated by okurz almost 7 years ago
- Subject changed from [opensuse][functional][systemd] systemd_testsuite fails, as it does not cope with the split of systemd-container to [opensuse][functional][u][systemd] systemd_testsuite fails, as it does not cope with the split of systemd-container
Updated by okurz over 6 years ago
This is an autogenerated message for openQA integration by the openqa_review script:
This bug is still referenced in a failing openQA test: suse_patches-systemd_testsuite
https://openqa.opensuse.org/tests/644096
Updated by SLindoMansilla over 6 years ago
- Description updated (diff)
The split of the systemd-nspawn module was also done for SLE 15: https://build.suse.de/package/view_file/SUSE:SLE-15:GA/systemd/systemd.spec?expand=1
Updated by SLindoMansilla over 6 years ago
- Description updated (diff)
Updated by SLindoMansilla over 6 years ago
- Status changed from Workable to In Progress
SR:
- v234 (Leap 15) https://build.opensuse.org/request/show/593830 (accepted)
- v234 (SLE 15) https://build.suse.de/request/show/161106 (accepted)
Updated by SLindoMansilla over 6 years ago
PR to improve test results: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/4795
Updated by SLindoMansilla over 6 years ago
Pending tasks:
- Fix broken test suite package for Tumbleweed:
- Fix missing dependency systemd-container
- For some reason the dependency is ignored, causing the test to fail trying to execute nspawn.
Updated by SLindoMansilla over 6 years ago
SR: https://build.opensuse.org/request/show/595166
Settings for test suite suse_patches-systemd_testsuite on https://openqa.opensuse.org changed to QA_HEAD_REPO=https://download.opensuse.org/repositories/devel:/openSUSE:/QA:/%VERSION%/openSUSE_%VERSION%
Updated by okurz over 6 years ago
- Due date changed from 2018-04-10 to 2018-04-24
Updated by okurz over 6 years ago
SLindoMansilla wrote:
- Fix missing dependency systemd-container
- For some reason the dependency is ignored, causing the test to fail trying to execute nspawn.
Found your flaw. You added the "Require" to the base package, that is systemd itself. systemd-v234-testsuite is a subpackage so you have to put the Require there. Patch:
$ osc diff
Index: systemd-v234-testsuite.spec
===================================================================
--- systemd-v234-testsuite.spec (revision 45efb95fc34b593ec7ed380437a085bd)
+++ systemd-v234-testsuite.spec (working copy)
@@ -120,7 +120,6 @@
Requires: udev = %{version}-%{release}
Requires: util-linux >= 2.27.1
Requires: group(lock)
-Requires: systemd-container
Recommends: %{name}-bash-completion
Requires(post): coreutils
Requires(post): findutils
@@ -419,6 +418,7 @@
Summary: Test suite for QA
License: LGPL-2.1+
Group: System/Benchmark
+Requires: systemd-container
%description v%{version}-testsuite
This provides the system testsuite scripts and binaries for QA
-> https://build.suse.de/request/show/161525
I will leave the synchronisation with openSUSE to you but I strongly suggest to come up with an automatic approach. Also I think it's a good idea to disable the build on all unsupported repositories.
Updated by SLindoMansilla over 6 years ago
I applied your patch. Now I have a versioning problem due to the _service file. Fixing it.
Updated by SLindoMansilla over 6 years ago
The hash of the build was included in the namespace of the package, so instead of systemd-v238-testsuite, it was systemd-v238.suse.20180328.g14b3e00c3-3.1.x86_64.rpm.
I had problems trying to remove the hash, set on _service, so I decided to make the package name version independent: https://build.opensuse.org/request/show/595918
Updated by SLindoMansilla over 6 years ago
PR to adapt the test: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/4839
Merged. Verified on O3: https://openqa.opensuse.org/tests/655873
Updated by SLindoMansilla over 6 years ago
- Related to coordination #34996: [qe-core][functional][opensuse][epic] test fails in systemd_testsuite - TEST-16-EXTEND-TIMEOUT works only when executed against systemd built in the same specfile added
Updated by SLindoMansilla over 6 years ago
SR: https://build.opensuse.org/request/show/596839
Accepted.
Updated by SLindoMansilla over 6 years ago
PR for systemd: https://github.com/openSUSE/systemd/pull/12
The fix was there but not merged for SLE15: https://github.com/openSUSE/systemd/commit/04ef8e53582b7dc29fb1c6981a0243ec32b17c9e
Updated by SLindoMansilla over 6 years ago
- Related to action #35035: [functional][opensuse][u][fast] test fails in systemd_testsuite - syntax error reported by rule-checker added
Updated by SLindoMansilla over 6 years ago
Fix for systemd-container on Leap15 verified on O3: https://openqa.opensuse.org/tests/657011#step/systemd_testsuite/20
Updated by SLindoMansilla over 6 years ago
- Related to action #35080: [qe-core][functional][qem] Enable the test suite for systemd on SLE15-SP4 added
Updated by SLindoMansilla over 6 years ago
PR for Leap15: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/4866
Merged.
Verified:
- O3, Leap15: https://openqa.opensuse.org/tests/658284
- OSD, SLE15:
- aarch64: https://openqa.suse.de/tests/1627349 (fail bacause of https://progress.opensuse.org/issues/35143)
- ppc64le: https://openqa.suse.de/tests/1627350 (fail bacause of https://progress.opensuse.org/issues/35143)
- s390x: https://openqa.suse.de/tests/1627343 (fail because of https://progress.opensuse.org/issues/35143)
- x86_64: https://openqa.suse.de/tests/1627342
Updated by SLindoMansilla over 6 years ago
- Status changed from In Progress to Resolved
Updated by oorlov over 6 years ago
- Related to action #35143: [functional][sle][u][bsc#1090454] test fails in systemd_testsuite - The test suite tries to install missing x86 on aarch64, ppc64le and s390x added
Updated by lnussel over 6 years ago
any update in this? it keeps failing in leap 15
Updated by SLindoMansilla over 6 years ago
Yes, this problem is solved. Now, it was failing because a bug on the syntax rule checker.
I have tried to updated the package on OBS, but it fails building, I am working to fix it on: https://progress.opensuse.org/issues/35035#note-7