Skip to content

Multiple sanity tests are failing due to Python dependency #53

@hdefazio

Description

@hdefazio
SUMMARY

Multiple sanity tests are failing in the CI due to ansible packages requiring a different Python version than what the CI is using.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

ansible-core package installation/dependency resolver

ANSIBLE VERSION

stable-2.20/stable-2.17/stable-2.18/stable-2.19 (Installation fails prior to completion)

COLLECTION VERSION
latest (main branch) 

OS / ENVIRONMENT

Github CI

STEPS TO REPRODUCE

Run the sanity tests in the CI and the tests will fail at
RUN python3 -m pip install https://github.com/ansible/ansible/archive/stable-2.20.tar.gz --disable-pip-version-check or RUN ansible-test sanity --requirements --color --python 3.14

EXPECTED RESULTS

All CI is passing

ACTUAL RESULTS
Run python3 -m pip install https://github.com/ansible/ansible/archive/stable-2.20.tar.gz --disable-pip-version-check
Collecting https://github.com/ansible/ansible/archive/stable-2.20.tar.gz
  Downloading https://github.com/ansible/ansible/archive/stable-2.20.tar.gz (3.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 47.2 MB/s  0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
INFO: pip is looking at multiple versions of ansible-core to determine which version is compatible with other requirements. This could take a while.
ERROR: Package 'ansible-core' requires a different Python: 3.11.14 not in '>=3.12'

ex: https://github.com/redhat-cop/cloud.aws_troubleshooting/actions/runs/20305413604/job/58321369536?pr=51

and

This version of ansible-test cannot be executed with Python version 3.14.2. Supported Python versions are: 3.10, 3.11, 3.12

ex: https://github.com/redhat-cop/cloud.aws_troubleshooting/actions/runs/20305413604/job/58321369523?pr=51

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions