Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring preserve_project: True can lead to PackitCoprProjectException #2446

Open
sentry-io bot opened this issue Jun 18, 2024 · 4 comments · Fixed by fedora-copr/copr#3329
Open
Assignees
Labels
area/copr Related to the integration with copr.fedorainfracloud.org/ complexity/single-task Regular task, should be done within days. gain/high This brings a lot of value to (not strictly a lot of) users. impact/low This issue impacts only a few users. kind/bug Something isn't working.

Comments

@sentry-io
Copy link

sentry-io bot commented Jun 18, 2024

Sentry Issue: PCKT-002-PACKIT-SERVICE-7NB

CoprRequestException: delete_after_days: Number must be between 0 and 60.
  File "packit/copr_helper.py", line 216, in create_or_update_copr_project
    copr_proj = self.copr_client.project_proxy.add(
  File "copr/v3/helpers.py", line 73, in wrapper
    result = func(*args, **kwargs)
  File "copr/v3/proxies/project.py", line 149, in add
    response = self.request.send(
  File "copr/v3/requests.py", line 46, in send
    handle_errors(response)
  File "copr/v3/requests.py", line 136, in handle_errors
    raise CoprRequestException(response_json["error"], response=response)

PackitCoprProjectException: Cannot create a new Copr project (owner=packit project=RedHatQE-newa-main chroots=['fedora-39-x86_64', 'fedora-40-x86_64', 'fedora-rawhide-x86_64', 'epel-9-x86_64']): delete_after_days: Number must be between 0 and 60.
  File "packit_service/worker/helpers/build/copr_build.py", line 509, in run_copr_build_from_source_script
    build_id, web_url = self.submit_copr_build(script=script)
  File "packit_service/worker/helpers/build/copr_build.py", line 585, in submit_copr_build
    owner = self.create_or_update_copr_project()
  File "packit_service/worker/helpers/build/copr_build.py", line 930, in create_or_update_copr_project
    raise ex
  File "packit_service/worker/helpers/build/copr_build.py", line 833, in create_or_update_copr_project
    self.api.copr_helper.create_or_update_copr_project(
  File "packit/copr_helper.py", line 239, in create_or_update_copr_project
    raise PackitCoprProjectException(error) from ex
@lbarcziova lbarcziova added the kind/bug Something isn't working. label Jun 18, 2024
@lbarcziova
Copy link
Member

Affected: RedHatQE/newa@04b57ed

@mfocko mfocko added area/copr Related to the integration with copr.fedorainfracloud.org/ complexity/single-task Regular task, should be done within days. impact/low This issue impacts only a few users. gain/high This brings a lot of value to (not strictly a lot of) users. labels Jun 20, 2024
@majamassarini majamassarini self-assigned this Jul 12, 2024
@majamassarini
Copy link
Member

Wrote a question in copr slack channel, waiting feedback: https://redhat-internal.slack.com/archives/C04N9MT0KCL/p1720774008475559.

@lbarcziova
Copy link
Member

Maybe we could let this open until the copr PR is merged/deployed so that users can track it? (@majamassarini )

majamassarini added a commit to majamassarini/copr that referenced this issue Jul 12, 2024
Synchronizing defaults of two forms.
Should fix packit/packit-service#2446
@majamassarini
Copy link
Member

yes sure, I don't know why I have closed it 🤔

@majamassarini majamassarini reopened this Jul 12, 2024
praiskup pushed a commit to fedora-copr/copr that referenced this issue Jul 15, 2024
Synchronizing defaults of two forms.
Should fix packit/packit-service#2446
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/copr Related to the integration with copr.fedorainfracloud.org/ complexity/single-task Regular task, should be done within days. gain/high This brings a lot of value to (not strictly a lot of) users. impact/low This issue impacts only a few users. kind/bug Something isn't working.
Projects
Status: in-review
Development

Successfully merging a pull request may close this issue.

3 participants