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

Adjust reposync tests for dnf5 behavior #1599

Merged
merged 1 commit into from
Dec 5, 2024
Merged

Adjust reposync tests for dnf5 behavior #1599

merged 1 commit into from
Dec 5, 2024

Conversation

m-blaha
Copy link
Member

@m-blaha m-blaha commented Nov 26, 2024

  • progress bars output goes to stderr instead of stdout
  • full NEVRA including epoch is used
  • --downloadcomps support is dropped
  • --newest-only is yet not fully supported for modules
  • backported dnf4 test for not downloading the same NEVRA multiple times

Requires: rpm-software-management/dnf5#1903

@kontura kontura self-assigned this Dec 2, 2024
@@ -1,4 +1,4 @@
@xfail
@dnf5
# The plugin is missing: https://github.com/rpm-software-management/dnf5/issues/931
Copy link
Contributor

Choose a reason for hiding this comment

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

Left over comment.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thenks, removed.

@@ -377,11 +387,34 @@ Scenario: Reposync does not stop downloading packages on the first error
# remove one of reposynced packages to cause download error
And I delete file "//{context.dnf.tempdir}/repos/simple-base/src/dedalo-signed-1.0-1.fc29.src.rpm"
When I execute dnf with args "reposync --download-path={context.dnf.tempdir}"
Then the exit code is 1
And stdout contains "\[FAILED\] dedalo-signed-1.0-1.fc29.src.rpm: No more mirrors to try - All mirrors were already tried without success"
Then the exit code is 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we rather mark the test as @xfail and add the link to the relevant issue?

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, that's definitely better solution.

Comment on lines -263 to +273
http://localhost:[0-9]+/repodata/primary.xml.gz
http://localhost:[0-9]+/repodata/filelists.xml.gz
http://localhost:[0-9]+/repodata/other.xml.gz
http://localhost:[0-9]+/repodata/comps.xml
http://localhost:[0-9]+/repodata/comps.xml.gz
http://localhost:[0-9]+/repodata/primary.xml.zst
http://localhost:[0-9]+/repodata/filelists.xml.zst
http://localhost:[0-9]+/repodata/other.xml.zst
http://localhost:[0-9]+/repodata/comps.xml.zst
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe the order has changed for this test and the one above since it uses the std::map.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, fixed.

- progress bars output goes to stderr instead of stdout
- full NEVRA including epoch is used
- --downloadcomps support is dropped
- --newest-only is yet not fully supported for modules
- backported dnf4 test for not downloading the same NEVRA multiple times
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.

Great, thanks!

@kontura kontura merged commit e8b626e into main Dec 5, 2024
5 checks passed
@kontura kontura deleted the mblaha/reposync branch December 5, 2024 10:28
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