RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2051083 - failed selftest is not blocking the build
Summary: failed selftest is not blocking the build
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: stunnel
Version: 9.0
Hardware: All
OS: Linux
medium
unspecified
Target Milestone: rc
: ---
Assignee: Clemens Lang
QA Contact: Ondrej Moriš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-06 09:50 UTC by Ondrej Moriš
Modified: 2022-05-17 16:36 UTC (History)
0 users

Fixed In Version: stunnel-5.62-2.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 16:02:11 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CRYPTO-6137 0 None None None 2022-02-07 11:23:20 UTC
Red Hat Issue Tracker RHELPLAN-111239 0 None None None 2022-02-06 09:51:10 UTC
Red Hat Product Errata RHBA-2022:4036 0 None None None 2022-05-17 16:02:13 UTC

Description Ondrej Moriš 2022-02-06 09:50:01 UTC
Description of problem:

During the build process of stunnel, selftest is executed ('make check') but its result seems to be ignored. Hence build continues even if selftest failed.

Version-Release number of selected component (if applicable):

stunnel-5.62-1.el9

How reproducible:

100%

Steps to Reproduce:

1. Compile the source rpm (rpmbuild -vv -bc).
2. Make selftest fail somehow.
3. Execute the failing self test.

Actual results:

Summary:
   success: 47
   fail: 3
   skipped: 0
File /builddir/build/BUILD/stunnel-5.62/tests/logs/results.log done
Processing files: stunnel-5.62-1.el9.x86_64

Expected results:

Build is aborted.

Additional info:

N/A

Comment 1 Clemens Lang 2022-02-07 10:03:19 UTC
The issue is

  %check
  make test || (for i in tests/logs/*.log ; do echo "$i": ; cat "$i" ; done)

which will hide the non-zero exit code of make. I'll fit it.

Comment 4 Clemens Lang 2022-02-07 14:23:47 UTC
I manually verified that an error in make test now fails the build by applying this patch:

diff --git a/stunnel.spec b/stunnel.spec
index b2a3fd4..ab6a425 100644
--- a/stunnel.spec
+++ b/stunnel.spec
@@ -100,7 +100,7 @@ cp %{SOURCE7} %{buildroot}%{_unitdir}/%{name}@.service
 %endif

 %check
-if ! make test; then
+if ! ( make test && false ); then
        for i in tests/logs/*.log; do
                echo "$i":
                cat "$i"

Comment 9 errata-xmlrpc 2022-05-17 16:02:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: stunnel), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:4036


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