Skip to content

Replace the citry wheel's fixed size cap with a growth limit #531

Open

Description

@JuroOravec

Problem

scripts/verify_citry_distribution.py --check-wheel fails when the citry wheel is larger than a fixed byte cap. The cap had to be raised twice within a few days during the 0.7.0 work:

Each time the check turned main red for every pull request, and each time the fix was to raise the number. A fixed cap that has to be moved by hand whenever runtime code grows mostly produces noise, while the failure it is meant to catch (tests, fixtures, docs, data or generated files shipping by mistake) is a change in what the wheel contains, not in how much runtime code there is.

Proposal

Design the check around what can actually go wrong:

  • Keep, and rely on, the file-list check: only runtime modules and the known non-Python members may ship. That catches a test, fixture or docs file slipping in regardless of size.
  • Replace the fixed byte cap with a growth limit against the last released wheel (fetched in the release workflow and passed in, as the release rules require), for example "at most N% or N KB larger than the previous release", so ordinary feature work between releases doesn't trip it while a sudden large jump still does.
  • Report the largest growth by file when it fails, so the cause is obvious.

Prior art

Open questions

  • What growth threshold, and against which baseline (last release, or last main build).
  • Whether citry_ui and citry_core get the same treatment.

Activity

  1. added
    next-sprint
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions