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-1626] Use no_rhsm to detect if enablerepos should be disabled #1289

Merged

Conversation

r0x0d
Copy link
Member

@r0x0d r0x0d commented Jul 3, 2024

We have a special function that returns a list of repositories that needs to be disabled during various command calls, and that list is returning always the user enablerepos command line switch in it. This patch only add the enablerepos option to the list when the --no-rhsm switch is also applied.

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

Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.84%. Comparing base (794568c) to head (16d354e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1289   +/-   ##
=======================================
  Coverage   95.84%   95.84%           
=======================================
  Files          55       55           
  Lines        4768     4771    +3     
  Branches      839      840    +1     
=======================================
+ Hits         4570     4573    +3     
  Misses        112      112           
  Partials       86       86           
Flag Coverage Δ
centos-linux-7 91.05% <100.00%> (+<0.01%) ⬆️
centos-linux-8 91.98% <100.00%> (+<0.01%) ⬆️
centos-linux-9 92.02% <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.

convert2rhel/repo.py Outdated Show resolved Hide resolved
convert2rhel/repo.py Outdated Show resolved Hide resolved
convert2rhel/repo.py Outdated Show resolved Hide resolved
@r0x0d r0x0d added kind/bug-fix A bug has been fixed tests/tier0 PR ready to run the essential test suit. Equivalent to `/packit test --labels tier0`. labels Jul 4, 2024
@has-bot
Copy link
Member

has-bot commented Jul 4, 2024

/packit test --labels tier0


Comment generated by an automation.

@r0x0d
Copy link
Member Author

r0x0d commented Jul 4, 2024

/packit test --labels tier0

Comment generated by an automation.
Log | Bot Usage

Added tier0 label based on finding a test that uses custom repositories that is in the tier0 folder

@bookwar bookwar force-pushed the disable-use-of-enablerepos-in-excluded-pkgs-action branch from 0b68428 to 7b7af2e Compare July 9, 2024 13:40
@bookwar
Copy link
Contributor

bookwar commented Jul 9, 2024

/packit test --labels tier0

2 similar comments
@bookwar
Copy link
Contributor

bookwar commented Jul 9, 2024

/packit test --labels tier0

@bookwar
Copy link
Contributor

bookwar commented Jul 9, 2024

/packit test --labels tier0

@r0x0d r0x0d force-pushed the disable-use-of-enablerepos-in-excluded-pkgs-action branch from 7b7af2e to e38719a Compare July 10, 2024 15:11
@r0x0d
Copy link
Member Author

r0x0d commented Jul 10, 2024

/packit test --labels tier0

@hosekadam
Copy link
Member

Couldn't test (outage of the Candlepin), but the changes look good.

@r0x0d
Copy link
Member Author

r0x0d commented Jul 11, 2024

/packit test --labels tier0

1 similar comment
@r0x0d
Copy link
Member Author

r0x0d commented Jul 12, 2024

/packit test --labels tier0

r0x0d and others added 2 commits July 22, 2024 14:49
We have a special function that returns a list of repositories that
needs to be disabled during various command calls, and that list is
returning always the user enablerepos command line switch in it. This
patch only add the enablerepos option to the list when the --no-rhsm
switch is also applied.
Co-authored-by: Michal Bocek <mbocek@redhat.com>
@Venefilyn Venefilyn force-pushed the disable-use-of-enablerepos-in-excluded-pkgs-action branch from e38719a to 16d354e Compare July 22, 2024 12:49
@Venefilyn
Copy link
Member

/packit test --labels tier0

@Venefilyn Venefilyn merged commit 21d8ac1 into oamg:main Jul 22, 2024
33 of 34 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/bug-fix A bug has been fixed tests/tier0 PR ready to run the essential test suit. Equivalent to `/packit test --labels tier0`.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants