Skip to content

Make the next release smoother #608

Open

Description

@JuroOravec

The 0.7.0 release (2026-11-02) shipped, but it took more attempts and more build time than it should have. Each item below says what went wrong and what to change before the next release.

Pull request #609 covers (a), (b), (c), (f), and the documentation half of (e). Item (d) and the scripts/release.py candidate idea in (e) stay open here.

(a) Private advisory fixes never ran in CI

Problem. A fix built in a private security advisory lives in a temporary private fork, and those forks run no GitHub Actions. None of the 0.7.0 advisory fixes had run on Windows, Python 3.11, or Python 3.15 before they reached main. Three test failures in those environments first appeared on main during the release, and #588 fixed them.

Fix. After the private fixes are merged, run the full test matrix on main once, and wait for it to pass before starting the release candidate. The full matrix is the set of Python tests that a push to main starts on every supported system and Python version; a pull request runs fewer. This is a documented step in docs/codebase.md. By maintainer decision, no code enforces it.

(b) Package size caps failed one package at a time

Problem. Release qualification is the set of checks a release candidate runs on each package before anything is published. It checks each package against its size cap in that package's own job. The citry-ui 0.4.0 wheel (835,154 bytes) and sdist (796,436 bytes) were over their caps, and the citry 0.7.0 wheel had 1.4 KB to spare. Each failure surfaced separately during qualification, and #588 raised the caps. The ordinary pull request build already fails a wheel that is over its cap, but it never checks the citry-ui sdist against its cap, and nothing warns before any cap is reached.

Fix. Add a check to the ordinary pull request build that compares each built package file's size with its cap and prints a warning at 90 percent. It reads each cap from the verifier script that owns it, so no number is copied. A cap can then be raised in an ordinary pull request before a release. The VS Code extension's .vsix file is not built in the ordinary build, so this check cannot cover it.

(c) Advisory fork pull requests cannot be merged

Problem. GitHub does not let anyone merge an advisory's fork pull request, from the web page or through the API. For 0.7.0, main was fast-forwarded to a commit that held every fix as one chain (each fix branch had merged the earlier ones), and each advisory's fork pull request had to be closed before GitHub would publish that advisory. None of this was written down.

Fix. Document this as the standard route in docs/codebase.md.

(d) The test run on main competed with qualification for build machines

Problem. The test runs that the push to main started competed with the release candidate's qualification runs for GitHub's build machines (runners), which slowed both.

Fix idea. Let the candidate wait for, or cancel, the duplicate test run on main when main holds the same files as the merged pull request, because that pull request already passed. Or document cancelling that run by hand.

(e) Starting the candidate by hand needs the workflow inputs

Problem. To start Prepare release candidate by hand, a person has to know the workflow's file name and its packages input, then find the new run's ID in the Actions page, because Release qualified packages asks for that ID.

Fix idea. Add scripts/release.py candidate that starts the workflow and prints the run ID. A smaller step is a documented one-line gh command.

(f) A failed publication does not print how to recover

What #592 already does. The controller retries a failed registry or signing step up to two times. docs/codebase.md ("When a release stops partway") gives the command that starts the release again with the same candidate.

Problem that remains. When publication still stops with an error, the controller prints only release error: .... The person has to search the docs for the restart command and for the rule to wait until every publish run has finished.

Fix. Print the exact restart command after the error, with the candidate run ID filled in, together with the reminder to wait for the other publish runs first. Starting again is safe after any failure, once every publish run has finished, so print the command for every error that stops publication. Add a note that a failure that is not a short outage, such as a hash mismatch, fails the same way until its cause is fixed.

🤖 Generated with Claude Code

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions