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-1337] Port kernel_boot_files to the Action framework #1301

Merged

Conversation

pr-watson
Copy link
Contributor

@pr-watson pr-watson commented Jul 11, 2024

This PR ports the function check_kernel_boot_files to the action framework. Changing any relevant logger crictical, warning and info messages to Error results and Warning and Info messages respectively.

Jira Issues:

Checklist

  • PR has been tested manually in a VM (either author or reviewer)
  • Jira issue has been made public if possible
  • [RHELC-] or [HMS-] 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

@pr-watson pr-watson added kind/feature New feature or request tests/sanity PR ready to run the sanity test suit. Equivalent to `/packit test --labels sanity`. labels Jul 11, 2024
@pr-watson pr-watson marked this pull request as draft July 11, 2024 20:49
@has-bot
Copy link
Member

has-bot commented Jul 11, 2024

/packit test --labels sanity


Comment generated by an automation.

Copy link

codecov bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.39%. Comparing base (46d8c79) to head (1686a0e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1301   +/-   ##
=======================================
  Coverage   96.38%   96.39%           
=======================================
  Files          63       64    +1     
  Lines        4929     4942   +13     
  Branches      864      864           
=======================================
+ Hits         4751     4764   +13     
  Misses        101      101           
  Partials       77       77           
Flag Coverage Δ
centos-linux-7 91.77% <100.00%> (+0.02%) ⬆️
centos-linux-8 92.66% <100.00%> (+0.01%) ⬆️
centos-linux-9 92.70% <100.00%> (+0.01%) ⬆️

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.

@pr-watson pr-watson changed the title Migrate post conversion kernel boot files [RHELC-1337] ] Port kernel_boot_files to the Action framework Jul 12, 2024
Copy link
Member

@r0x0d r0x0d left a comment

Choose a reason for hiding this comment

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

Looks nice. Just a few comments.

@pr-watson pr-watson marked this pull request as ready for review August 5, 2024 19:24
@pr-watson pr-watson force-pushed the migrate-post-conversion-kernel-boot-files branch from 439285a to 4f62109 Compare August 5, 2024 19:27
@pr-watson pr-watson force-pushed the migrate-post-conversion-kernel-boot-files branch from 19d708a to 8c6b2a4 Compare August 6, 2024 14:04
@pr-watson pr-watson requested a review from a team as a code owner August 6, 2024 14:04
@pr-watson pr-watson force-pushed the migrate-post-conversion-kernel-boot-files branch from 5b55ab7 to c84464b Compare August 6, 2024 16:07
Copy link
Member

@Venefilyn Venefilyn left a comment

Choose a reason for hiding this comment

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

LGTM, ideally a second person should approve as I've touched a lot of the messages here

Unit tests failing atm

import pytest
import six

from convert2rhel import actions, checks, grub

Check notice

Code scanning / CodeQL

Unused import Note

Import of 'grub' is not used.
@kokesak
Copy link
Member

kokesak commented Aug 15, 2024

/packit test --labels sanity

@kokesak
Copy link
Member

kokesak commented Aug 15, 2024

@pr-watson once ready, please rebase on top of the master branch to have the latest tests in place

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.

QA ack

@pr-watson pr-watson force-pushed the migrate-post-conversion-kernel-boot-files branch from 0f68bdc to 3566e71 Compare August 16, 2024 13:35
@r0x0d
Copy link
Member

r0x0d commented Aug 16, 2024

/packit test --labels sanity

@r0x0d
Copy link
Member

r0x0d commented Aug 16, 2024

/packit test --labels sanity

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.

The failure of integration tests is related to change of command rpm -Va to rpm -Va --nodeps. Just needs a rebase.

LGTM!

@Venefilyn Venefilyn changed the title [RHELC-1337] ] Port kernel_boot_files to the Action framework [RHELC-1337] Port kernel_boot_files to the Action framework Aug 19, 2024
@Venefilyn Venefilyn force-pushed the migrate-post-conversion-kernel-boot-files branch from 5fa0b3c to 1686a0e Compare August 19, 2024 11:08
@Venefilyn
Copy link
Member

/packit test --labels sanity

@r0x0d
Copy link
Member

r0x0d commented Aug 19, 2024

@danmyway is retriggering the failed test on tesar to discard the possibility of test regression.

@danmyway
Copy link
Member

danmyway commented Aug 19, 2024

====================
AlmaLinux OS 8.10.20240530 x86_64
   tier1/destructive/kernel_boot_files
      Test results: http://artifacts.osci.redhat.com/testing-farm/44fd31dc-8b1e-47ec-85ec-3be27f3b4765
====================
Rocky-8-EC2-Base-8.10-20240528.0.x86_64
   tier1/destructive/kernel_boot_files
      Test results: http://artifacts.osci.redhat.com/testing-farm/55ba76d8-6e2c-47be-93d6-325c2164e89e
====================
OL8.9-x86_64-HVM-2024-02-02
   tier1/destructive/kernel_boot_files
      Test results: http://artifacts.osci.redhat.com/testing-farm/f2baa7cd-c32f-4c11-9ea6-143b4ac762f4
====================
OL7.9-x86_64-HVM-2023-01-05
   tier1/destructive/kernel_boot_files
      Test results: http://artifacts.osci.redhat.com/testing-farm/64aa3fe6-ccff-4efc-9c51-7b59876de774

@danmyway
Copy link
Member

+--------------------------------------+-----------------------------------------+-------------------------------------------------------------------------+-----------+
| UUID                                 | Target                                  | Test Plan                                                               | Result    |
+--------------------------------------+-----------------------------------------+-------------------------------------------------------------------------+-----------+
| 44fd31dc-8b1e-47ec-85ec-3be27f3b4765 | AlmaLinux OS 8.10.20240530 x86_64       |                                                                         |           |
|                                      |                                         | plans/tier1/destructive/kernel_boot_files/corrupted_initramfs_file      | PASSED    |
|                                      |                                         | plans/tier1/destructive/kernel_boot_files/missing_initramfs_and_vmlinuz | PASSED    |
| 55ba76d8-6e2c-47be-93d6-325c2164e89e | Rocky-8-EC2-Base-8.10-20240528.0.x86_64 |                                                                         |           |
|                                      |                                         | plans/tier1/destructive/kernel_boot_files/corrupted_initramfs_file      | PASSED    |
|                                      |                                         | plans/tier1/destructive/kernel_boot_files/missing_initramfs_and_vmlinuz | PASSED    |
| f2baa7cd-c32f-4c11-9ea6-143b4ac762f4 | OL8.9-x86_64-HVM-2024-02-02             |                                                                         |           |
|                                      |                                         | plans/tier1/destructive/kernel_boot_files/corrupted_initramfs_file      | PASSED    |
|                                      |                                         | plans/tier1/destructive/kernel_boot_files/missing_initramfs_and_vmlinuz | PASSED    |
| 64aa3fe6-ccff-4efc-9c51-7b59876de774 | OL7.9-x86_64-HVM-2023-01-05             |                                                                         |           |
|                                      |                                         | plans/tier1/destructive/kernel_boot_files/corrupted_initramfs_file      | PASSED    |
|                                      |                                         | plans/tier1/destructive/kernel_boot_files/missing_initramfs_and_vmlinuz | PASSED    |
+--------------------------------------+-----------------------------------------+-------------------------------------------------------------------------+-----------+

Copy link
Member

@danmyway danmyway left a comment

Choose a reason for hiding this comment

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

Looking good, merging.

@danmyway danmyway merged commit 4286444 into oamg:main Aug 19, 2024
28 of 29 checks passed
This was referenced Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request merge-after-tests-ok 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.

7 participants