Skip to content
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

[RHELC-1615, RHELC-1602] Add integration test coverage for EL9 systems #946

Merged
merged 12 commits into from
Aug 26, 2024

Conversation

danmyway
Copy link
Member

@danmyway danmyway commented Sep 27, 2023

  • include EL9 source systems in the integration test coverage

Jira Issues:

Checklist

  • PR has been tested manually in a VM (either author or reviewer)
  • Jira issue has been made public if possible
  • [RHELC-] is part of the PR title
  • GitHub label has been added to help with Release notes
  • PR title explains the change from the user's point of view
  • Code and tests are documented properly
  • The commits are squashed to as few commits as possible (without losing data)
  • When merged: Jira issue has been updated to Release Pending if relevant

@packit-as-a-service
Copy link

Failed to load packit config file:

Cannot parse package config. ValidationError({'jobs': {11: {'packages': defaultdict(<class 'dict'>, {'convert2rhel': {'value': {'targets': ["Expected 'list[str]' or 'dict[str,dict]', got {'epel-7-x86_64': {'distros': ['centos-7']}, 'epel-8-x86_64': {'distros': ['centos-8-latest']}, 'epel-9-x86_64': None} (type <class 'dict'>)."]}}})}, 12: {'packages': defaultdict(<class 'dict'>, {'convert2rhel': {'value': {'targets': ["Expected 'list[str]' or 'dict[str,dict]', got {'epel-7-x86_64': {'distros': ['centos-7']}, 'epel-8-x86_64': {'distros': ['centos-8-latest']}, 'epel-9-x86_64': None} (type <class 'dict'>)."]}}})}, 17: {'packages': defaultdict(<class 'dict'>, {'convert2rhel': {'value': {'targets': ["Expected 'list[str]' or 'dict[str,dict]', got {'epel-7-x86_64': {'distros': ['centos-7']}, 'epel-8-x86_64': {'distros': ['centos-8-latest']}, 'epel-9-x86_64': None} (type <class 'dict'>)."]}}})}, 20: {'packages': defaultdict(<class 'dict'>, {'convert2rhel': {'value': {'targets': ["Expected 'list[str]' or 'dict[str,dict]', got {'epel-7-x86_64': {'distros': ['centos-7']}, 'epel-8-x86_64': {'distros': ['centos-8-latest']}, 'epel-9-x86_64': None} (type <class 'dict'>)."]}}})}}})

For more info, please check out the documentation or contact the Packit team.

@danmyway danmyway force-pushed the tests/el9-conversions branch from 85d2435 to 944f1bc Compare September 27, 2023 12:17
@danmyway danmyway added the kind/tests Improvement or enhancement of the tests label Sep 27, 2023
@danmyway
Copy link
Member Author

/packit test --labels el9

@danmyway danmyway changed the base branch from el9-conversions to main September 27, 2023 13:05
@danmyway danmyway force-pushed the tests/el9-conversions branch from 944f1bc to 93c8af3 Compare September 27, 2023 15:57
@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 96.39%. Comparing base (bd4e38a) to head (fc2adf1).
Report is 4 commits behind head on main.

Files Patch % Lines
...el/actions/conversion/preserve_only_rhel_kernel.py 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #946      +/-   ##
==========================================
- Coverage   96.43%   96.39%   -0.04%     
==========================================
  Files          66       66              
  Lines        4996     4998       +2     
  Branches      876      877       +1     
==========================================
  Hits         4818     4818              
- Misses        101      102       +1     
- Partials       77       78       +1     
Flag Coverage Δ
centos-linux-7 91.82% <0.00%> (-0.04%) ⬇️
centos-linux-8 92.71% <0.00%> (-0.04%) ⬇️
centos-linux-9 92.75% <0.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danmyway danmyway force-pushed the tests/el9-conversions branch from 93c8af3 to 3810c7b Compare October 9, 2023 08:41
@danmyway danmyway added the tests/sanity PR ready to run the sanity test suit. Equivalent to `/packit test --labels sanity`. label Oct 9, 2023
@has-bot
Copy link
Member

has-bot commented Oct 9, 2023

/packit test --labels sanity


@oamg/conversions-qe please review results and provide ack.

@danmyway
Copy link
Member Author

danmyway commented Oct 9, 2023

/packit test --labels sanity

danmyway added a commit to hosekadam/convert2rhel that referenced this pull request Oct 11, 2023
* address comments
* remove the el9 tests definition in .packit.yaml, which won't work
  anyway, polute the checks overview
* the test definition will be handeled separately in oamg#946

Signed-off-by: Daniel Diblik <[email protected]>
@danmyway danmyway force-pushed the tests/el9-conversions branch from 3810c7b to 178e464 Compare October 16, 2023 15:25
@danmyway
Copy link
Member Author

/packit test --labels sanity, el9

@danmyway danmyway force-pushed the tests/el9-conversions branch from 178e464 to 28f2d58 Compare April 23, 2024 12:00
@danmyway
Copy link
Member Author

/packit test --labels el9

@danmyway danmyway force-pushed the tests/el9-conversions branch 3 times, most recently from e69dc25 to 98e9c77 Compare April 24, 2024 08:28
@danmyway danmyway force-pushed the tests/el9-conversions branch from 98e9c77 to 796411b Compare June 10, 2024 06:57
@danmyway
Copy link
Member Author

