ansible-collections / ansible-collections/cloud.common
Multiple sanity tests are failing due to Python dependency
- Dominant language
- Python
- Stars
- 19
- 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.16/stable-2.17/stable-2.18 (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 33.5 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'
Error: Process completed with exit code 1.
```
ex: https://github.com/ansible-collections/cloud.common/actions/runs/20280773187/job/58241808198?pr=193
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/ansible-collections/cloud.common/actions/runs/20280773187/job/58241808116?pr=193
Contributor guide
Research direction
Start with the GitHub CI jobs that run the pip installation and ansible-test sanity commands, then compare their Python versions with the ansible-core requirements and supported versions shown in the failures. Done means the affected stable-2.20 through stable-2.18 checks install successfully and the sanity tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ci-cd, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100