-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RHEL10 Clients coverage, rhel7 & 8 hosts bumped #17003
Conversation
trigger: test-robottelo |
^ ignoring errata rhel10 cases for first collection, Works locally but fails for PRT, see below for proper CI exclusion comment
|
|
|
^ foreman/API tests with rhel10 params, ignoring test_errata.py |
|
829ef70
to
a008694
Compare
|
PRT Result
|
a008694
to
2b76a7f
Compare
|
^ Full test of all cases |
2b76a7f
to
595f819
Compare
trigger: test-robottelo |
PRT Result
|
595f819
to
d26d767
Compare
trigger: test-robottelo |
PRT Result
|
a16ae35
to
448d830
Compare
trigger: test-robottelo |
trigger: test-robottelo |
PRT Result
|
448d830
to
3850055
Compare
trigger: test-robottelo |
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
0d4855c
to
0e6d098
Compare
trigger: test-robottelo |
0e6d098
to
589976f
Compare
589976f
to
f24c0bc
Compare
PRT Result
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just one question.
'YumRepository': {'url': settings.repos.yum_0.url}, | ||
} | ||
], | ||
indirect=True, | ||
) | ||
@pytest.mark.rhel_ver_list([settings.content_host.default_rhel_version]) | ||
@pytest.mark.rhel_ver_match('N-0') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it same as running test against EL10? or do you wish to parametrize this test for EL9 and E10?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes just EL10, I could specify '10' for rhel_ver_match
, but with N-0
it will always pick the newest RHEL supported, and only that one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a couple of small things
rhel_xy = Version( | ||
constants.REPOS['kickstart'][f'rhel{rhel_ver}_bos_beta']['version'] | ||
if rhel_ver == 10 # TODO: Remove beta repos once RHEL10 is GA | ||
else constants.REPOS['kickstart'][f'rhel{rhel_ver}']['version'] | ||
if rhel_ver == 7 | ||
else constants.REPOS['kickstart'][f'rhel{rhel_ver}_bos']['version'] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In cases like these, normal if/elif/else blocks are the same number of lines and flow better.
rhel_xy = Version( | |
constants.REPOS['kickstart'][f'rhel{rhel_ver}_bos_beta']['version'] | |
if rhel_ver == 10 # TODO: Remove beta repos once RHEL10 is GA | |
else constants.REPOS['kickstart'][f'rhel{rhel_ver}']['version'] | |
if rhel_ver == 7 | |
else constants.REPOS['kickstart'][f'rhel{rhel_ver}_bos']['version'] | |
) | |
if rhel_ver == 10 # TODO: Remove beta repos once RHEL10 is GA | |
rhel_xy = Version(constants.REPOS['kickstart'][f'rhel{rhel_ver}_bos_beta']['version']) | |
elif rhel_ver == 7: | |
rhel_xy = Version(constants.REPOS['kickstart'][f'rhel{rhel_ver}']['version']) | |
else: | |
rhel_xy = Version(constants.REPOS['kickstart'][f'rhel{rhel_ver}_bos']['version']) |
tail = ( | ||
f'rhel/server/7/{REPOS["kickstart"][distro]["version"]}/x86_64/kickstart' | ||
if distro == 'rhel7' | ||
else f'{distro.split("_")[0]}/{REPOS["kickstart"][distro]["version"]}/beta/x86_64/baseos/kickstart' | ||
if 'beta' in distro # for future beta rhel distros | ||
else f'{distro.split("_")[0]}/{REPOS["kickstart"][distro]["version"]}/x86_64/baseos/kickstart' # noqa:E501 | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now that you're injecting the two additional lines (and additional condition), i'd recommend the same as earlier.
af42bbc
to
15685c3
Compare
15685c3
to
f52e93e
Compare
Update RH repos for RHEL10 Beta, BaseOS, and Appstream
Migrate existing rhel 7 and 8 content hosts to rhel 9 and 10.
By parametrization of host fixtures listed here: /pytest_plugins/fixture_markers.py
Fore Reviewers: Many clients are still using RHEL8, and their BZ coverage relies on some RedHat packages, errata, content etc, that is not yet available for RHEL10. Should we bump these 8 clients to RHEL9, until the needed content is available for RHEL10?
PRT
For cases using fixture
rhel_contenthost
parametrized by
pytest.marker.rhel_ver_match
orrhel_ver_list