Bug 2003252 - "[sig-builds][Feature:Builds][Slow] starting a build using CLI start-build test context override environment BUILD_LOGLEVEL in buildconfig" tests do not work as expected outside of CI
Summary: "[sig-builds][Feature:Builds][Slow] starting a build using CLI start-build t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build
Version: 4.9
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
: 4.10.0
Assignee: Adam Kaplan
QA Contact: Jitendar Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-10 19:21 UTC by Yaakov Selkowitz
Modified: 2022-03-10 16:09 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:09:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift origin pull 26463 0 None Merged Bug 2003252: builds: fix BUILD_LOGLEVEL tests for nightlies 2021-10-07 10:59:25 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:09:51 UTC

Description Yaakov Selkowitz 2021-09-10 19:21:46 UTC
The following tests assume that builder's OS_GIT_MAJOR starts with 'v' as it does in CI:

[sig-builds][Feature:Builds][Slow] starting a build using CLI  start-build test context override environment BUILD_LOGLEVEL in buildconfig should create verbose output
[sig-builds][Feature:Builds][Slow] starting a build using CLI  start-build test context override environment BUILD_LOGLEVEL in buildconfig can be overridden by build-loglevel

However, productized builds (nightlies and stable) are built with OS_GIT_MAJOR=4.  When these tests from the openshift/build testsuite are run on a nightly, the first fails, and the second could return a false negative.

Therefore, these tests need to use MatchRegexp instead of ContainSubstring to cover both possibilities.

Comment 2 Jitendar Singh 2021-09-16 07:40:26 UTC
verified

Comment 5 errata-xmlrpc 2022-03-10 16:09:36 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 (Moderate: OpenShift Container Platform 4.10.3 security update), 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/RHSA-2022:0056


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