Bug 2231397 - If manual_byte_compilation* tests fail, rpmlint_clamp_mtime* tests pass even though they shouldn't
Summary: If manual_byte_compilation* tests fail, rpmlint_clamp_mtime* tests pass even ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-rpm-macros
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Python Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-11 13:38 UTC by Karolina Surma
Modified: 2023-08-16 08:14 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-08-11 13:38:41 UTC
In https://src.fedoraproject.org/rpms/python-rpm-macros/blob/rawhide/f/tests/tests.yml

When the tests 
- manual_byte_compilation_clamp_mtime_off
- manual_byte_compilation_clamp_mtime_on
fail to produce RPMs and so are reported as failures,
I expect these tests which rely on the produced RPMs to fail as well:
- rpmlint_clamp_mtime_off
- rpmlint_clamp_mtime_on

Instead, the tests are reported by the CI as PASSes.
The test log says:
`(none): E: no installed packages by name /root/rpmbuild/RPMS/x86_64/pythontest-0-0.clamp0.x86_64.rpm` and `clamp1.` respectively

This was uncovered during test backport to CentOS 8 Stream: https://gitlab.com/redhat/centos-stream/rpms/python3.11/-/merge_requests/12
Whole test run results: https://artifacts.dev.testing-farm.io/621a4bc8-7803-4968-a451-cf520dab900a/work-tests.ymlc4u8w3sf/tests-cqwrwog8/
I suspect the behavior would be the same in Fedora's CI.


Reproducible: Always

Comment 1 Fedora Release Engineering 2023-08-16 08:14:15 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.


Note You need to log in before you can comment on or make changes to this bug.