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

Fixes #36748 - fix usage of deb copy api #10734

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

m-bucher
Copy link
Contributor

Pulp-Deb does not support dependency-solving.

Also we should use the correct name of the copy-api class.

@theforeman-bot
Copy link

Issues: #36748

@m-bucher
Copy link
Contributor Author

[test katello]

@@ -203,9 +212,9 @@ def add_debs(source_repo_ids, filters, filter_list_map)
filter_list_map
end

def copy_content_from_mapping(repo_id_map, options = {})
def copy_content_from_mapping(repo_id_map, _options = {})
Copy link
Member

Choose a reason for hiding this comment

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

I don't think copy_content_from_mapping will even run for Debian content, so these methods can likely be taken out entirely. If you trace back references to copy_content_from_mapping, you'll eventually get here:

plan_action(Repository::MultiCloneToVersion, separated_repo_map[:pulp3_yum_multicopy], version)

That shows that we only do the whole "multi copy" workflow for yum content anyway.

This wasn't always the case, but it has been since Katello 4.3.

Copy link
Member

Choose a reason for hiding this comment

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

Although, if dep solving is something that is a TODO for debian content, then I'd recommend keeping these methods of course.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe we will need it eventually for the IncrementalUpdate to work : #10847

Dependency Solving for debian is currently out-of-scope and due to various reasons like lacking support for efficient handling (sorting and comparing) of debian version within PostgreSQL.
This is also the reason I added a PR to make sure dep-solving with debs is never even tried 😈 : #10734

Copy link
Member

@ianballou ianballou left a comment

Choose a reason for hiding this comment

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

Looking fine to me! I haven't tested it since the deb incremental update bits aren't there, will do so in the next PR.

@ianballou ianballou merged commit 8a156c1 into Katello:master Feb 7, 2024
6 checks passed
@m-bucher m-bucher deleted the fix_copy_deb_api_usage branch February 7, 2024 12:44
sbernhard pushed a commit to ATIX-AG/katello that referenced this pull request Feb 29, 2024
sbernhard pushed a commit to ATIX-AG/katello that referenced this pull request Mar 8, 2024
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