Bug 1851827 - Forking project into another (already existing) creates doubled build IDs
Summary: Forking project into another (already existing) creates doubled build IDs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Copr
Classification: Community
Component: frontend
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Copr Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-29 07:23 UTC by loise@kde.org
Modified: 2020-11-16 10:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-16 10:55:10 UTC
Embargoed:


Attachments (Terms of Use)

Description loise@kde.org 2020-06-29 07:23:09 UTC
Description of problem:

When forking a project in copr, the output produces a second Build ID for each included build and the according entries in the build list in the fork. The Build IDs are all empty, looking at the directory contents.

The falsly generated Build ID of the build contains all info from the original Build ID where it forks from but there is no directory created nor the files copied into the fork. The Build ID always has a lower ID than the second Build ID which actually contains the fork contents.

So, after forking a project one always has to manually delete the Builds in the Build list which are non-existent to clean up the Build list to mirror the acutally present builds

Version-Release number of selected component (if applicable):


How reproducible:
Create an empty copr project and fork another project into the empty project

Steps to Reproduce:
1.
2.
3.

Actual results:
Two build IDs are generated for each Build of the original during forking, one with a lower number and that is non-existent. If you go into the build and the chroot you get an error message. If you go into the higher ID of the build in the project forked into, you can traverse up the directories and see that there is only one build id directory of the build present.

Expected results:


Additional info:

Comment 1 Pavel Raiskup 2020-06-29 07:56:28 UTC
Thank you for the report,

> The Build IDs are all empty, looking at the directory contents.

do you have an example link?

Comment 2 Dominik Turecek 2020-07-20 15:31:43 UTC
I've opened a Pull Request that addresses this issue.
https://pagure.io/copr/copr/pull-request/1444

Comment 3 Pavel Raiskup 2020-08-24 05:27:22 UTC
Per IRC ping:
> <loise_> praiskup: thanks that someone took action on the double creation of forked builds - but it is solved the wrong way :)
> <loise_> praiskup: it doesn't work, someone took the *lower* build number to fork into an existing project and then the build artefacts are not copied, so it is a blind copy with no effect on actually copying anything :)
> <loise_> praiskup: so instead of solving the problem it is actually worse than before - you can't actually fork into an existing copr project at all any more (which is a really annoying thing updating a repo)

This has not been fixed in production yet (only git master upstream).  The behavior
you observe is probably a different bug (new bug report will be appreciated).

Comment 4 loise@kde.org 2020-08-25 06:25:09 UTC
Actually, that was a false alarm that I thought was happening at some point, but wasn't. The issue itself is still the same way as reported originally, so no new bug report needed.


Note You need to log in before you can comment on or make changes to this bug.