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-1528] Fix empty error message in Yum transaction failure #1214

Merged
merged 3 commits into from
May 15, 2024

Conversation

pr-watson
Copy link
Contributor

@pr-watson pr-watson commented May 9, 2024

This PR resolves an issue where the error result from the YumBaseError exception would not be displayed in the diagnosis of the Error - FAILED_TO_VALIDATE_TRANSACTION for yum transcations. The issue was that the type of the error was of YumBaseError so when a .join was used on it the output would be blank. This PR extracts the actual value from the YumBaseError class and properly displays it with the Error result. There are also updates to the unit tests for both yum and dnf transcation failures so we assert the proper content is in the Error result

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

@pr-watson pr-watson added kind/feature New feature or request tests/tier0 PR ready to run the essential test suit. Equivalent to `/packit test --labels tier0`. labels May 13, 2024
@has-bot
Copy link
Member

has-bot commented May 13, 2024

/packit test --labels tier0


Comment generated by an automation.

@Venefilyn
Copy link
Member

/packit test --labels tier0

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 good to me!

Copy link

codecov bot commented May 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.47%. Comparing base (39ea18d) to head (994e8ea).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1214   +/-   ##
=======================================
  Coverage   95.47%   95.47%           
=======================================
  Files          54       54           
  Lines        4682     4682           
  Branches      824      824           
=======================================
  Hits         4470     4470           
  Misses        131      131           
  Partials       81       81           
Flag Coverage Δ
centos-linux-7 90.66% <ø> (ø)
centos-linux-8 91.59% <ø> (ø)
centos-linux-9 91.64% <ø> (ø)

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.

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.

Expecting everything apart from Alma Linux 8.9 to pass, if so, we can merge.

@pr-watson pr-watson merged commit 63caca2 into oamg:main May 15, 2024
36 of 39 checks passed
@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/feature New feature or request 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.

5 participants