Skip to content

Bodhi update (from side tags) failed for the wrong reason #3049

@sentry

Description

@sentry

It could happen that a latest stable build does not exist for a package when trying to create a bodhi update from side tags. In this case, it was the packit package for the stable tag epel10.3-testing-candidate.

The update shouldn't stop with an error; instead, it should just log it as a warning, since the build can still be found in the side tag where we want the update to happen.

Sentry Issue: PCKT-002-PACKIT-SERVICE-B6F

TypeError: 'NoneType' object is not subscriptable
(7 additional frame(s) were not displayed)
...
  File "packit_service/worker/handlers/bodhi.py", line 268, in _get_or_create_bodhi_update_group_model
    str(b) for b in sidetag.get_builds_suitable_for_update(dependencies)
  File "packit_service/worker/helpers/sidetag.py", line 49, in get_builds_suitable_for_update
    latest_stable_nvr = self.koji_helper.get_latest_stable_nvr(
  File "packit/utils/koji_helper.py", line 220, in get_latest_stable_nvr
    build = self.get_latest_stable_build(
  File "packit/utils/koji_helper.py", line 196, in get_latest_stable_build
    return max(
  File "packit/utils/koji_helper.py", line 198, in <lambda>
    key=lambda b: NEVR.from_string(b["nvr"]),

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/fedoraRelated to Fedora ecosystemarea/user-experienceRelated to the UXcomplexity/single-taskRegular task; should be done within daysgain/lowDoesn't bring much value to usersimpact/lowAffects only few of the users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions