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

Branch fedora #3138

Closed
nikromen opened this issue Feb 12, 2024 · 2 comments
Closed

Branch fedora #3138

nikromen opened this issue Feb 12, 2024 · 2 comments
Assignees

Comments

@nikromen
Copy link
Member

No description provided.

@nikromen nikromen converted this from a draft issue Feb 12, 2024
@nikromen nikromen moved this from In 3 months to In Progress in CPT Kanban Feb 12, 2024
@nikromen nikromen moved this from In Progress to In 3 months in CPT Kanban Feb 12, 2024
@nikromen nikromen moved this from In 3 months to Done in CPT Kanban Feb 12, 2024
@nikromen nikromen moved this from Done to Needs triage in CPT Kanban Feb 12, 2024
@nikromen nikromen moved this from Needs triage to In Progress in CPT Kanban Feb 12, 2024
@FrostyX
Copy link
Member

FrostyX commented Feb 12, 2024

Handling builds in copr '@sssd/pr7177', chroot 'fedora-rawhide-x86_64'
Traceback (most recent call last):
  File "/usr/bin/copr-frontend", line 143, in <module>
    app.cli()
  File "/usr/lib/python3.12/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/copr-frontend", line 109, in wrapper
    sys.exit(bool(function(*args, **kwargs)))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/copr/coprs_frontend/commands/branch_fedora.py", line 27, in branch_fedora
    branch_fedora_function(fedora_version, retry_forked, branch)
  File "/usr/share/copr/coprs_frontend/commands/branch_fedora.py", line 48, in branch_fedora_function
    rawhide_to_release_function(rawhide_chroot, new_chroot, retry_forked)
  File "/usr/share/copr/coprs_frontend/commands/rawhide_to_release.py", line 82, in rawhide_to_release_function
    .filter(models.Build.copr_dir_id == copr.main_dir.id)
                                        ^^^^^^^^^^^^^
  File "/usr/share/copr/coprs_frontend/coprs/models.py", line 457, in main_dir
    return CoprDir.query.filter(CoprDir.copr_id==self.id).filter(CoprDir.main==True).one()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/sqlalchemy/orm/query.py", line 2870, in one
    return self._iter().one()
           ^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/sqlalchemy/engine/result.py", line 1522, in one
    return self._only_one_row(
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/sqlalchemy/engine/result.py", line 562, in _only_one_row
    raise exc.NoResultFound(
sqlalchemy.exc.NoResultFound: No row was found when one was required

I will need to hotfix this in production

@FrostyX
Copy link
Member

FrostyX commented Feb 15, 2024

I will need to hotfix this in production

It was probably some race with the project currently being deleted. I re-run the command again and it finished properly. Also, the chroots are now enabled.

https://lists.fedoraproject.org/archives/list/[email protected]/thread/TPIVZRXNBGTIUXGTV46PA6GMVNLXJUIW/

@FrostyX FrostyX closed this as completed Feb 15, 2024
@FrostyX FrostyX moved this from In Progress to Done in CPT Kanban Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants