Repository navigation
Open
Labels
next-sprintPlanned for the next sprint, not tied to a release version
Description
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:
- build: raise the citry wheel size cap to 1,448 KiB #439 raised it to 1,448 KiB (19 KB above the wheel at the time);
- build: raise the citry wheel size cap to 1,536 KiB #530 raised it to 1,536 KiB (about 45 KB of headroom), after normal feature work added about 63 KB of runtime Python source.
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
- build: raise the citry wheel size cap to 1,424 KiB #380 added the cap; build: raise the citry wheel size cap to 1,448 KiB #439 and build: raise the citry wheel size cap to 1,536 KiB #530 raised it, each listing the files that grew.
- Citry UI wheel check: derive the shipped-file list from the source tree #416/fix(ui): build the Citry UI wheel's expected file list from the source tree #477 derive citry_ui's shipped-file list from the source tree.
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.
Metadata
Metadata
Assignees
Labels
next-sprintPlanned for the next sprint, not tied to a release version
Activity