From Fedora Project Wiki
Line 10: Line 10:


- default compression to zstd
- default compression to zstd
- by default no longer generates metadata in sqlite database format
- by default no longer generates metadata in sqlite database format
- simplifies comps xml type in repodata
- simplifies comps xml type in repodata



Revision as of 12:03, 6 March 2023


createrepo_c 1.0.0

This is a proposed Change for Fedora Linux.
This document represents a proposed Change. As part of the Changes process, proposals are publicly announced in order to receive community feedback. This proposal will only be implemented if approved by the Fedora Engineering Steering Committee.

Summary

Updating createrepo_c to 1.0.0 release changes:

- default compression to zstd - by default no longer generates metadata in sqlite database format - simplifies comps xml type in repodata

Owner


Current status

  • Targeted release: Fedora Linux 39
  • Last updated: 2023-03-06
  • FESCo issue: <will be assigned by the Wrangler>
  • Tracker bug: <will be assigned by the Wrangler>
  • Release notes tracker: <will be assigned by the Wrangler>

Detailed Description

Currenly createrepo_c has version 0.20.1

- Switch default compression from gz to zstd. All createrepo_c users that keep the default compression will get smaller metadata that are faster to decompress. DNF is able to decompress zstd via libsolv (from 0.7.0) since Fedora 30.

- Stop generating metadata in sqlite database format by default. The metadata is expensive to generate slowing createrepo_c runs and it takes up space on mirrors. - For F37 - fedora repo: primary: 9.114512 mb, filelists: 1.808264 mb, other: 4.236732 mb - updates repo: primary: 12.858123, filelists: 22.055898, other: 4.226757 mb - createrepo_c has an option --database that can trigger the creation of sqlite database metadata in case it is still required (it looks like mdapi is using it but that may change: https://github.com/fedora-infra/mdapi/issues/97). - https://github.com/rpm-software-management/createrepo_c/issues/338 - https://pagure.io/releng/issue/10745

- Change comps metadata type to "group" even for compressed variants. Previously the type was group_XX, XX for compression shortcut.


Feedback

Benefit to Fedora

Scope

  • Proposal owners:

All three changes should be fairly simple changes. - Switching to zstd is a simple change of default (given we have zstd support merged: https://github.com/rpm-software-management/createrepo_c/pull/345) - No longer generating sqlite database is also only a change of default value. PR is already created: https://github.com/rpm-software-management/createrepo_c/pull/347/files - Change of group type if also a small change to createrepo_c.

  • Other developers:

There are no requirements on other developers.

  • Policies and guidelines: N/A (not needed for this Change)
  • Trademark approval: N/A (not needed for this Change)
  • Alignment with Objectives:

Upgrade/compatibility impact

How To Test

User Experience

Dependencies

Contingency Plan

  • Contingency mechanism: (What to do? Who will do it?) N/A (not a System Wide Change)
  • Contingency deadline: N/A (not a System Wide Change)
  • Blocks release? N/A (not a System Wide Change), Yes/No


Documentation

N/A (not a System Wide Change)

Release Notes