Le mirroring des dépôts vers Github est maintenant natif dans Gitlab (et donc Framagit). Merci de passer à la fonction native pour que nous puissions couper notre solution maison. Détails sur https://docs.gitlab.com/ee/workflow/repository_mirroring.html#pushing-to-a-remote-repository (pensez à supprimer le webhook de notre solution maison).

Commit 4058aeef by Denis Laxalde Committed by Philippe Pepiot

Force upgrade for "pip.installed" states

Without this, salt would (errouneoulsy) produce an empty packages argument for "pip install" call, thus resulting in a error saying "You must give at least one requirement to install". Perhaps this is fixed in more recent versions of Salt? I didn't checked. In the meantime, we force upgrade so that idempotence works. Accordingly, we add pip.installed state to the list of "exclude" in test_idempotence so that their "Changes" result won't be inspected.
parent 1decf862
......@@ -84,6 +84,7 @@ venv:
cubicweb in venv:
pip.installed:
- name: cubicweb
- upgrade: true
- bin_env: /home/{{ saemref.instance.user }}/venv
- user: {{ saemref.instance.user }}
- require:
......@@ -92,6 +93,7 @@ cubicweb in venv:
cubicweb-saem_ref:
pip.installed:
- name: cubicweb-saem_ref
- upgrade: true
- user: {{ saemref.instance.user }}
- bin_env: /home/{{ saemref.instance.user }}/venv
- require:
......@@ -129,6 +131,7 @@ gunicorn in venv:
- pkgs:
- gunicorn
- futures
- upgrade: true
- bin_env: /home/{{ saemref.instance.user }}/venv
- user: {{ saemref.instance.user }}
- require:
......
......@@ -50,8 +50,11 @@ def test_devinstall(host, name, version):
("saemref", [
# FIXME: Contain container IP...
"/home/saemref/etc/cubicweb.d/saemref/all-in-one.conf",
# Has 'ignore_installed: true', so would re-run unconditionally.
# Has 'ignore_installed: true' or 'upgrade: true', so would re-run unconditionally.
"pip-setuptools",
"cubicweb in venv",
"cubicweb-saem_ref",
"gunicorn in venv",
]),
])
@pytest.mark.destructive()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment