backend: respect disable createrepo when forking project to another - #4467
backend: respect disable createrepo when forking project to another#4467nikromen wants to merge 1 commit into
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe fork flow now propagates destination development settings to repository metadata generation and includes destination owner, project, and development values in fork action data. ChangesFork configuration propagation
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to Forking now preserves the destination project's repository-generation setting, keeping repository handling consistent with the destination configuration. No actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation The changes pass the destination chroot's devel setting through the fork flow and repository call. This directly supports honoring the destination project's disabled createrepo configuration during forks [
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/packit test |
1 similar comment
|
/packit test |
|
|
||
| if createrepo and not call_copr_repo(new_chroot_path, logger=self.log): | ||
| if createrepo and not call_copr_repo(new_chroot_path, devel=self.devel, | ||
| logger=self.log): |
There was a problem hiding this comment.
This is only for the BackendStorage. I guess we will need the same fix for the PulpStorage as well?
|
leaving this as is before we align with mikolaj on this |
| "storage": src.storage, | ||
| "ownername": dst.owner_name, | ||
| "projectname": dst.name, | ||
| "devel": dst.devel_mode, |
There was a problem hiding this comment.
before doing any follow-up action I want to clarify whether we really want to fix #4461 this way? Or we leave this behavior as is?
To me currently it makes sense to respect disable createrepo of destination fork project (the way how this PR points) however we have not come to clear conclusion, rather that this could be interpreted in numerous ways, so if at the end of the day this is not needed I'd prefer not to touch this and close the issue
| "copr": dst.name, | ||
| "builds_map": builds_map, | ||
| "storage": src.storage, | ||
| "ownername": dst.owner_name, |
There was a problem hiding this comment.
Curious why we need dst.owner_name twice?
There was a problem hiding this comment.
owner = self.ext_data.get("ownername") in actions.py on line 94 takes it; however not related directly to this fix... but would be nice to fill that value and not having it none
this is however issue not related only to uploadrpm but to forking in general
not tested on stg yet
Fix #4461