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 tox version issue on trusty #66

Closed
wants to merge 1 commit into from
Closed

Fix tox version issue on trusty #66

wants to merge 1 commit into from

Conversation

johnsca
Copy link
Contributor

@johnsca johnsca commented May 2, 2016

No description provided.

tox_prereqs:
ifneq ($(TOX_GT_1_8),true)
@echo "Pip installing tox"
sudo apt-get install -y python-pip && sudo pip install -U 'tox>=1.8'
Copy link
Contributor

Choose a reason for hiding this comment

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

Noooooooooooo do not pip install on my machine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Run it in the charmbox like you're supposed to. ;)

Copy link
Contributor

Choose a reason for hiding this comment

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

no, that is not a standard workflow, and until we get charm test to properly containerize runs we shouldn't just stomp on people's machines

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But in all seriousness, it's already installing via pip if tox isn't available. The reason it's failing in charmbox is because the apt version of tox for trusty is really old. Creating a venv to install tox so that it can then create another venv seems overly complicated and unnecessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Very many tests assume sudo powers and apt-get or pip install things. Tests are containerized already using charmbox which is what this is assuming. Maybe we should just fix charmbox instead, but then we'd still already have the pip behavior that's in there currently.

Copy link
Contributor

@marcoceppi marcoceppi May 2, 2016

Choose a reason for hiding this comment

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

could we just, for now, install to --user? even though I'd prefer a virtualenv for tox. If I run the Makefile in this layer, it's only going to flake and charm proof, and unit tests. None of these should run scripts that do a sudo install, so your argument that because tests do this should don't follow through.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm inclined to remove the tox dependency management from the layer entirely and fix the issue in charmbox, since that's our standard env for running tests and it is expected to manage most of the dependencies, of which the correct version of tox is one.

I'm going to close this PR and we'll open on against charmbox, and we can revisit removing the dep management from this layer entirely later.

@johnsca johnsca closed this May 2, 2016
@johnsca
Copy link
Contributor Author

johnsca commented May 2, 2016

@merlijn-sebrechts merlijn-sebrechts deleted the tox-fix branch November 8, 2017 15:43
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.

None yet

2 participants