Test and support the server on a Python newer than 3.13

Open
#65 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
fastapi, github-actions, python

Research direction

Start with .github/workflows/ci.yml and server/pyproject.toml to trace the server's Python version and test steps. Then read setup-scripts/debian13/00-preflight.sh, setup-scripts/debian13/lib.sh, the setup README, and the operator manual for venv creation and plugin installation. Run the existing setup script bats tests first; done means both interpreter paths are covered, the server CI job passes, and the setting and interpreter maintenance are documented.

Written by the indexing model from the issue text.

Description

ci enhancement P3 question server

Problem

The worker image already runs on Python 3.15, and CI tests the client on 3.15 (client/Dockerfile:19, client/Dockerfile:37, .github/workflows/ci.yml:211-242). The server side has not moved:

  • The server (lint + tests) job runs only on 3.13 (.github/workflows/ci.yml:18, .github/workflows/ci.yml:58). No CI job proves that the server and its locked dependencies install and pass on a newer interpreter.
  • The server declares only 3.13 in its classifiers and lints for 3.13 (server/pyproject.toml:18, server/pyproject.toml:70).
  • The Debian 13 setup scripts build the server venv on the system python3, which is 3.13 on Debian 13 (setup-scripts/debian13/00-preflight.sh:36-39, setup-scripts/debian13/lib.sh:736-741). There is no supported way to run the server on a newer interpreter.
  • Two comments are out of date. .github/dependabot.yml:48-50 says that moving the base image to 3.14 is a separate decision, but the image is already on 3.15. .github/workflows/ci.yml:55-57 gives the same reason for the server pin.

Proposed change

  1. Add a CI job server (lint + tests, python 3.X) that runs the same steps as the server job (uv lock --check, uv sync --frozen --extra dev, ruff, pytest with PostgreSQL) on the newer interpreter. Keep the 3.13 job, because 3.13 stays the minimum.
  2. Fix any failure the new job finds. Add the new version to the server classifiers.
  3. Let the Debian 13 setup scripts build the server venv on a chosen interpreter, with an opt-in setting (for example a SERVER_PYTHON value passed to uv as --python). The default stays the system python3.
  4. Document the new setting in setup-scripts/debian13/README.md and the operator manual. Say who updates an interpreter that uv manages, since apt upgrade does not update it.
  5. Update the stale comments in .github/dependabot.yml and .github/workflows/ci.yml.

Compatibility

  • requires-python stays >=3.13 in server/pyproject.toml and client/pyproject.toml. Hosts on the Debian 13 system interpreter keep working, and a rollback to an older release stays possible.
  • The setup scripts keep the system python3 by default. An existing install sees no change unless the operator sets the new option.
  • Switching an existing host to another interpreter recreates the server venv. The setup scripts must do this themselves, and must reinstall server plugins afterwards, as they already do after uv sync --frozen.

Acceptance criteria

  • CI has a required server job on the newer Python that runs lint and the full test suite with PostgreSQL, and it passes.
  • The 3.13 server job still runs and passes.
  • server/pyproject.toml lists the new version in its classifiers, and requires-python is still >=3.13.
  • With the new setting unset, the setup scripts produce the same venv as today. A bats test pins this.
  • With the new setting, the setup scripts build the venv on that interpreter, recreate an existing venv built on another one, and reinstall the configured plugins. A bats test covers this.
  • Existing deployments keep working without config changes.
  • The setup README and the operator manual document the setting, the venv recreation and who keeps the interpreter updated.
  • The stale comments in .github/dependabot.yml and .github/workflows/ci.yml are corrected.
  • CHANGELOG entry under Unreleased.

Open questions

  • Target version for the server: 3.15, like the worker image, or 3.14 first? Using the same version as the image keeps one extra interpreter in CI. Both options keep existing deployments working, because the default does not change.
  • Should the setup scripts ever change the default away from the system python3? Keeping the system default is the option that keeps existing deployments working without any step.
Dominant language
Python
Stars
0
Forks
0
Avg merge
1d 1h
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AInvirion/orcaster

All issues in AInvirion/orcaster

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.