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

Enable history undo tests #1497

Merged
merged 6 commits into from
Jun 11, 2024
Merged

Conversation

kontura
Copy link
Contributor

@kontura kontura commented Apr 26, 2024

@pep8speaks
Copy link

pep8speaks commented Apr 26, 2024

Hello @kontura! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-06-11 13:44:06 UTC

Copy link
Contributor

@pkratoch pkratoch left a comment

Choose a reason for hiding this comment

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

LGTM, waiting for the dnf5 patch to merge.

@kontura
Copy link
Contributor Author

kontura commented Jun 5, 2024

Updated the tests to match new messages.

@kontura
Copy link
Contributor Author

kontura commented Jun 5, 2024

/packit test rpm-software-management/dnf5#1452

One of the mark.feature tests had to disabled because its not working.
Some of the steps had to be moved because `package reasons are` uses
internally dnf5 which changes the last stderr output.
- group commands now accept group id instead of a name:
  DNF-CI-Testgroup -> dnf-ci-testgroup
- dnf5 history list doesn't fill in actions: rpm-software-management/dnf5#1448
- Undoing install of dependecies that are not used by anything else is
  now described as `remove-unused`.
- Undoing install of dependecies that are not used by anything else is
  now described as `remove-unused`.
- The `undo` command now has `allow_erasing` set which allows to remove
  `postgresql-test-9.6.8-1.module_1710+b535a823.x86_64` but it requires
  the `--ignore-extras` flag because it is not part of the original transaction
@kontura
Copy link
Contributor Author

kontura commented Jun 10, 2024

I have rebased the PR and also some of the tests needed an update.
Most notably there was a lot of failing package reasons are steps, I have added their updates to the Enable step package reasons are for dnf5 commit.

@kontura
Copy link
Contributor Author

kontura commented Jun 11, 2024

@pkratoch I think this is ready now.

@pkratoch
Copy link
Contributor

@kontura thanks for the update. I suppose you want to merge the last commit merge into enable undo into Enable history-undo.feature before I merge this?

- dnf5 history list doesn't fill in actions: rpm-software-management/dnf5#1448
- Undoing install of dependecies that are not used by anything else is
  now described as `remove-unused`.
- There is a change in one `Altered` count because dnf4 doesn't
  count/list `Upgraded` and `Downgraded` actions. dnf5 on the other hand
  shows the `Replaced` action which is their equivalent.
@kontura
Copy link
Contributor Author

kontura commented Jun 11, 2024

@kontura thanks for the update. I suppose you want to merge the last commit merge into enable undo into Enable history-undo.feature before I merge this?

oh right, yes, thank you. 🙂

@pkratoch pkratoch merged commit 0397eff into rpm-software-management:main Jun 11, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants