Skip to content

feat: upgrade xqueue to Python 3.12 - #386

Merged
naincy128 merged 3 commits into
masterfrom
naincy/LP-1289-xqueue-python-312
Oct 6, 2026
Merged

naincy128 merged 3 commits into
masterfrom
naincy/LP-1289-xqueue-python-312

Conversation

@naincy128

@naincy128 naincy128 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR upgrades the xqueue Ansible role to support Python 3.12 and Ubuntu 22.04 (Jammy) provisioning as part of the platform-wide Python 3.12 upgrade initiative.

Jira Ticket

LP-1289

Changes

  • Ubuntu 22.04 (Jammy) Support: Added jammy release package mapping (python3-mysqldb) to xqueue_release_specific_debian_pkgs.
  • Feature Flag Update: Renamed/updated flag to xqueue_use_python312: true.
  • Drop distutils: Removed installation of python3.11-distutils (deprecated/removed in Python 3.12 per PEP 632).
  • Python 3.12 Pip & Virtualenv Bootstrap: Bootstraps pip via get-pip.py for Python 3.12 and installs virtualenv.
  • Virtualenv Provisioning: Configures virtual environment creation with --python=python3.12 and ensures requirement installation runs with Python 3.12.
  • Task Conditionals: Updated fallback task conditions to check xqueue_use_python312.

Related PRs

Switch the xqueue role from Python 3.11 to Python 3.12, following the
same in-place pattern used for the earlier 3.8 -> 3.11 upgrade.

- Rename xqueue_use_python311 to xqueue_use_python312 and update all
  install/virtualenv/requirements tasks to use python3.12.
- Drop python3.11-distutils; distutils was removed in Python 3.12 and
  deadsnakes does not publish a python3.12-distutils package.
- Add a jammy entry to xqueue_release_specific_debian_pkgs. Python 3.12
  is only available from deadsnakes for Ubuntu 22.04, and without this
  entry the role's package lookup fails on jammy.

Requires the xqueue AMI base image to be Ubuntu 22.04 (jammy).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread playbooks/roles/xqueue/tasks/main.yml Outdated
@naincy128
naincy128 merged commit 6d345d1 into master Oct 6, 2026
3 checks passed
@naincy128
naincy128 deleted the naincy/LP-1289-xqueue-python-312 branch October 6, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants