#10512 SCM request processing broken?
Closed: Fixed 2 years ago by humaton. Opened 2 years ago by praiskup.


When you request with "initial_commit": false, it always fails.

You need to ask @limb (not in that ticket) to transfer the repository to you, then push a new rawhide branch and ask for other branches only after that.

You will also need to configure monitoring yourself, then create a a new branch alias (main) for consistency.

I've changed the owner. You can do the rest yourself.

Aliases are configured at https://src.fedoraproject.org/rpms/python-ibm-vpc/settings#gitbranch-tab

Thanks!

But what do you mean by "it always fails"?
In https://pagure.io/fedora-infrastructure/issue/10459 I was told this is a manual process.

It is scripted by https://pagure.io/fedscm-admin -- the script(s) are run by humans.

By "it always fails" I mean that every time I include "initial_commit": false, the repo ends up being owned by @limb and the ticket is closed as invalid.

@praiskup this started after we switched to rawhide and main as an alias to rawhide. If I understand it correctly one is only allowed to create aliases to commits not to empty branches. I made a simple change that just dropped creating the main alias, but it is not in the repo. Let me fix that.

If I understand it correctly, there is no concept of an "empty branch" in Pagure. So in order to be able to have a branch, it needs to point to a commit. And hence no alias is possible with no initial commit.

So assuming "initial_commit": false will skip the alias creating, that should fix this problem, however, the alias will be missing. I suggest the reply to that ticket should be something like:

The Pagure repository was created at https://src.fedoraproject.org/rpms/python-ibm-vpc
You can create the rawhide branch by pushing to it. When the branch is pushed to, please create an alias called "main" at https://src.fedoraproject.org/rpms/python-ibm-vpc/settings#gitbranch-tab

Ideally, the alias would be created by some magic that observes the rawhide branch was created. However given the number of packagers who use "initial_commit": false is quite small, I would not bother.

I think I'm facing the same issue here, although I didn't use fedpkg request-repo --no-initial-commit. Should I ask @limb to transfer the repository to me? I don't know much about it.

Metadata Update from @humaton:
- Issue tagged with: dev, medium-gain, medium-trouble

2 years ago

Metadata Update from @humaton:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata
Boards 1
Dev Status: Backlog