#217 distgit_bugzilla_sync is failing with error
Closed by zlopez. Opened by zlopez.

distgit_bugzilla_sync toddler is now failing with this error:

2024-07-24 12:50:13,135 - [INFO fedora_messaging.twisted.consumer] Consuming message from topic org.fedoraproject.prod.toddlers.trigger.distgit_bugzilla_sync (message id 92ead396-6bcc-4f34-944f-fc7ea4976318)
2024-07-24 12:50:13,135 - [INFO toddlers.runner] Toddlers processing: 92ead396-6bcc-4f34-944f-fc7ea4976318 -- org.fedoraproject.prod.toddlers.trigger.distgit_bugzilla_sync
2024-07-24 12:50:13,135 - [INFO toddlers.runner] Toddler 'distgit_bugzilla_sync' accepted to process message id: 92ead396-6bcc-4f34-944f-fc7ea4976318
2024-07-24 12:50:13,166 - [INFO toddlers.utils.package_summaries] Downloading file: https://kojipkgs.fedoraproject.org/repos/rawhide/latest/x86_64/repodata/6b2e334766ce026a7302aa4e9fe961958f7edc1cb00b75726683b9e3cc18f832-primary.xml.zst to /var/tmp/6b2e334766ce026a7302aa4e9fe961958f7edc1cb00b75726683b9e3cc18f832-primary.xml.zst
2024-07-24 12:50:13,260 - [INFO toddlers.utils.package_summaries] Extracting /var/tmp/6b2e334766ce026a7302aa4e9fe961958f7edc1cb00b75726683b9e3cc18f832-primary.xml.zst to /var/tmp/distgit-bugzilla-sync-primary.xml
2024-07-24 12:50:13,260 - [ERROR toddlers.runner] Toddler 'distgit_bugzilla_sync' failed to process message id: 92ead396-6bcc-4f34-944f-fc7ea4976318 -- putting it back in the queue
Traceback (most recent call last):
  File "/code/toddlers/runner.py", line 96, in __call__
    toddler.process(self.toddler_config[toddler.name], message)
  File "/code/toddlers/plugins/distgit_bugzilla_sync.py", line 113, in process
    rpm_summaries = PackageSummaries().get_package_summaries(config)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/code/toddlers/utils/package_summaries.py", line 217, in get_package_summaries
    primary_xml = self.get_primary_xml(
                  ^^^^^^^^^^^^^^^^^^^^^
  File "/code/toddlers/utils/package_summaries.py", line 200, in get_primary_xml
    self._decompress_db(archive, destfile)
  File "/code/toddlers/utils/package_summaries.py", line 102, in _decompress_db
    raise NotImplementedError(archive)
NotImplementedError: /var/tmp/6b2e334766ce026a7302aa4e9fe961958f7edc1cb00b75726683b9e3cc18f832-primary.xml.zst
2024-07-24 12:50:13,262 - [WARNING fedora_messaging.twisted.consumer] Returning message id 92ead396-6bcc-4f34-944f-fc7ea4976318 to the queue

It seems that there is a new compression format used for package_summaries, which is not yet implemented in toddler. The format is .zst.

Metadata Update from @zlopez:
- Issue tagged with: cpe

This is fixed already

Metadata Update from @zlopez:
- Issue status updated to: Closed (was: Open)

Metadata
Related Pull Requests