Repository navigation
Use backwards incompatible change from ansible-compat 4.0.1 - #3904
Conversation
|
Bump to ansible-compat 4.0.1 causes other dependency issues. I guess we could require I'll wait for a maintainer to suggest what to do next. (I'm happy to do it, but if you'd rather not wait go ahead :) |
test some molecule THINGS (see ansible-community/molecule-plugins#148, ansible/molecule#3904)
* change openvpn push information * add molecule test for unconfigured role test some molecule THINGS (see ansible-community/molecule-plugins#148, ansible/molecule#3904)
There is an improperly handled breaking change in ansible-compat, which causes a malfunction in molecule. As a result, you should enforce the usage of ansible-compat==3.0.1 instead of version 4.0.1 (at least until the necessary fix is provided in molecule ansible/molecule#3904 ).
|
@asmacdo Please continue on this, we do want to switch to the new version and the API changes are not so many, mainly is about switching to For the moment I made a v.5.0.1 hotfix which prevents used of newer compat, at least until we can get your fix in. |
git clean -xdf
tar zcvf ../python-molecule_5.0.1.orig.tar.gz --exclude=.git .
debuild -uc -us
cp python-molecule.spec ../python-molecule_5.0.1-1.spec
mv ../python*-molecule*5.0.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-5.0.1/
rm -rf ../python*-molecule*5.0.1*.*
See ansible#3904
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf
tar zcvf ../python-molecule_5.0.0.orig.tar.gz --exclude=.git .
debuild -uc -us
cp python-molecule.spec ../python-molecule_5.0.0-1.spec
mv ../python*-molecule*5.0.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-5.0.0/
rm -rf ../python*-molecule*5.0.0*.*
See ansible#3904
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf
tar zcvf ../python-molecule_5.0.0.orig.tar.gz --exclude=.git .
debuild -uc -us
cp python-molecule.spec ../python-molecule_5.0.0-1.spec
mv ../python*-molecule*5.0.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-5.0.0/
rm -rf ../python*-molecule*5.0.0*.*
See ansible#3904
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf
tar zcvf ../python-molecule_5.0.1.orig.tar.gz --exclude=.git .
debuild -uc -us
cp python-molecule.spec ../python-molecule_5.0.1-1.spec
mv ../python*-molecule*5.0.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-5.0.1/
rm -rf ../python*-molecule*5.0.1*.*
See ansible#3904
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
56b7b8b to
d41d195
Compare
|
@ssbarnea I think we're good to merge! |
git clean -xdf
tar zcvf ../python-molecule_5.0.0.orig.tar.gz --exclude=.git .
debuild -uc -us
cp python-molecule.spec ../python-molecule_5.0.0-1.spec
mv ../python*-molecule*5.0.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-5.0.0/
rm -rf ../python*-molecule*5.0.0*.*
See ansible#3904
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf
tar zcvf ../python-molecule_5.0.1.orig.tar.gz --exclude=.git .
debuild -uc -us
cp python-molecule.spec ../python-molecule_5.0.1-1.spec
mv ../python*-molecule*5.0.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-5.0.1/
rm -rf ../python*-molecule*5.0.1*.*
See ansible#3904
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
|
I think, as soon as we have |
ansible-compat 4.0.1 included a breaking change. If we want to use latest, minimum version must be at least 4.0.1. ansible-compat < 4.1.2 has an issue that causes an unhandled exception for certain log levels. ansible/ansible-lint#3522 Since this issue caused CI trouble, we go ahead and bump to 4.1.2.
25de3e1 to
35df3d3
Compare
=== Do not change lines below ===
{
"chain": [],
"cmd": "pip-compile --no-annotate --output-file=.config/requirements-lock.txt --resolver=backtracking --strip-extras --unsafe-package=ruamel-yaml-clib pyproject.toml",
"exit": 0,
"extra_inputs": [],
"inputs": [],
"outputs": [],
"pwd": "."
}
^^^ Do not change lines above ^^^
Currently the tests fail for `test_command_init_role` and `test_command_init_scneario`. The tests execute `ansible-lint` on the newly-created roles and the linter recently got more restrictive, so we now have to adapt.
35df3d3 to
5f0b40c
Compare
|
bumped, recompiled requirements, rebased. Should be good to go if CI is happy 🤞 |
|
Did you miss updating |
|
@asmacdo could you have a look and fix the CI problems? |
=== Do not change lines below ===
{
"chain": [],
"cmd": "pip-compile --extra=docs --extra=test --no-annotate --output-file=.config/requirements.txt --resolver=backtracking --strip-extras pyproject.toml",
"exit": 0,
"extra_inputs": [],
"inputs": [],
"outputs": [],
"pwd": "."
}
^^^ Do not change lines above ^^^
There was a problem hiding this comment.
@asmacdo CI is now almost happy.
I used 3.10, but CI will run this on 3.9, and fail if there is a diff. This means it is safe to change this by hand, since it will be checked.
|
Any chance you could create a new release to allow us to use the latest versions of Molecule and Ansible Lint simultaneously? 😄 |
|
@alessfg you may manually patch the installed molecule v5.0.1, e.g. Well, I had a patched version with .deb/.rpm here, if you could agree with my greedy installation method, too (use with caution, you were warned): |
|
I could, but it would be even nicer to get a new official release! 😛 |
Unfreeze when molecule >= 5.0.2 is released Links: - ansible/molecule#3926 - ansible/molecule#3904
Unfreeze when molecule >= 5.0.2 is released Links: - ansible/molecule#3926 - ansible/molecule#3904
git clean -xdf
tar zcvf ../python-molecule_5.0.0.orig.tar.gz --exclude=.git .
debuild -uc -us
cp python-molecule.spec ../python-molecule_5.0.0-1.spec
cp ../python*-molecule*5.0.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-5.0.0/
rm -rf ../python*-molecule*5.0.0*.*
See ansible#3904
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf
tar zcvf ../python-molecule_5.0.1.orig.tar.gz --exclude=.git .
debuild -uc -us
cp python-molecule.spec ../python-molecule_5.0.1-1.spec
cp ../python*-molecule*5.0.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-5.0.1/
rm -rf ../python*-molecule*5.0.1*.*
See ansible#3904
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf
tar zcvf ../python-molecule_5.0.0.orig.tar.gz --exclude=.git .
debuild -uc -us
cp python-molecule.spec ../python-molecule_5.0.0-1.spec
cp ../python*-molecule*5.0.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-5.0.0/
rm -rf ../python*-molecule*5.0.0*.*
See ansible#3904
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf
tar zcvf ../python-molecule_5.0.1.orig.tar.gz --exclude=.git .
debuild -uc -us
cp python-molecule.spec ../python-molecule_5.0.1-1.spec
cp ../python*-molecule*5.0.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-5.0.1/
rm -rf ../python*-molecule*5.0.1*.*
See ansible#3904
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf
tar zcvf ../python-molecule_5.0.0.orig.tar.gz --exclude=.git .
debuild -uc -us
cp python-molecule.spec ../python-molecule_5.0.0-1.spec
cp ../python*-molecule*5.0.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-5.0.0/
rm -rf ../python*-molecule*5.0.0*.*
See ansible#3904
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf
tar zcvf ../python-molecule_5.0.1.orig.tar.gz --exclude=.git .
debuild -uc -us
cp python-molecule.spec ../python-molecule_5.0.1-1.spec
cp ../python*-molecule*5.0.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/ansible-community-molecule-5.0.1/
rm -rf ../python*-molecule*5.0.1*.*
See ansible#3904
Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
Fixes #3903
ansible/ansible-compat#256
I made this change direct in my site-packages and it fixed the issue i was having. (3903)
Let me know if it needs anything else!