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

Problem with jsonchema dependency on pulp-container 2.14 #1083

Closed
Odilhao opened this issue Sep 28, 2022 · 11 comments
Closed

Problem with jsonchema dependency on pulp-container 2.14 #1083

Odilhao opened this issue Sep 28, 2022 · 11 comments
Assignees

Comments

@Odilhao
Copy link

Odilhao commented Sep 28, 2022

Version

Pulpcore 3.21
pulp_container 2.14

Describe the bug
The jsonschema version required by pulp_container conflicts with the version required by pulp-ansible

pulp-container requires ~=4.4
Pulp-ansible requires >=4.9,<4.10

This also conflicts with pulp-rpm that requires jsonschema~=4.6

To Reproduce
I'm branching the rpm packages for 3.21, it's not reproducible yet.

Expected behavior
All packages to have at least the same jsonchema version as dependency or having a more flexible dependency requirement.

Additional context

https://github.com/pulp/pulp_container/blob/2.14.0/requirements.txt#L6
https://github.com/pulp/pulp_rpm/blob/3.18.3/requirements.txt#L3
https://github.com/pulp/pulp_ansible/blob/0.15.0/requirements.txt#L4

@lubosmj
Copy link
Member

lubosmj commented Sep 29, 2022

This is a duplicate of #772.

@fao89
Copy link
Member

fao89 commented Oct 3, 2022

This is a duplicate of #772.

not duplicate, it happened again!

@ipanova
Copy link
Member

ipanova commented Oct 3, 2022

@Odilhao I see the discrepancy you're pointing out, however best what we can do is write guidelines on how to declare dependencies https://github.com/pulp/pulpcore/blob/main/docs/plugins/plugin-writer/concepts/index.rst#declaring-dependencies . Some plugins are out of our control so we cannot ensure every plugin uses same dep.version.
Based on what you have reported the 4.9 dependency requirement should be satisfied by all 3 plugins where:

pulp-container requires ~=4.4 translates to anything >=4.4,<5
pulp-ansible requires >=4.9,<4.10
pulp-rpm requires jsonschema~=4.6 ranslates to anything >=4.6,<5

Do you see a different behavior?

@ipanova ipanova self-assigned this Oct 3, 2022
@pulpbot pulpbot moved this to In Progress in RH Pulp Kanban board Oct 3, 2022
@pulpbot pulpbot moved this from In Progress to Free to take in RH Pulp Kanban board Oct 3, 2022
@Odilhao
Copy link
Author

Odilhao commented Oct 3, 2022

@Odilhao I see the discrepancy you're pointing out, however best what we can do is write guidelines on how to declare dependencies https://github.com/pulp/pulpcore/blob/main/docs/plugins/plugin-writer/concepts/index.rst#declaring-dependencies . Some plugins are out of our control so we cannot ensure every plugin uses same dep.version.

Based on what you have reported the 4.9 dependency requirement should be satisfied by all 3 plugins where:


pulp-container requires ~=4.4 translates to anything >=4.4,<5

pulp-ansible requires >=4.9,<4.10

pulp-rpm requires jsonschema~=4.6 ranslates to anything >=4.6,<5

Do you see a different behavior?

This is the behavior that I expect, I already did a PR last week to publish the rpms.

theforeman/pulpcore-packaging#587

I saw that we are pining cryptography, can we keep that one without a version pin? AFAIK we ship one old stable version that don't need rust, it's 3.x I think.

@ipanova
Copy link
Member

ipanova commented Oct 3, 2022

Have you seen these changes?
pulp/pulpcore@eb0f4fe
https://github.com/pulp/pulpcore/blob/main/docs/plugins/plugin-writer/concepts/index.rst#declaring-dependencies

Given that you opened this issue, that is your expectation of the fix? Based on my comment - I do not see any current problem with dependencies.

@ipanova
Copy link
Member

ipanova commented Oct 7, 2022

I am unsure what is required to be done in this request, unassigning.

@ipanova ipanova removed their assignment Oct 7, 2022
@dkliban
Copy link
Member

dkliban commented Oct 7, 2022

pulp_container needs to stop using ~= in the requirements.txt.

@ipanova
Copy link
Member

ipanova commented Oct 7, 2022

In the next release we will switch to >=x,<=y format @Odilhao

@ipanova ipanova self-assigned this Oct 21, 2022
@pulpbot pulpbot moved this from Free to take to In Progress in RH Pulp Kanban board Oct 21, 2022
@ipanova
Copy link
Member

ipanova commented Oct 24, 2022

2.14.2 is out

@ipanova ipanova closed this as completed Oct 24, 2022
@pulpbot pulpbot moved this from In Progress to Done in RH Pulp Kanban board Oct 24, 2022
@tjmullicani
Copy link

tjmullicani commented Nov 23, 2022

pulp_ansible has been updated to use jsonschema up to v4.17 (required by ansible-lint v6.8.7, which is a dependency for galaxy_importer v0.4.6). The current pulp_container requirement of jsonschema <4.17 will cause errors when installing together with pulp_ansible.

@ipanova
Copy link
Member

ipanova commented Nov 23, 2022

@tjmullicani thanks for pointing out. the jsonschema dep was updated on the main brain of pulp_ansible, we will make sure that main brain of pulp_container includes 3.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

No branches or pull requests

6 participants