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-1547] Fix regression in installing removed packages during rollback #1226

Merged
merged 2 commits into from
May 17, 2024

Conversation

r0x0d
Copy link
Member

@r0x0d r0x0d commented May 16, 2024

We were passing a set object to iterate over to compose a message of packages that got removed during yum transaction. This problem was not happening before as we were dealing with a success case of restoring packages. In this regression, we found out that a set object does not have indexing, therefore, thus bug was hidden from most of our tests and pipeline.

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

@r0x0d r0x0d requested a review from danmyway May 16, 2024 23:06
@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 May 16, 2024
@has-bot
Copy link
Member

has-bot commented May 16, 2024

/packit test --labels tier0


Comment generated by an automation.

We were passing a set object to iterate over to compose a message of
packages that got removed during yum transaction. This problem was not
happening before as we were dealing with a success case of restoring
packages. In this regression, we found out that a set object does not
have indexing, therefore, thus bug was hidden from most of our tests and
pipeline.
@r0x0d r0x0d force-pushed the fix-set-object-without-indexing branch from 3f00544 to 5344d81 Compare May 16, 2024 23:25
Copy link

codecov bot commented May 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.42%. Comparing base (f784699) to head (9f2fe5f).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1226   +/-   ##
=======================================
  Coverage   95.42%   95.42%           
=======================================
  Files          54       54           
  Lines        4699     4699           
  Branches      829      829           
=======================================
  Hits         4484     4484           
  Misses        132      132           
  Partials       83       83           
Flag Coverage Δ
centos-linux-7 90.63% <100.00%> (ø)
centos-linux-8 91.55% <100.00%> (ø)
centos-linux-9 91.61% <100.00%> (ø)

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
Copy link
Member Author

r0x0d commented May 16, 2024

/packit test --labels tier0

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.

That looks good to me, tests are passing, the package is getting restored correctly.
Thanks, @r0x0d !
@Venefilyn could you please take a quick look, we can merge from my POV.

Co-authored-by: Adam Hosek <hosek.adam@outlook.com>
@r0x0d r0x0d enabled auto-merge (squash) May 17, 2024 13:23
@r0x0d r0x0d merged commit ca3902f into oamg:main May 17, 2024
14 of 17 checks passed
@r0x0d r0x0d deleted the fix-set-object-without-indexing branch May 17, 2024 13:28
@hosekadam hosekadam mentioned this pull request May 27, 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.

4 participants