emit_releases_file needed to be updated to support centos9 and
integration pipeline.
The tests have been only partially updated: added the success
scenario to cover the centos9 case.
Change-Id: I4e35a0ce1c7b38a7e354c4571ac6a005697632d7
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.
Change-Id: Iba639e105ef6d8d9223967863ec6ac5d971be58f
Assures consistent formatting of our python codebase without having
to rely on humans to do it, or to debate during reviews.
Change-Id: I1e62cc755fa60e453dea865f436241ecae330771
emit_releases_file needed to be updated to support centos8 and
integration pipeline.
I needed to make the script distro aware, then distringuish between
distros to get the proper repo and hash in get_dlrn_hash function.
The tests have been only partially updated: I updated the success script
to cover the centos8 case, and accountfor the change in signature for
get_dlrn_hash, but the rest of the workflow is exaclty the same either
if we are in centos7 or centos8, so I did not add any additional checks.
Change-Id: I26799d5e6a3ed404b4a29be621c5871ef9be6e4c
Gate jobs are failing when this script is run from providers
outside of rdocloud. The review increases the timeout and
retries to avoid spordic failures.
Related-Bug: #1839845
Change-Id: I5903b8eee40868f57dcd019dd7ab5cdd9652cabc
This wires in the get_dlrn_hash function to the release dictionary,
so that we end up with an actual dlrn hash instead of a named hash.
Release dictionary tests updated to mock this function, including
verification of the expected calls to get_dlrn_hash.
This also adds more comprehensive logging and unittests to the
get_dlrn_hash function.
Change-Id: I41087bf0c247b933a641ea0da582b5f2b368840e
I will output a sourceable bash script with a capitalized
version of the releases dictionary variables.
Change-Id: I1fa8cbfd737d22e8d44723e0274d49d268b213e2
This review adds a pep8 jobs to be triggered
with changes to the releases script files.
pylint was considered but removed from this
initial review.
Change-Id: Ib8809c94d99ccb1ecafa94b3791f613c35dbd9ef
Add tox testing in upstream jobs with changes to
the releases script.
Removed pyflakes as these test are not running as
required.
Change-Id: I3fdf0be7beb814a681a2dcc155bae87fdb6a4c7e
This method will parse the full repo hash from the delorean.repo
file in a similar way to what we currently do via bash in the
release files. In the future, it may be better to just get this
data directly via the DLRN API.
Unittests included which assert the validity of the regex used
to parse the delorean.repo file, as well as the format of the
repo URL.
Change-Id: Ic7177d0ad1fcec5635d16d360b425f3b2737f668