operator icon indicating copy to clipboard operation
operator copied to clipboard

Ci: fix published charms tests (poetry) after ops3

Open dimaqq opened this issue 8 months ago • 1 comments

Run if [ -e "test-requirements.txt" ]; then
Creating virtualenv non-package-mode-0BGEE6m2-py3.12 in /home/runner/.cache/pypoetry/virtualenvs

Updating dependencies
Resolving dependencies...

Because no versions of ops match >2.17.0,<2.17.1 || >2.17.1,<2.18.0 || >2.18.0,<2.18.1 || >2.18.1,<2.19.0 || >2.19.0,<2.19.4 || >2.19.4,<2.20.0 || >2.20.0,<2.21.0 || >2.21.0,<2.21.1 || >2.21.1,<2.22.0 || >2.22.0,<2.23.0 || >2.23.0,<3.0.0
 and ops[testing] (2.17.0) depends on ops (2.17.0), ops[testing] (>=2.17.0,<2.17.1 || >2.17.1,<2.18.0 || >2.18.0,<2.18.1 || >2.18.1,<2.19.0 || >2.19.0,<2.19.4 || >2.19.4,<2.20.0 || >2.20.0,<2.21.0 || >2.21.0,<2.21.1 || >2.21.1,<2.22.0 || >2.22.0,<2.23.0 || >2.23.0,<3.0.0) requires ops (2.17.0).
And because ops[testing] (2.17.1) depends on ops (2.17.1)
 and ops[testing] (2.18.0) depends on ops (2.18.0), ops[testing] (>=2.17.0,<2.18.1 || >2.18.1,<2.19.0 || >2.19.0,<2.19.4 || >2.19.4,<2.20.0 || >2.20.0,<2.21.0 || >2.21.0,<2.21.1 || >2.21.1,<2.22.0 || >2.22.0,<2.23.0 || >2.23.0,<3.0.0) requires ops (2.17.0 || 2.17.1 || 2.18.0).
And because ops[testing] (2.18.1) depends on ops (2.18.1)
 and ops[testing] (2.19.0) depends on ops (2.19.0), ops[testing] (>=2.17.0,<2.19.4 || >2.19.4,<2.20.0 || >2.20.0,<2.21.0 || >2.21.0,<2.21.1 || >2.21.1,<2.22.0 || >2.22.0,<2.23.0 || >2.23.0,<3.0.0) requires ops (2.17.0 || 2.17.1 || 2.18.0 || 2.18.1 || 2.19.0).
And because ops[testing] (2.19.4) depends on ops (2.19.4)
 and ops[testing] (2.20.0) depends on ops (2.20.0), ops[testing] (>=2.17.0,<2.21.0 || >2.21.0,<2.21.1 || >2.21.1,<2.22.0 || >2.22.0,<2.23.0 || >2.23.0,<3.0.0) requires ops (2.17.0 || 2.17.1 || 2.18.0 || 2.18.1 || 2.19.0 || 2.19.4 || 2.20.0).
And because ops[testing] (2.21.0) depends on ops (2.21.0)
 and ops[testing] (2.21.1) depends on ops (2.21.1), ops[testing] (>=2.17.0,<2.22.0 || >2.22.0,<2.23.0 || >2.23.0,<3.0.0) requires ops (2.17.0 || 2.17.1 || 2.18.0 || 2.18.1 || 2.19.0 || 2.19.4 || 2.20.0 || 2.21.0 || 2.21.1).
And because ops[testing] (2.22.0) depends on ops (2.22.0)
 and ops[testing] (2.23.0) depends on ops (2.23.0), ops[testing] (>=2.17.0,<3.0.0) requires ops (2.17.0 || 2.17.1 || 2.18.0 || 2.18.1 || 2.19.0 || 2.19.4 || 2.20.0 || 2.21.0 || 2.21.1 || 2.22.0 || 2.23.0).
So, because non-package-mode depends on both ops (3.0.0.dev0) @ git+https://github.com/dimaqq/operator@f419f0d1fdc3c2b04d9418eaf07e9645f3b93cc5 and ops[testing] (^2.17.0), version solving failed.

dimaqq avatar Jul 01 '25 06:07 dimaqq

This happened after we published Ops 3.x, because people are pinned to old versions of ops, and perhaps poetry issues. Someone could go through failures and open issues upstream. Most failures are related to some sort of version conflict.

benhoyt avatar Sep 09 '25 03:09 benhoyt