Remove unsupported distros and disable failing checks
In order to land any changes in current state it makes sense to disable CI first, as it was not passing for a while now. With that we can land some changes that will fix Zuul configuration errors for the project. Change-Id: Iec3a054fa9aaca4af670e6c5e5ae760d13558f46
This commit is contained in:
parent
52f6c03601
commit
735302b27d
67
.pylintrc
67
.pylintrc
@ -7,9 +7,6 @@
|
||||
# pygtk.require().
|
||||
#init-hook=
|
||||
|
||||
# Profiled execution.
|
||||
profile=no
|
||||
|
||||
# Add files or directories to the blacklist. They should be base names, not
|
||||
# paths.
|
||||
ignore=CVS
|
||||
@ -21,12 +18,6 @@ persistent=no
|
||||
# usually to register additional checkers.
|
||||
load-plugins=
|
||||
|
||||
# DEPRECATED
|
||||
include-ids=no
|
||||
|
||||
# DEPRECATED
|
||||
symbols=no
|
||||
|
||||
|
||||
[MESSAGES CONTROL]
|
||||
|
||||
@ -54,11 +45,6 @@ disable=W,C,R,E1002,E1102,no-member,import-error,non-iterator-returned,assignmen
|
||||
# mypackage.mymodule.MyReporterClass.
|
||||
output-format=text
|
||||
|
||||
# Put messages in a separate file for each module / package specified on the
|
||||
# command line instead of printing them on stdout. Reports (if any) will be
|
||||
# written in a file name "pylint_global.[txt|html]".
|
||||
files-output=no
|
||||
|
||||
# Tells whether to display a full report or only the messages
|
||||
reports=no
|
||||
|
||||
@ -69,10 +55,6 @@ reports=no
|
||||
# (RP0004).
|
||||
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
|
||||
|
||||
# Add a comment according to your evaluation note. This is used by the global
|
||||
# evaluation report (RP0004).
|
||||
comment=no
|
||||
|
||||
# Template used to display messages. This is a python new-style format string
|
||||
# used to format the message information. See doc for all details
|
||||
#msg-template=
|
||||
@ -108,10 +90,6 @@ ignored-modules=distutils
|
||||
# (useful for classes with attributes dynamically set).
|
||||
ignored-classes=SQLObject
|
||||
|
||||
# When zope mode is activated, add a predefined set of Zope acquired attributes
|
||||
# to generated-members.
|
||||
zope=no
|
||||
|
||||
# List of members which are set dynamically and missed by pylint inference
|
||||
# system, and so shouldn't trigger E0201 when accessed. Python regular
|
||||
# expressions are accepted.
|
||||
@ -126,12 +104,6 @@ notes=FIXME,XXX,TODO
|
||||
|
||||
[BASIC]
|
||||
|
||||
# Required attributes for module, separated by a comma
|
||||
required-attributes=
|
||||
|
||||
# List of builtins function names that should not be used, separated by a comma
|
||||
bad-functions=map,filter,apply,input,file
|
||||
|
||||
# Good variable names which should always be accepted, separated by a comma
|
||||
good-names=i,j,k,ex,Run,_
|
||||
|
||||
@ -148,63 +120,33 @@ include-naming-hint=no
|
||||
# Regular expression matching correct function names
|
||||
function-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Naming hint for function names
|
||||
function-name-hint=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression matching correct variable names
|
||||
variable-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Naming hint for variable names
|
||||
variable-name-hint=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression matching correct constant names
|
||||
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
|
||||
|
||||
# Naming hint for constant names
|
||||
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
|
||||
|
||||
# Regular expression matching correct attribute names
|
||||
attr-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Naming hint for attribute names
|
||||
attr-name-hint=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression matching correct argument names
|
||||
argument-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Naming hint for argument names
|
||||
argument-name-hint=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression matching correct class attribute names
|
||||
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
|
||||
|
||||
# Naming hint for class attribute names
|
||||
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
|
||||
|
||||
# Regular expression matching correct inline iteration names
|
||||
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
|
||||
|
||||
# Naming hint for inline iteration names
|
||||
inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
|
||||
|
||||
# Regular expression matching correct class names
|
||||
class-rgx=[A-Z_][a-zA-Z0-9]+$
|
||||
|
||||
# Naming hint for class names
|
||||
class-name-hint=[A-Z_][a-zA-Z0-9]+$
|
||||
|
||||
# Regular expression matching correct module names
|
||||
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
|
||||
|
||||
# Naming hint for module names
|
||||
module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
|
||||
|
||||
# Regular expression matching correct method names
|
||||
method-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Naming hint for method names
|
||||
method-name-hint=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression which should only match function or class names that do
|
||||
# not require a docstring.
|
||||
no-docstring-rgx=__.*__
|
||||
@ -247,9 +189,6 @@ ignore-long-lines=^\s*(# )?<?https?://\S+>?$
|
||||
# else.
|
||||
single-line-if-stmt=no
|
||||
|
||||
# List of optional constructs for which whitespace checking is disabled
|
||||
no-space-check=trailing-comma,dict-separator
|
||||
|
||||
# Maximum number of lines in a module
|
||||
max-module-lines=1000
|
||||
|
||||
@ -294,10 +233,6 @@ max-public-methods=20
|
||||
|
||||
[CLASSES]
|
||||
|
||||
# List of interface methods to ignore, separated by a comma. This is used for
|
||||
# instance to not check methods defines in Zope's Interface base class.
|
||||
ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
|
||||
|
||||
# List of method names used to declare (i.e. assign) instance attributes.
|
||||
defining-attr-methods=__init__,__new__,setUp
|
||||
|
||||
@ -330,4 +265,4 @@ int-import-graph=
|
||||
|
||||
# Exceptions that will emit a warning when being caught. Defaults to
|
||||
# "Exception"
|
||||
overgeneral-exceptions=Exception
|
||||
overgeneral-exceptions=builtins.Exception
|
||||
|
23
.zuul.yaml
23
.zuul.yaml
@ -2,20 +2,22 @@
|
||||
queue: freezer
|
||||
templates:
|
||||
- check-requirements
|
||||
- openstack-python3-zed-jobs
|
||||
- openstack-python3-zed-jobs-arm64
|
||||
- publish-openstack-docs-pti
|
||||
- release-notes-jobs-python3
|
||||
check:
|
||||
jobs:
|
||||
- openstack-tox-pylint
|
||||
- freezer-tempest-agent
|
||||
- freezer-tempest-scheduler
|
||||
# - freezer-tempest-agent
|
||||
# - freezer-tempest-scheduler
|
||||
# - freezer-ubuntu
|
||||
# - freezer-centos-9-stream
|
||||
gate:
|
||||
jobs:
|
||||
- openstack-tox-pylint
|
||||
- freezer-tempest-agent
|
||||
- freezer-tempest-scheduler
|
||||
# - freezer-tempest-agent
|
||||
# - freezer-tempest-scheduler
|
||||
# - freezer-ubuntu
|
||||
# - freezer-centos-9-stream
|
||||
|
||||
- job:
|
||||
name: freezer-base
|
||||
@ -28,11 +30,6 @@
|
||||
parent: freezer-base
|
||||
|
||||
- job:
|
||||
name: freezer-centos-7
|
||||
name: freezer-centos-9-stream
|
||||
parent: freezer-base
|
||||
nodeset: centos-7
|
||||
|
||||
- job:
|
||||
name: freezer-opensuse-15
|
||||
parent: freezer-base
|
||||
nodeset: opensuse-15
|
||||
nodeset: centos-9-stream
|
||||
|
@ -101,7 +101,7 @@ def rsyncdelta(datastream, remotesignatures, blocksize=4096):
|
||||
# matching strong hash does not occur at the first match, it will
|
||||
# be missed and the data sent over. May fix eventually, but this
|
||||
# problem arises very rarely.
|
||||
matchblock = remote_weak.index(checksum, matchblock + 1)
|
||||
matchblock = remote_weak.index(checksum, matchblock + 1) # pylint: disable=E0606
|
||||
stronghash = hashlib.sha1(bytes(window)).hexdigest()
|
||||
matchblock = remote_strong.index(stronghash, matchblock)
|
||||
|
||||
@ -141,7 +141,7 @@ def rsyncdelta(datastream, remotesignatures, blocksize=4096):
|
||||
|
||||
# Yank off the extra byte and calculate the new window checksum
|
||||
oldbyte = window.popleft()
|
||||
checksum, a, b = rollingchecksum(oldbyte, newbyte, a, b, blocksize)
|
||||
checksum, a, b = rollingchecksum(oldbyte, newbyte, a, b, blocksize) # pylint: disable=E0601
|
||||
|
||||
last_byte.append(oldbyte)
|
||||
if len(last_byte) == blocksize:
|
||||
|
@ -244,6 +244,8 @@ def lvm_guess(mount_point_path, mount_points, source='/proc/mounts'):
|
||||
|
||||
lvm_volgroup = lvm_srcvol = lvm_device = None
|
||||
for mount_line in mount_points:
|
||||
mount_path = str()
|
||||
device = str()
|
||||
if source == '/proc/mounts':
|
||||
device, mount_path = mount_line.split(' ')[0:2]
|
||||
elif source == 'mount':
|
||||
|
Loading…
x
Reference in New Issue
Block a user