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

fix fedora builds to not rely on python2-dnf and re-enable fedora builds #487

Closed
joshrabinowitz opened this issue Jun 11, 2019 · 9 comments
Labels
blocker blocking release bug build test release improvements to buid, test or release

Comments

@joshrabinowitz
Copy link
Collaborator

Recent versions of fedora no longer include the package python2-dnf,
so the travis builds fail on fedora now.

See: ansible/ansible#54855

@joshrabinowitz
Copy link
Collaborator Author

We get the build-time error:

       failed: [localhost] (item=gawk) => { 
    ... "cmd": "dnf install -y python2-dnf",  
    ... "msg": "Error: Unable to find a match", ... 
     ]}

See: https://travis-ci.org/sobolevn/git-secret/jobs/544174411#L2586

@joshrabinowitz
Copy link
Collaborator Author

Not sure how to fix this one. @simbo1905 / @hurricanehrndz / @sobolevn ?

@sobolevn
Copy link
Owner

Some googling showed these results:

Maybe we can try to use python3 and python3-dnf?

@joshrabinowitz joshrabinowitz added blocker blocking release bug build test release improvements to buid, test or release labels Jun 11, 2019
@simbo1905
Copy link
Collaborator

Python 2 stops getting regular updates in 2020 so rhel8 and centos8 dont make it the default and instead folks need to choose between python2 or python3. Moving to python 3 seems sensible as its release date was 2008.

@joshrabinowitz
Copy link
Collaborator Author

@simbo1905, @sobolevn agreed, we need to move to a modern version of python.
Either of you up to perform this change?

@joshrabinowitz
Copy link
Collaborator Author

more details: Our build system (which uses python) has sort of been grandfathered in and we've been getting warnings in the builds about how we should move off python2 for some time now.

I'm hoping someone other than me is up to fixing this build issue as I'm mostly concentrated on the code in git-secret proper. Thanks in advance!

@joshrabinowitz
Copy link
Collaborator Author

@joshrabinowitz joshrabinowitz changed the title fix fedora builds to not rely on python2-dnf fix fedora builds to not rely on python2-dnf and re-enable fedora builds Aug 17, 2019
@joshrabinowitz
Copy link
Collaborator Author

joshrabinowitz commented Aug 17, 2019

I think we're hitting neillturner/omnibus-ansible/issues/25 "Support for pip3" in omnibus-ansible, which is used by test-kitchen to install ansible with pip Nope, it's not that

@joshrabinowitz
Copy link
Collaborator Author

joshrabinowitz commented Aug 18, 2019

Fixed in #511 .

Edit: For reference, one of the steps needed was to get Ansible to prefer python3 if python2 was also installed using ansible_python_interpreter. See changes in #511 and https://docs.ansible.com/ansible/latest/reference_appendices/interpreter_discovery.html#interpreter-discovery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker blocking release bug build test release improvements to buid, test or release
Projects
None yet
Development

No branches or pull requests

3 participants