mafalb/ansible-collection-ansible

CI fails with chardet 4.0.0

mafalb opened this issue · 2 comments

chardet 4.0.0 was released on Dec 10 but it is producing a Warning

TASK [molecule : molecules version] ********************************************
ok: [localhost] => {
    "_molecules_version.stdout": "/home/runner/.virtualenvs/molecule/lib/python3.8/site-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.2) or chardet (4.0.0) doesn't match a supported version!\n  warnings.warn(\"urllib3 ({}) or chardet ({}) doesn't match a supported \"\nmolecule 3.2.0 using python 3.8 \n    ansible:2.10.3\n    delegated:3.2.0 from molecule\n    docker:0.2.4 from molecule_docker"
}

and this leads to a failed CI run

TASK [molecule : assertions] ***************************************************
fatal: [localhost]: FAILED! => {
    "assertion": "_molecules_version.stdout is match('molecule 3')",
    "changed": false,
    "evaluated_to": false,
    "msg": "Assertion failed"
}

this is because in requests there is a check for chardet < 3.1.0

i temporarily pinned the version

i reverted it, see commit d41b76c