Actions
Bug #58069
closedflake8 fails since Nov 23 2022
% 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):
Merge Commit:
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
Updated by Kefu Chai over 3 years ago
- Status changed from In Progress to Resolved
Updated by Ilya Dryomov over 3 years ago
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
Updated by Ilya Dryomov over 3 years ago
... and quincy too:
https://jenkins.ceph.com/job/ceph-pull-requests/107099/consoleText
pacific backport PR: https://github.com/ceph/ceph/pull/49058
quincy backport PR: https://github.com/ceph/ceph/pull/49059
Updated by Upkeep Bot 8 months ago
- 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