Skip to content

Run the Python test suite on PyPy and free-threaded CPython #264

Closed

Description

@JuroOravec

Problem

The Python test suite runs only on CPython 3.10-3.14 with the GIL (py--tests.yml, the test matrix). PyPy 3.11, free-threaded CPython 3.14 (cp314t) and Pyodide get only an import smoke test of the citry_core wheel during release qualification (py--citry-core--publish.yml). So nothing checks that Citry renders correctly on those interpreters.

This gap matters more once the native render levels land: on PyPy, Pyodide and free-threaded builds Citry takes the Python render path, while standard CPython takes the Rust path. The native render stack adds one CI cell (ubuntu, Python 3.10) that runs the whole suite with --python-render-path, which covers the Python path's logic on CPython, but not interpreter-specific behavior (object identity, sys.setprofile, gc details, thread scheduling without the GIL).

Options

  • A scheduled (not per-PR) job that runs the non-browser suite on PyPy 3.11 and on cp314t, so it stays off the routine CI critical path.
  • Or a curated subset (render, serialize, Events) on those interpreters per PR, if its run time stays small.

Some tests may need marking where they depend on CPython details.

Found while planning the native render production stack.

Activity

  1. JuroOravec commented on Oct 23, 2026

    @JuroOravec
    MemberAuthor

    Deferred until after the next release, as decided with the maintainer: this is CI infrastructure, not a defect in what ships. The Python render path that PyPy, Pyodide and free-threaded builds use is covered meanwhile by the ubuntu / Python 3.10 cell running the whole suite with --python-render-path (#265).

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