question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pull-Request have been deactivated for this project

See original GitHub issue

I’m trying to rebase rebase-helper with packit, however, packit is unable to create pull request on Pagure. I even tried to generate new API keys, same error.

$ packit version
0.2.0
$ packit -d propose-update https://github.com/rebase-helper/rebase-helper.git
11:07:08.292 packit_base.py    DEBUG  logging set to DEBUG
Cloning repo: https://github.com/rebase-helper/rebase-helper.git -> /tmp/tmp224hcoj_
11:07:10.376 local_project.py  DEBUG  namespace from url is rebase-helper
11:07:10.376 config.py         DEBUG  The local config file '/home/nforro/.packit.yaml' not found.
11:07:10.377 config.py         DEBUG  The local config file '/home/nforro/.packit.yml' not found.
11:07:10.377 config.py         DEBUG  The local config file '/home/nforro/.packit.json' not found.
11:07:10.377 config.py         DEBUG  The local config file '/home/nforro/packit.yaml' not found.
11:07:10.377 config.py         DEBUG  The local config file '/home/nforro/packit.yml' not found.
11:07:10.377 config.py         DEBUG  The local config file '/home/nforro/packit.json' not found.
11:07:10.377 config.py         DEBUG  The local config file '/tmp/tmp224hcoj_/.packit.yaml' not found.
11:07:10.377 config.py         DEBUG  Local package config found: /tmp/tmp224hcoj_/.packit.yml
11:07:10.378 config.py         DEBUG  Package config:
{
    "specfile_path": "rebase-helper.spec",
    "synced_files": [
        ".packit.yml",
        "rebase-helper.spec"
    ],
    "upstream_project_name": "rebase-helper",
    "downstream_package_name": "rebase-helper"
}
11:07:10.380 distgit.py        DEBUG  Using dist-git repo None
Version in upstream registries is '0.16.3'.
11:07:10.937 local_project.py  DEBUG  working_dir is set and git_repo is not: let's discover...
11:07:10.938 local_project.py  DEBUG  it's a git repo!
11:07:10.944 local_project.py  DEBUG  remote url of the repo is https://github.com/rebase-helper/rebase-helper.git
11:07:10.945 local_project.py  DEBUG  namespace from url is rebase-helper
Version in spec file is '0.16.3'.
Picking version of the latest release from the upstream registry over spec file.
Checking out upstream version 0.16.3
Using 'master' dist-git branch
09:07:11.082 distgit.py        DEBUG  About to create a new git branch 'master' in dist-git
Cloning repo: https://src.fedoraproject.org/rpms/rebase-helper.git -> /tmp/tmp8j5ylbyj
09:07:13.351 distgit.py        DEBUG  About to update branch 'master'
09:07:14.128 distgit.py        DEBUG  About to checkout 'master'
09:07:14.134 distgit.py        DEBUG  About to create a new git branch '0.16.3-master-update' in dist-git
09:07:14.136 distgit.py        DEBUG  About to checkout '0.16.3-master-update'
09:07:14.147 distgit.py        DEBUG  About to sync files ['.packit.yml', 'rebase-helper.spec']
Syncing /tmp/tmp224hcoj_/.packit.yml
Syncing /tmp/tmp224hcoj_/rebase-helper.spec
09:07:14.250 distgit.py        DEBUG  Upstream archive name is 'rebase-helper-0.16.3.tar.gz'
Archive rebase-helper-0.16.3.tar.gz found in lookaside cache (skipping upload).
09:07:14.818 distgit.py        DEBUG  Upstream archive name is 'rebase-helper-0.16.3.tar.gz'
INFO: Running 'anitya' versioneer
INFO: Downloading file from URL https://github.com/rebase-helper/rebase-helper/archive/0.16.3/rebase-helper-0.16.3.tar.gz
    [       <=>                    ]     1.80M   in 00:00:00 
09:07:16.717 distgit.py        DEBUG  Upstream archive name is 'rebase-helper-0.16.3.tar.gz'
Downloaded archive: '/tmp/tmp8j5ylbyj/rebase-helper-0.16.3.tar.gz'
About to upload to lookaside cache
won't be doing kinit, no credentials provided
09:07:16.718 utils.py          DEBUG  cmd = ['fedpkg', 'new-sources', '/tmp/tmp8j5ylbyj/rebase-helper-0.16.3.tar.gz']
09:07:18.828 utils.py          DEBUG  File already uploaded: /tmp/tmp8j5ylbyj/rebase-helper-0.16.3.tar.gz
Source upload succeeded. Don't forget to commit the sources file

09:07:18.828 distgit.py        DEBUG  About to add all & commit
09:07:18.845 distgit.py        DEBUG  About to force push changes to branch 0.16.3-master-update of a fork fork of the dist-git repo
09:07:29.188 distgit.py        DEBUG  About to create dist-git pull request from 0.16.3-master-update to master
ERROR    There was an error while creating the PR: APIError('Pull-Request have been deactivated for this project')
ERROR    Pull-Request have been deactivated for this project
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/packit/cli/utils.py", line 35, in covered_func
    func(config=config, *args, **kwargs)
  File "/usr/lib/python3.7/site-packages/packit/cli/update.py", line 71, in update
    force_new_sources=force_new_sources,
  File "/usr/lib/python3.7/site-packages/packit/api.py", line 121, in sync_release
    force_new_sources=force_new_sources,
  File "/usr/lib/python3.7/site-packages/packit/api.py", line 223, in sync
    target_branch=dist_git_branch,
  File "/usr/lib/python3.7/site-packages/packit/distgit.py", line 242, in create_pull
    target_branch=target_branch,
  File "/usr/lib/python3.7/site-packages/ogr/services/pagure.py", line 145, in pr_create
    source_branch=source_branch,
  File "/usr/lib/python3.7/site-packages/ogr/services/our_pagure.py", line 145, in create_request
    "initial_comment": body,
  File "/usr/lib/python3.7/site-packages/libpagure/libpagure.py", line 87, in _call_api
    raise APIError(output['error'])
libpagure.exceptions.APIError: Pull-Request have been deactivated for this project
09:07:32.153 local_project.py  DEBUG  Cleaning: /tmp/tmp8j5ylbyj
09:07:32.158 local_project.py  DEBUG  Cleaning: /tmp/tmp224hcoj_

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
lachmanfrantisekcommented, May 16, 2019

Just for clarification, it is a regression in the Pagure API.

We are planning to use OGR for filing PRs and get rid off libpagure.

This does not help with this issue, but yes, we would like to implement the Python API for Pagure from scratch.

1reaction
phracekcommented, May 16, 2019

This has been already filed as a bug in Pagure https://pagure.io/pagure/issue/4416. Based on the roadmap only two issues are missing (https://pagure.io/pagure/roadmap/5.6/) for releasing new Pagure which is gonna fixed that. We are planning to use OGR for filing PRs and get rid off libpagure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub pull request merge is disabled - Stack Overflow
I have a C#/WPF project hosted in GitHub as open source project. ... However the merge button of this pull request is disabled, ......
Read more >
request retries are deactivated by default on mutations #2160
Fix #2154 Follow up on #2006.
Read more >
Automatically decline inactive pull requests | Bitbucket Data ...
Bitbucket Data Center and Server can automatically decline pull requests that are inactive, reducing the number of pull requests in the list ...
Read more >
Creating a pull request - Amazon CodeCatalyst
Once the pull request has been created, the displayed difference will be between the revision of the ... On the project page, choose...
Read more >
Pull Request analysis - SonarQube Documentation
git folders have not been removed). Avoid any attempt at previewing the merge or actions involving your main branch. Report pull request status...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found