Skip to content

Conversation

@nikromen
Copy link
Member

@nikromen nikromen commented Dec 15, 2025

this should in theory work, however I haven't tested it yet, so no mergy please (but ready for review) works:

[root@copr-be-dev ~][STG]# copr-change-storage --src backend --dst pulp --project praiskup/ping
Skipping praiskup/ping - comps.xml not supported in PULP
[root@copr-be-dev ~][STG]#

Fix #4027

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds functionality to skip projects with comps.xml enabled during the migration to Pulp, which is a necessary step as Pulp does not support this feature. The changes involve adding a new has_comps helper function and integrating it into the main migration script.

My review focuses on improving the efficiency and robustness of the new code. I've identified a performance bottleneck due to repeated API client instantiation within a loop, and a potential issue with overly broad exception handling. Addressing these points will make the migration script more performant and reliable, especially when dealing with a large number of projects.

@github-actions
Copy link

github-actions bot commented Dec 15, 2025

Pull Request validation

Failed

🔴 Review - Missing review from a member (2 required)

Success

🟢 CI - All checks have passed

@nikromen nikromen force-pushed the pulp-migration-skip-comps branch from b34fbd3 to ad3b848 Compare December 16, 2025 13:00
return True
except CoprRequestException as ex:
log.warning("Failed to query chroot %s: %s", chroot, str(ex))
continue
Copy link
Member

Choose a reason for hiding this comment

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

I think there should be either raise() or sys.exit(1) here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I rather removed the try-except... if it raises an exception, the error message will be outputted anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comps support for PULP repositories

3 participants