Project

General

Profile

Actions

Bug #58069

closed
KC KC

flake8 fails since Nov 23 2022

Bug #58069: flake8 fails since Nov 23 2022

Added by Kefu Chai about 4 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Fixed In:
v18.0.0-957-gb6e58d947c8
Released In:
v18.2.0~992
Upkeep Timestamp:
2025-07-12T21:37:58+00:00

Description

Traceback (most recent call last):
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/bin/flake8", line 8, in 
    sys.exit(main())
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8/main/cli.py", line 23, in main
    app.run(argv)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8/main/application.py", line 198, in run
    self._run(argv)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8/main/application.py", line 186, in _run
    self.initialize(argv)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8/main/application.py", line 165, in initialize
    self.plugins, self.options = parse_args(argv)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8/options/parse_args.py", line 51, in parse_args
    option_manager.register_plugins(plugins)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8/options/manager.py", line 259, in register_plugins
    add_options(self)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8_quotes/__init__.py", line 109, in add_options
    cls._register_opt(parser, '--quotes', action='store',
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8_quotes/__init__.py", line 99, in _register_opt
    parser.add_option(*args, **kwargs)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8/options/manager.py", line 281, in add_option
    self._current_group.add_argument(*option_args, **option_kwargs)
  File "/usr/lib/python3.10/argparse.py", line 1440, in add_argument
    raise ValueError('%r is not callable' % (type_func,))
ValueError: 'choice' is not callable

KC Updated by Kefu Chai about 4 years ago Actions #1

  • Status changed from New to In Progress

KC Updated by Kefu Chai about 4 years ago Actions #2

  • Status changed from In Progress to Resolved

ID Updated by Ilya Dryomov about 4 years ago Actions #3

Also seen on pacific:

flake8 create: /home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8
flake8 installdeps: flake8, flake8-quotes
WARNING: Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration.
WARNING: Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration.
flake8 installed: flake8==6.0.0,flake8-quotes==3.3.1,mccabe==0.7.0,pycodestyle==2.10.0,pyflakes==3.0.1
flake8 run-test-pre: PYTHONHASHSEED='3689821132'
flake8 run-test: commands[0] | flake8 --config=tox.ini cephadm
Traceback (most recent call last):
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/bin/flake8", line 8, in <module>
    sys.exit(main())
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8/main/cli.py", line 23, in main
    app.run(argv)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8/main/application.py", line 198, in run
    self._run(argv)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8/main/application.py", line 186, in _run
    self.initialize(argv)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8/main/application.py", line 165, in initialize
    self.plugins, self.options = parse_args(argv)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8/options/parse_args.py", line 51, in parse_args
    option_manager.register_plugins(plugins)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8/options/manager.py", line 259, in register_plugins
    add_options(self)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8_quotes/__init__.py", line 109, in add_options
    cls._register_opt(parser, '--quotes', action='store',
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8_quotes/__init__.py", line 99, in _register_opt
    parser.add_option(*args, **kwargs)
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/lib/python3.10/site-packages/flake8/options/manager.py", line 281, in add_option
    self._current_group.add_argument(*option_args, **option_kwargs)
  File "/usr/lib/python3.10/argparse.py", line 1440, in add_argument
    raise ValueError('%r is not callable' % (type_func,))
ValueError: 'choice' is not callable
ERROR: InvocationError for command /home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/flake8/bin/flake8 --config=tox.ini cephadm (exited with code 1)

https://jenkins.ceph.com/job/ceph-pull-requests/107098/consoleText

UB Updated by Upkeep Bot over 1 year ago Actions #5

  • Merge Commit set to b6e58d947c83bb479047d09916663aeafee1e01b
  • Fixed In set to v18.0.0-957-gb6e58d947c8
  • Released In set to v18.2.0~992
  • Upkeep Timestamp set to 2025-07-12T21:37:58+00:00
Actions

Also available in: PDF Atom