Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

problem: pulp_installer source-upgrade CI is failing #434

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

mikedep333
Copy link
Member

@mikedep333 mikedep333 commented Sep 14, 2020

due to an issue between dynaconf and box. That test includes
an upgrade from pulpcore 3.0.

Solution: Upgrade dynaconf to at least 3.1.1rc2 pre-release.

fixes: #7503

@pulpbot
Copy link
Member

pulpbot commented Sep 14, 2020

Attached issue: https://pulp.plan.io/issues/7503

@mikedep333 mikedep333 force-pushed the dynaconf-box-fix-with-prerelease branch from 21a2832 to afa6e47 Compare September 14, 2020 18:27
# box.
- name: Upgrade dynaconf to 3.1.1rc1 pre-release if it is older than 3.1.1
pip:
name: dynaconf==3.1.1rc1
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Upgraded to rc2

Copy link
Member

Choose a reason for hiding this comment

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

I think it should be >= instead of ==

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but I think it will install future pre-release versions indefinitely as well if I do that:
https://pip.pypa.io/en/stable/reference/pip_install/#pre-release-versions

due to an issue between dynaconf and box. That test includes
an upgrade from pulpcore 3.0.

Solution: Upgrade dynaconf to at least 3.1.1rc2 pre-release.

fixes: #7503
state: present
virtualenv: '{{ pulp_install_dir }}'
virtualenv_command: '{{ pulp_python_interpreter }} -m venv'
when: pip_pkgs.packages[pulp_install_dir + '/bin/pip'].dynaconf[0].version is version("3.1.1", "<")
Copy link
Member

Choose a reason for hiding this comment

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

I just noticed it now, I didn't know about this version plugin.
Nice!

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, the ansible docs are quite explicit that you should use it to safely compare versions. A simple numerical operator is unlikely to compare 3.3.3 to 3.3 successfully, the former has 2 dots and is therefore not a float. Or 3.10 to 3.1 .
https://docs.ansible.com/ansible/latest/user_guide/playbooks_tests.html#version-comparison

@mikedep333 mikedep333 merged commit fff7179 into pulp:master Sep 14, 2020
@mikedep333 mikedep333 deleted the dynaconf-box-fix-with-prerelease branch September 14, 2020 21:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants