Changeset - b55cb83f8342
[Not reviewed]
0 1 0
Branko Majic (branko) - 21 days ago 2024-08-29 22:58:11
branko@majic.rs
Noticket: Added workaround to development process for outdated Molecule version:

- Unfortunately, the Molecule version used for running tests does not
generate valid Ruby 3.x code. For now just work around the way Hash
is unpacked in function calls to optional arguments (until the test
stack gets a revamp).
1 file changed with 14 insertions and 0 deletions:
0 comments (0 inline, 0 general)
docs/development.rst
Show inline comments
 
@@ -69,12 +69,26 @@ performing the following steps:
 
7. Synchronise Python virtual environment with requirements file using
 
   **pip-tools**::
 

	
 
     workon majic-ansible-roles
 
     pip-sync
 

	
 
8. Patch the installed version of test runner (Molecule) for
 
   compatibility with newer versions of Vagrant (bundled Ruby):
 

	
 
   .. note::
 
      This is an unfortunate consequence of *Majic Ansible Roles*
 
      being dependent on an old/deprecated version of Ansible. This
 
      will be addressed at some point in the future when the roles are
 
      moved over to being compatible with latest (and supported)
 
      versions of Ansible.
 

	
 
   ::
 

	
 
      sed -i -e 's/ Hash\[/ **Hash[/' ~/.virtualenvs/majic-ansible-roles/lib/python3.9/site-packages/molecule/provisioner/ansible/plugins/libraries/molecule_vagrant.py
 

	
 

	
 
Development conventions
 
-----------------------
 

	
 
In order to maintain consistency across different roles and documentation, this
 
section describes development conventions that should be followed while making
0 comments (0 inline, 0 general)