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-1747] Use enablerepo instead of no_rhsm to check custom repos #1288

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

r0x0d
Copy link
Member

@r0x0d r0x0d commented Jul 3, 2024

We were using the no_rhsm option to skip the check for custom repositories, and since the system can be unregistered or pre-registered, there is no need anymore to use no_rhsm in this action, instead, we can use enablerepo directly to validate if the repositories are valid or not.

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

TODO

  • Create a Jira issue for this

Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.51%. Comparing base (a805f5b) to head (fdb8942).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1288   +/-   ##
=======================================
  Coverage   96.51%   96.51%           
=======================================
  Files          71       71           
  Lines        5077     5078    +1     
  Branches      883      883           
=======================================
+ Hits         4900     4901    +1     
  Misses         98       98           
  Partials       79       79           
Flag Coverage Δ
centos-linux-7 92.01% <100.00%> (+<0.01%) ⬆️
centos-linux-8 92.88% <100.00%> (+<0.01%) ⬆️
centos-linux-9 92.92% <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.

@r0x0d r0x0d force-pushed the use-enablerepos-instead-of-no-rhsm branch from bcdb1b0 to 619c7fa Compare August 6, 2024 13:21
@r0x0d r0x0d requested a review from a team as a code owner August 6, 2024 13:21
@r0x0d r0x0d force-pushed the use-enablerepos-instead-of-no-rhsm branch 3 times, most recently from 0cbbeed to 64c1e91 Compare August 12, 2024 13:21
@r0x0d r0x0d added bug-fix A bug has been fixed tests-run-tier0 PR ready to run the essential test suit. Equivalent to `/packit test --labels tier0`. labels Aug 12, 2024
@has-bot
Copy link
Member

has-bot commented Aug 12, 2024

/packit test --labels tier0


Comment generated by an automation.

@r0x0d r0x0d force-pushed the use-enablerepos-instead-of-no-rhsm branch from 64c1e91 to 8ba6221 Compare September 12, 2024 18:02
@r0x0d r0x0d added tests-run-sanity PR ready to run the sanity test suit. Equivalent to `/packit test --labels sanity`. and removed tests-run-tier0 PR ready to run the essential test suit. Equivalent to `/packit test --labels tier0`. labels Sep 17, 2024
@r0x0d r0x0d force-pushed the use-enablerepos-instead-of-no-rhsm branch from 8ba6221 to 702293d Compare September 17, 2024 19:26
@has-bot
Copy link
Member

has-bot commented Sep 17, 2024

/packit test --labels sanity


Comment generated by an automation.

@r0x0d r0x0d force-pushed the use-enablerepos-instead-of-no-rhsm branch from 702293d to db2f0ec Compare September 18, 2024 13:49
@r0x0d
Copy link
Member Author

r0x0d commented Sep 18, 2024

/packit test --labels sanity

Copy link
Contributor

@pr-watson pr-watson 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 to me!

@r0x0d r0x0d force-pushed the use-enablerepos-instead-of-no-rhsm branch from db2f0ec to d652726 Compare September 19, 2024 13:19
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 problem Michal mentioned is fixed, the changes looks good.

We were using the no_rhsm option to skip the check for custom
repositories, and since the system can be unregistered or
pre-registered, there is no need anymore to use no_rhsm in this action,
instead, we can use enablerepo directly to validate if the repositories
are valid or not.
Moving the CustomReposAreValid to pre_ponr_changes to be a dependency of
SUBSCRIBE_SYSTEM.
@Venefilyn Venefilyn force-pushed the use-enablerepos-instead-of-no-rhsm branch from d652726 to fdb8942 Compare October 3, 2024 21:58
@Venefilyn
Copy link
Member

/packit test --labels sanity

@Venefilyn Venefilyn dismissed bocekm’s stale review October 4, 2024 10:41

From Adam: The problem Michal mentioned is fixed, the changes looks good.

@Venefilyn
Copy link
Member

@r0x0d can you create a Jira issue, update the PR text, and merge?

@r0x0d r0x0d changed the title Use enablerepo instead of no_rhsm to check custom repos [RHELC-1747] Use enablerepo instead of no_rhsm to check custom repos Oct 4, 2024
@r0x0d r0x0d enabled auto-merge (squash) October 4, 2024 12:24
@r0x0d r0x0d merged commit 2bedebf into oamg:main Oct 4, 2024
31 of 33 checks passed
@r0x0d r0x0d deleted the use-enablerepos-instead-of-no-rhsm branch October 4, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix A bug has been fixed tests-run-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.

6 participants