Actions
Bug #58069
closedflake8 fails since Nov 23 2022
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
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 1 year ago
- Status changed from In Progress to Resolved
Updated by Ilya Dryomov over 1 year 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 1 year 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
Actions