Open pedrohdz opened 3 years ago
ansible-test
seems to be a moving target... I'm not quite sure if there's a way I can follow along with all the varying requirements for it.
Hope this helps.. 🤓
@pedrohdz - The weird thing is, I don't see either pygobject
or pycairo
mentioned at all in any of the ansible-test
documentation.
The --requirements
option seems to indicate it might be trying to install other dependencies—and maybe one of those is causing this extra requirement?
I'd rather not add cairo to just this one Docker image at all, but would be willing to maybe add it everywhere if it's truly required to make the base ansible-test
work on my test images with most collections.
@geerlingguy, I'll take a look again on Monday. Maybe I'm doing something wrong, or unnecessary, on my end. Wouldn't be the first time.
If the change is needed, I would be happy to help out across the repos.
Can you create a list of steps to reproduce the error, and test it against a collection like community.general
or something else? I'm wondering if it might only be a problem in certain collections.
Issue has been recreated in this GitHub Action:
I tried running it on my workstation without --requirements
as follows and it is still complaining about pycairo
as well:
ansible-test integration --docker geerlingguy/docker-ubuntu2004-ansible --python-interpreter /usr/bin/python3
What's somewhat odd is that it works just fine with geerlingguy/docker-debian10-ansible:latest
.
Here are steps:
git clone git@github.com:Avinode/ansible-collection-devenv.git
cd ansible-collection-devenv
python3.9 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install ansible ansible-lint yamllint
# Optional.. Issue pops up with and without.
#cat galaxy.yml | ruby -r yaml -r json -e 'puts YAML.load($stdin.read).to_json' \
# | jq -r '.dependencies | keys | .[]' \
# | xargs -i ansible-galaxy collection install -p . '{}'
cd ansible_collections/avinode/devenv/
ansible-test integration --docker geerlingguy/docker-ubuntu2004-ansible --python-interpreter /usr/bin/python3
@pedrohdz - Are you able to reproduce the issue with a fresh new collection that has no or basic content, or with a collection like community.general
? It looks like the failing test is on your own devenv
collection.
I’ll dig into it more on Monday. Thanks for taking a look!
@geerlingguy Here's a stripped down Ansible collection: https://github.com/pedrohdz-scrap/ansible-pycairo-issue. The issue persists.
Note that dependencies have been removed:
Thank you!
@pedrohdz - Thanks for the reproducer. I'll take a look.
Trying to run the following:
Yields the following error: