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

qa: Enable flake8 tox and fix failures #32129

Merged
merged 1 commit into from
Dec 12, 2019
Merged

Conversation

toabctl
Copy link
Contributor

@toabctl toabctl commented Dec 9, 2019

There were a couple of problems found by flake8 in the qa/
directory (most of them fixed now). Enabling flake8 during the usual
check runs hopefully avoids adding new issues in the future.

Signed-off-by: Thomas Bechtold tbechtold@suse.com

@toabctl toabctl requested a review from liewegas December 9, 2019 15:23
@toabctl toabctl requested review from a team as code owners December 9, 2019 15:23
@toabctl toabctl changed the title qa: Enable flake8 tox and fix failures qa: Enable flake8 (py2 and py3) tox and fix failures Dec 9, 2019
@toabctl toabctl added the python3 label Dec 9, 2019
qa/tasks/ceph2.py Outdated Show resolved Hide resolved
qa/tasks/cram.py Outdated Show resolved Hide resolved
qa/tasks/manypools.py Outdated Show resolved Hide resolved
@toabctl toabctl force-pushed the qa-enable-flake8 branch 2 times, most recently from cb9db41 to 96e848f Compare December 10, 2019 04:23
@toabctl
Copy link
Contributor Author

toabctl commented Dec 10, 2019

jenkins test make check

@toabctl toabctl force-pushed the qa-enable-flake8 branch 2 times, most recently from 4440670 to 9cb1bd6 Compare December 11, 2019 08:50
@toabctl
Copy link
Contributor Author

toabctl commented Dec 11, 2019

I dropped the python3 flake8 run commit for now (there are problems with the venvs).

@toabctl toabctl changed the title qa: Enable flake8 (py2 and py3) tox and fix failures qa: Enable flake8 tox and fix failures Dec 11, 2019
@toabctl toabctl removed the python3 label Dec 11, 2019
@toabctl
Copy link
Contributor Author

toabctl commented Dec 11, 2019

@liewegas imo ready for merging now.

qa/tasks/cephfs/test_scrub_checks.py Outdated Show resolved Hide resolved
qa/tasks/cephfs/test_scrub_checks.py Outdated Show resolved Hide resolved
@sebastian-philipp
Copy link
Contributor

I guess we need an exhaustive QA run for this PR?

There were a couple of problems found by flake8 in the qa/
directory (most of them fixed now). Enabling flake8 during the usual
check runs hopefully avoids adding new issues in the future.

Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
@toabctl
Copy link
Contributor Author

toabctl commented Dec 12, 2019

rebased...

@@ -360,7 +358,7 @@ class TestStandbyReplay(CephFSTestCase):

def _confirm_no_replay(self):
status = self.fs.status()
standby_count = len(list(status.get_standbys()))
_ = len(list(status.get_standbys()))
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just remove this line if it is not used?

liewegas added a commit that referenced this pull request Dec 12, 2019
* refs/pull/32129/head:
	qa: Enable flake8 tox and fix failures
@liewegas liewegas merged commit 0127cd1 into ceph:master Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants