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

Review k*-p* feature files for dnf5 #1584

Merged
merged 11 commits into from
Nov 4, 2024

Conversation

pkratoch
Copy link
Contributor

@pkratoch pkratoch commented Nov 1, 2024

So far except for plugin* feature files, since these will probably need bigger changes.

The note was made to explain why the feature is disabled and it wasn't
removed when it was enabled later on.
Since there are no longer other logs than the dnf5.log, some scenarios
or parts of tests that tested these logs are removed.
Dnf5 doesn't print the whole messages from librepo on stdout, it instead
prints them on stderr, plus they are truncated, possibly because there
can be many errors from librepo at once, for example due to trying many
mirrors. The full message is then in the dnf5.log.
There is no point in testing that the behavior is incorrect and having
just a note about the correct one.
There is no reason to test that dnf stores internal information in
a specific place.
@kontura kontura self-assigned this Nov 4, 2024
Copy link
Contributor

@kontura kontura left a comment

Choose a reason for hiding this comment

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

Thank you!

@@ -82,4 +82,8 @@ Scenario: present user understandable message when there is a mismatch between a
And I execute "echo \"checksum mismatch\" >> /{context.dnf.repos[simple-base].path}/x86_64/labirinto-1.0-1.fc29.x86_64.rpm"
When I execute dnf with args "install labirinto"
Then the exit code is 1
And stdout contains "\[MIRROR\] labirinto-1.0-1.fc29.x86_64.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: .*, repository metadata states file length: .* \(please report to repository maintainer\)"
And stderr contains "Interrupted by header callback: Inconsistent server data"
Copy link
Contributor

Choose a reason for hiding this comment

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

I personally don't like the truncating and I have filed an issue for it: rpm-software-management/dnf5#1829

We can keep the test like this and depending on what is decided in the issue it can be updated later (or not).

@kontura kontura merged commit f8534f0 into rpm-software-management:main Nov 4, 2024
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.

2 participants