Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mise à jour OPS - tentative de correction du déploiement sur eclipse #203

Merged
merged 4 commits into from
Oct 4, 2024

Conversation

Shamzic
Copy link
Contributor

@Shamzic Shamzic commented Sep 18, 2024

  • extra_args: "--break-system-packages" => permettrait de corriger l'installation Ansible avec la version de python sur la préproduction (v3.9.2 en production, v3.12.2 rétrogradée en v3.9.1 durant mon process de debug, fonctionnel comme ça)
  • Mise à jour des versions des github action actions/checkout, actions/cache

@Shamzic Shamzic changed the title Mise à jour OPS Mise à jour OPS - tentative de correction du déploiement sur eclipse Sep 18, 2024
@Shamzic Shamzic self-assigned this Sep 18, 2024
@@ -10,14 +10,16 @@
- name: Install ansible on host
ansible.builtin.pip:
name: ansible
extra_args: "--break-system-packages"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With Python 3.11, this snippet will error out, as pip will refuse to install packages alongside the system's. The fix is to tell pip it's OK to "break" your system packages, either using the --break-system-packages parameter, or the PIP_BREAK_SYSTEM_PACKAGES=1 environment variable

L'explication me parait pas très rassurante, après on est sur la préproduction, on peux tester et voir ce que cela donne.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je n'arrive pas à comprendre pourquoi il y a des version différentes de python entre eclipse et equinoxe et pourquoi il y a ce message. La seule solution que j'ai trouvé pour que la CD passe c'est d'ajouter cet argument

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je viens de retester sans cet argument, ça ne passe pas hélas

synchronize.yaml Outdated Show resolved Hide resolved
synchronize.yaml Show resolved Hide resolved
Copy link
Contributor

@jenovateurs jenovateurs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je te propose de tenter comme ça et itérer...

@Shamzic Shamzic merged commit 661750c into main Oct 4, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants