-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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 lint errors in juju kubernetes master and e2e charms #45494
Conversation
Hi @ktsakalozos. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@k8s-bot ok to test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had one check inline that I'd like clarification on before approval.
Otherwise this cleanup looks good. Thanks for the effort Kos!
apt_prereqs: | ||
@# Need tox, but don't install the apt version unless we have to (don't want to conflict with pip) | ||
@which tox >/dev/null || (sudo pip install tox) | ||
@sudo apt-get install -y python-pip python-flake8 python3-flake8 flake8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is python pip required here? we're also calling pip install tox above with the possibility that pip isn't installed.
Rather than including tox.ini in our charms, would it make more sense to open a bug against layer-snap? I don't think it's reasonable for layer-snap to break the charms that include it. |
/approve I have no context to weigh in on the questions |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chuckbutler, ktsakalozos, thockin
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 45070, 45821, 45732, 45494, 45789) |
Automatic merge from submit-queue (batch tested with PRs 44337, 45775, 45832, 45574, 45758) Fix lint failures on kubernetes-e2e charm **What this PR does / why we need it**: This fixes a test failure on the kubernetes-e2e charm relating to tox and flake8: ```DEBUG:runner:/bin/sh: 1: flake8: not found``` **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: This is a follow-up to #45494 where the same thing was done for kubernetes-master. **Release note**: ```release-note Fix lint failures on kubernetes-e2e charm ```
What this PR does / why we need it: Fixes style error in the Juju charms
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
Release note: