redhat-cop / redhat-cop/cloud.aws_ops

Multiple sanity tests are failing due to Python dependency

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

Nobody has claimed this yet.

backport-3 backport-4 jira
Dominant language
Python
Stars
12
Forks
28
PR merge metrics
No merged PRs in 30d

Description

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 17.7 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.10.19 not in '>=3.12'

ex: https://github.com/redhat-cop/cloud.aws_ops/actions/runs/20305561182/job/58321897444?pr=172

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_ops/actions/runs/20305561182/job/58321897470?pr=172

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing the failures in the GitHub CI jobs using the pip installation command and ansible-test sanity --requirements --color --python 3.14. Compare the Python versions used by CI with the supported versions reported for ansible-core and ansible-test. Done means the affected sanity-test jobs complete successfully across the referenced stable branches.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, python
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.