/packit test --labels el9

@danmyway danmyway force-pushed the tests/el9-conversions branch 3 times, most recently from 649e2bb to f9f5576 Compare June 11, 2024 12:52
@danmyway
Copy link
Member Author

/packit test --labels el9

@danmyway danmyway force-pushed the tests/el9-conversions branch from b86e3b2 to db927cf Compare June 12, 2024 17:07
@danmyway danmyway force-pushed the tests/el9-conversions branch from db927cf to ee7c7db Compare June 12, 2024 17:16
@danmyway
Copy link
Member Author

/packit test --labels el9

@danmyway danmyway force-pushed the tests/el9-conversions branch from ee7c7db to 779aab6 Compare June 12, 2024 23:06
@danmyway
Copy link
Member Author

/packit test

* modify the main.fmf in plans
* point packit to the EL9 targets

Signed-off-by: Daniel Diblik <[email protected]>
* simplify the playbooks hardcoding eus versions
* include el9 systems in some of the playbooks
* include almalinux-repos package in almalinux-9-x86_64.cfg to handle
  the package
* fix OL9 not booting to different kernel by calling grub2-set-default

Signed-off-by: Daniel Diblik <[email protected]>
* include the EL9 in more tests
* remove the install-submgr ansible role as it was not used anymore
  anywhere
* don't use yum_conf_exclude to exclude the rhn-client-tools packages,
use a no obsolete flag in yum calls installing sub-man
* fix booting to RHCK on OL9 for real this time
* add workaround to the satellite registration fixture to enable the
  repositories
* fix the language test

Signed-off-by: Daniel Diblik <[email protected]>
* Add a new post-coversion check verifying default grub entry and
  correct running kernel
* fix broken test, where /etc/yum.repos.d got removed
* remove python3-syspurpose outdated remediation to validate RHELC-1389
  is resolved

Signed-off-by: Daniel Diblik <[email protected]>
* move rocky logos out of packages to swap to excluded packages in rocky
  9 config
* adjust wrong package in repofile_pkgs in oracle-9-x86_64.cfg

Signed-off-by: Daniel Diblik <[email protected]>
* rework test_custom_kernel
* add a workaround to set GRUB_ENABLE_BLSCFG to true

Signed-off-by: Daniel Diblik <[email protected]>
* the enablement of the BLSCFG needs to be done in specific places to be
  able to boot to a different kernel

Signed-off-by: Daniel Diblik <[email protected]>
* move the standard kernel setup inside the test preparation for oracle
* fix bad conditions in the single yum transaction tests

Signed-off-by: Daniel Diblik <[email protected]>
* simplify the fixture, set an older kernel as default if present,
  downgrade otherwise
* if we're unable to even downgrade the kernel, try to install an older
  version from an older repo
* fix kernel installation on Oracle in the isolated system test

Signed-off-by: Daniel Diblik <[email protected]>
* fix custom kernel installation, by looking for an available kernel
  version first
* fix the grub title string assertion
* add rpmdevtools to a list of required packages
* fix the workaround_remove_uek fixture to work with python3.6
* use rpmdev-sort to sort installed kernel versions
* clean up metadata, remove adjust where unneccessary

Signed-off-by: Daniel Diblik <[email protected]>
Signed-off-by: Daniel Diblik <[email protected]>
@danmyway danmyway force-pushed the tests/el9-conversions branch from 2521071 to c146877 Compare August 22, 2024 13:28
@danmyway danmyway force-pushed the tests/el9-conversions branch from c146877 to 3e22673 Compare August 22, 2024 14:35
@danmyway
Copy link
Member Author

/packit test

Signed-off-by: Daniel Diblik <[email protected]>
@danmyway danmyway force-pushed the tests/el9-conversions branch from 3e22673 to fc2adf1 Compare August 22, 2024 17:33
@danmyway
Copy link
Member Author

/packit test

@danmyway danmyway changed the title tests/Prepare for el9 test coverage [RHELC-1615] Add integration test coverage for EL9 systems Aug 26, 2024
@danmyway
Copy link
Member Author

Test failure unrelated.

Copy link
Member

@kokesak kokesak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great changes. Merging this biggie

@@ -10,10 +10,10 @@ gpg_fingerprints = 702d426d350d275d
excluded_pkgs =
rocky-obsolete-packages
rocky-gpg-keys
rocky-logos
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The swap doesn't work or this is a mistake?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't work due to some conflicting files 🥲

Copy link
Member

@hosekadam hosekadam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@kokesak kokesak merged commit 9ee4fe3 into oamg:main Aug 26, 2024
69 of 72 checks passed
@danmyway danmyway deleted the tests/el9-conversions branch September 3, 2024 08:25
@pr-watson pr-watson changed the title [RHELC-1615] Add integration test coverage for EL9 systems [RHELC-1615, RHELC-1602] Add integration test coverage for EL9 systems Sep 5, 2024
@bocekm bocekm mentioned this pull request Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/tests Improvement or enhancement of the tests tests/sanity PR ready to run the sanity test suit. Equivalent to `/packit test --labels sanity`.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants