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

AttributeError: It is ambiguous to get upstream_tag_template: there is more than one package in the config. #2581

Open
sentry-io bot opened this issue Oct 11, 2024 · 2 comments
Labels
area/fedora Related to Fedora ecosystem 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 Oct 11, 2024

Sentry Issue: PCKT-002-PACKIT-SERVICE-8K8

AttributeError: It is ambiguous to get upstream_tag_template: there is more than one package in the config.
(8 additional frame(s) were not displayed)
...
  File "packit_service/worker/jobs.py", line 513, in create_tasks
    if self.should_task_be_created_for_job_config_and_handler(
  File "packit_service/worker/jobs.py", line 577, in should_task_be_created_for_job_config_and_handler
    event=self.event.get_dict(),
  File "packit_service/worker/events/new_hotness.py", line 159, in get_dict
    d["tag_name"] = self.tag_name
  File "packit_service/worker/events/new_hotness.py", line 151, in tag_name
    if not (self.packages_config and self.packages_config.upstream_tag_template):
  File "packit/config/common_package_config.py", line 571, in __getattr__
    raise AttributeError(

This is preventing pull_from_upstream for specfile both on prod and on stg.

@lbarcziova
Copy link
Member

This looks like the same/similar as #2172

@nforro
Copy link
Member

nforro commented Oct 14, 2024

It can probably be solved in a similar way: packit/packit@e4ae0a4

@majamassarini majamassarini added kind/bug Something isn't working. area/fedora Related to Fedora ecosystem impact/low This issue impacts only a few users. gain/high This brings a lot of value to (not strictly a lot of) users. complexity/single-task Regular task, should be done within days. labels Oct 14, 2024
@majamassarini majamassarini moved this from new to priority-backlog in Packit Kanban Board Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/fedora Related to Fedora ecosystem 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: priority-backlog
Development

No branches or pull requests

3 participants