Project

General

Profile

Actions

Bug #44589

closed

mgr/dashboard: lint error on plugins/debug.py

Added by Kiefer Chang about 4 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Testing & QA
Target version:
% Done:

0%

Source:
Tags:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

NOTE: This can only be reproduced in python3.8, not in python3.6.

I hit this error when running tox lint test locally:

(node-env) ╭─root@ceph-1 /ceph/src/pybind/mgr/dashboard ‹octopus-0313*› 
╰─# pwd                                                                                                                                                               127 ↵
/ceph/src/pybind/mgr/dashboard
(node-env) ╭─root@ceph-1 /ceph/src/pybind/mgr/dashboard ‹octopus-0313*› 
╰─# tox -e lint
lint create: /ceph/src/pybind/mgr/dashboard/.tox/lint
lint installdeps: -rrequirements.txt, -cconstraints.txt, -rrequirements-lint.txt
lint installed: astroid==2.3.3,autopep8==1.5,bcrypt==3.1.4,-e git+https://github.com/ceph/ceph.git@3b7787f5396ae1b8e9550ce5898c6f92aab1a987#egg=ceph&subdirectory=src/python-common,certifi==2019.11.28,cffi==1.14.0,chardet==3.0.4,cheroot==8.3.0,CherryPy==13.1.0,cryptography==2.8,defusedxml==0.5.0,docutils==0.16,entrypoints==0.3,flake8==3.7.8,flake8-colors==0.1.6,idna==2.7,isodate==0.6.0,isort==4.3.21,jaraco.functools==3.0.0,lazy-object-proxy==1.4.3,lxml==4.5.0,mccabe==0.6.1,more-itertools==4.1.0,pkgconfig==1.5.1,portend==2.6,prettytable==0.7.2,pycodestyle==2.5.0,pycparser==2.20,pyfakefs==4.0.2,pyflakes==2.1.1,PyJWT==1.6.4,pylint==2.3.1,pyOpenSSL==17.5.0,python3-saml==1.4.1,pytz==2019.3,PyYAML==5.3,repoze.lru==0.7,requests==2.20.0,Routes==2.4.1,rstcheck==3.3.1,six==1.14.0,tempora==2.1.0,urllib3==1.24.3,wrapt==1.11.2,xmlsec==1.3.3
lint run-test-pre: PYTHONHASHSEED='2609714507'
lint run-test: commands[0] | flake8
lint run-test: commands[1] | pylint -rn --rcfile=.pylintrc --jobs=1 . controllers plugins services tests
************* Module dashboard.plugins.debug
plugins/debug.py:24:0: R0901: Too many ancestors (9/7) (too-many-ancestors)

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

ERROR: InvocationError for command /ceph/src/pybind/mgr/dashboard/.tox/lint/bin/pylint -rn --rcfile=.pylintrc --jobs=1 . controllers plugins services tests (exited with code 8)
_________________________________________________________________________________ summary __________________________________________________________________________________
ERROR:   lint: commands failed
(node-env) ╭─root@ceph-1 /ceph/src/pybind/mgr/dashboard ‹octopus-0313*› 
╰─# python --version                                                                                                                                                    1 ↵
Python 3.8.2


Related issues 1 (0 open1 closed)

Copied to Dashboard - Backport #45051: octopus: mgr/dashboard: lint error on plugins/debug.pyResolvedShyukri ShyukrievActions
Actions #1

Updated by Volker Theile about 4 years ago

  • Assignee set to Volker Theile
Actions #2

Updated by Volker Theile about 4 years ago

  • Backport set to octopus
  • Affected Versions v15.2.1, v16.0.0 added
Actions #3

Updated by Volker Theile about 4 years ago

  • Pull request ID set to 34411
Actions #4

Updated by Volker Theile about 4 years ago

  • Status changed from New to Fix Under Review
Actions #5

Updated by Lenz Grimmer about 4 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Target version set to v16.0.0
Actions #6

Updated by Nathan Cutler about 4 years ago

  • Copied to Backport #45051: octopus: mgr/dashboard: lint error on plugins/debug.py added
Actions #7

Updated by Lenz Grimmer about 4 years ago

  • Status changed from Pending Backport to Resolved
Actions #8

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 151 to Testing & QA
Actions

Also available in: Atom PDF