See <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/599/display/redirect>
Changes: ------------------------------------------ [...truncated 44.01 KB...] py27-lint3 run-test-pre: commands[3] | <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py2/build/srcs/sdks/python/scripts/run_tox_cleanup.sh> py27-lint3 run-test: commands[0] | pylint --version Using config file <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py2/build/srcs/sdks/python/.pylintrc> pylint 1.9.3, astroid 1.6.6 Python 2.7.12 (default, Oct 8 2019, 14:14:10) [GCC 5.4.0 20160609] py27-lint3 run-test: commands[1] | time <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py2/build/srcs/sdks/python/scripts/run_pylint_2to3.sh> Checking for files requiring stage 1 refactoring from futurize No future changes needed Skipping lint for generated files: bigquery_v2_client.py, bigquery_v2_messages.py, dataflow_v1b3_client.py, dataflow_v1b3_messages.py, storage_v1_client.py, storage_v1_messages.py, proto2_coder_test_messages_pb2.py, beam_artifact_api_pb2_grpc.py, beam_artifact_api_pb2.py, beam_artifact_api_pb2_urns.py, beam_expansion_api_pb2_grpc.py, beam_expansion_api_pb2.py, beam_fn_api_pb2_grpc.py, beam_fn_api_pb2.py, beam_fn_api_pb2_urns.py, beam_interactive_api_pb2_grpc.py, beam_interactive_api_pb2.py, beam_job_api_pb2_grpc.py, beam_job_api_pb2.py, beam_job_api_pb2_urns.py, beam_provision_api_pb2_grpc.py, beam_provision_api_pb2.py, beam_runner_api_pb2_grpc.py, beam_runner_api_pb2.py, beam_runner_api_pb2_urns.py, endpoints_pb2_grpc.py, endpoints_pb2.py, external_transforms_pb2_grpc.py, external_transforms_pb2.py, metrics_pb2_grpc.py, metrics_pb2.py, metrics_pb2_urns.py, schema_pb2_grpc.py, schema_pb2.py, standard_window_fns_pb2_grpc.py, standard_window_fns_pb2.py, standard_window_fns_pb2_urns.py Running pylint --py3k for modules apache_beam conftest.py gen_protos.py setup.py test_config.py : Using config file <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py2/build/srcs/sdks/python/.pylintrc> > Task :sdks:python:test-suites:tox:py37:lintPy37 ************* Module apache_beam.runners.interactive.utils apache_beam/runners/interactive/utils.py:25:0: W0611: Unused WindowedValue imported from apache_beam.utils.windowed_value (unused-import) -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, -0.00) Command exited with non-zero status 4 510.06user 17.54system 1:08.37elapsed 771%CPU (0avgtext+0avgdata 471080maxresident)k 5424inputs+304outputs (1major+1167014minor)pagefaults 0swaps ERROR: InvocationError for command /usr/bin/time scripts/run_pylint.sh (exited with code 4) py37-lint run-test-post: commands[0] | <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/scripts/run_tox_cleanup.sh> ___________________________________ summary ____________________________________ ERROR: py37-lint: commands failed > Task :sdks:python:test-suites:tox:py37:lintPy37 FAILED > Task :sdks:python:test-suites:tox:py37:mypyPy37 py37-mypy create: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/target/.tox-py37-mypy/py37-mypy> py37-mypy installdeps: -rbuild-requirements.txt, mypy==0.761 py37-mypy inst: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/target/.tox-py37-mypy/.tmp/package/1/apache-beam.tar.gz> py37-mypy installed: apache-beam==2.21.0.dev0,avro-python3==1.9.2.1,cachetools==3.1.1,certifi==2019.11.28,chardet==3.0.4,crcmod==1.7,dill==0.3.1.1,docopt==0.6.2,fastavro==0.21.24,fasteners==0.15,future==0.16.0,google-api-core==1.16.0,google-apitools==0.5.28,google-auth==1.11.2,google-cloud-bigquery==1.24.0,google-cloud-bigtable==1.0.0,google-cloud-core==1.3.0,google-cloud-datastore==1.7.4,google-cloud-dlp==0.13.0,google-cloud-language==1.3.0,google-cloud-pubsub==1.0.2,google-cloud-spanner==1.13.0,google-cloud-videointelligence==1.13.0,google-cloud-vision==0.42.0,google-resumable-media==0.5.0,googleapis-common-protos==1.51.0,grpc-google-iam-v1==0.12.3,grpcio==1.27.2,grpcio-gcp==0.2.2,grpcio-tools==1.14.2,hdfs==2.5.8,httplib2==0.12.0,idna==2.9,mock==2.0.0,monotonic==1.5,mypy==0.761,mypy-extensions==0.4.3,mypy-protobuf==1.18,numpy==1.18.1,oauth2client==3.0.0,pbr==5.4.4,protobuf==3.11.3,pyarrow==0.15.1,pyasn1==0.4.8,pyasn1-modules==0.2.8,pydot==1.4.1,pymongo==3.10.1,pyparsing==2.4.6,python-dateutil==2.8.1,pytz==2019.3,requests==2.23.0,rsa==4.0,six==1.14.0,typed-ast==1.4.1,typing==3.7.4.1,typing-extensions==3.7.4.1,urllib3==1.25.8 py37-mypy run-test-pre: PYTHONHASHSEED='3991668766' py37-mypy run-test-pre: commands[0] | python --version Python 3.7.3 py37-mypy run-test-pre: commands[1] | pip --version pip 20.0.2 from <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/target/.tox-py37-mypy/py37-mypy/lib/python3.7/site-packages/pip> (python 3.7) py37-mypy run-test-pre: commands[2] | pip check No broken requirements found. py37-mypy run-test-pre: commands[3] | <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/scripts/run_tox_cleanup.sh> py37-mypy run-test: commands[0] | mypy --version mypy 0.761 py37-mypy run-test: commands[1] | - python setup.py mypy running mypy <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/target/.tox-py37-mypy/py37-mypy/lib/python3.7/site-packages/setuptools/dist.py>:476: UserWarning: Normalizing '2.21.0.dev' to '2.21.0.dev0' normalized_version, INFO:gen_protos:Regenerating Python proto definitions (output files are out-of-date). INFO:gen_protos:Found protoc_gen_mypy at <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/target/.tox-py37-mypy/py37-mypy/bin/protoc-gen-mypy> beam_fn_api.proto: warning: Import google/protobuf/descriptor.proto but not used. beam_fn_api.proto: warning: Import google/protobuf/wrappers.proto but not used. beam_interactive_api.proto: warning: Import google/protobuf/timestamp.proto but not used. Writing mypy to external_transforms_pb2.pyi Writing mypy to beam_runner_api_pb2.pyi Writing mypy to standard_window_fns_pb2.pyi Writing mypy to metrics_pb2.pyi Writing mypy to endpoints_pb2.pyi Writing mypy to schema_pb2.pyi Writing mypy to beam_artifact_api_pb2.pyi Writing mypy to beam_expansion_api_pb2.pyi Writing mypy to beam_job_api_pb2.pyi Writing mypy to beam_provision_api_pb2.pyi Writing mypy to beam_fn_api_pb2.pyi Writing mypy to beam_interactive_api_pb2.pyi RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_artifact_api_pb2.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_artifact_api_pb2_grpc.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_artifact_api_pb2_urns.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_expansion_api_pb2.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_expansion_api_pb2_grpc.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_fn_api_pb2.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_fn_api_pb2_grpc.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_fn_api_pb2_urns.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_interactive_api_pb2.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_job_api_pb2.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_job_api_pb2_grpc.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_job_api_pb2_urns.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_provision_api_pb2.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_provision_api_pb2_grpc.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_runner_api_pb2.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_runner_api_pb2_grpc.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_runner_api_pb2_urns.py> RefactoringTool: No changes to <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/endpoints_pb2.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/external_transforms_pb2.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/metrics_pb2.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/metrics_pb2_urns.py> RefactoringTool: No changes to <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/schema_pb2.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/standard_window_fns_pb2.py> RefactoringTool: Refactored <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/standard_window_fns_pb2_urns.py> RefactoringTool: Files that were modified: RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_artifact_api_pb2.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_artifact_api_pb2_grpc.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_artifact_api_pb2_urns.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_expansion_api_pb2.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_expansion_api_pb2_grpc.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_fn_api_pb2.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_fn_api_pb2_grpc.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_fn_api_pb2_urns.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_interactive_api_pb2.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_job_api_pb2.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_job_api_pb2_grpc.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_job_api_pb2_urns.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_provision_api_pb2.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_provision_api_pb2_grpc.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_runner_api_pb2.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_runner_api_pb2_grpc.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_runner_api_pb2_urns.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/endpoints_pb2.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/external_transforms_pb2.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/metrics_pb2.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/metrics_pb2_urns.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/schema_pb2.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/standard_window_fns_pb2.py> RefactoringTool: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/standard_window_fns_pb2_urns.py> INFO:gen_protos:Writing urn stubs: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/metrics_pb2_urns.py> INFO:gen_protos:Writing urn stubs: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_artifact_api_pb2_urns.py> INFO:gen_protos:Writing urn stubs: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/standard_window_fns_pb2_urns.py> INFO:gen_protos:Writing urn stubs: <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/portability/api/beam_runner_api_pb2_urns.py> running egg_info INFO:gen_protos:Skipping proto regeneration: all files up to date writing apache_beam.egg-info/PKG-INFO writing dependency_links to apache_beam.egg-info/dependency_links.txt writing entry points to apache_beam.egg-info/entry_points.txt writing requirements to apache_beam.egg-info/requires.txt writing top-level names to apache_beam.egg-info/top_level.txt reading manifest file 'apache_beam.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'README.md' warning: no files found matching 'NOTICE' warning: no files found matching 'LICENSE' writing manifest file 'apache_beam.egg-info/SOURCES.txt' running build_ext apache_beam/io/filesystem.py:232: error: "None" has no attribute "unused_data" [attr-defined] apache_beam/io/filesystem.py:239: error: "None" has no attribute "unused_data" [attr-defined] apache_beam/io/filesystem.py:242: error: "None" has no attribute "decompress" [attr-defined] apache_beam/io/filesystem.py:255: error: "None" has no attribute "flush" [attr-defined] apache_beam/io/filesystem.py:303: error: "bool" not callable [operator] apache_beam/io/filesystem.py:311: error: "None" has no attribute "flush" [attr-defined] apache_beam/io/filesystem.py:318: error: "None" has no attribute "flush" [attr-defined] apache_beam/utils/timestamp.py:193: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object" [override] apache_beam/utils/timestamp.py:193: note: It is recommended for "__eq__" to work with arbitrary objects, for example: apache_beam/utils/timestamp.py:193: note: def __eq__(self, other: object) -> bool: apache_beam/utils/timestamp.py:193: note: if not isinstance(other, Timestamp): apache_beam/utils/timestamp.py:193: note: return NotImplemented apache_beam/utils/timestamp.py:193: note: return <logic to compare two Timestamp instances> apache_beam/utils/timestamp.py:346: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object" [override] apache_beam/utils/timestamp.py:346: note: It is recommended for "__eq__" to work with arbitrary objects, for example: apache_beam/utils/timestamp.py:346: note: def __eq__(self, other: object) -> bool: apache_beam/utils/timestamp.py:346: note: if not isinstance(other, Duration): apache_beam/utils/timestamp.py:346: note: return NotImplemented apache_beam/utils/timestamp.py:346: note: return <logic to compare two Duration instances> apache_beam/typehints/native_type_compatibility.py:171: error: Module has no attribute "ForwardRef" [attr-defined] apache_beam/typehints/native_type_compatibility.py:173: error: Module has no attribute "_ForwardRef" [attr-defined] apache_beam/coders/coders.py:390: error: Cannot assign to a method [assignment] apache_beam/pvalue.py:307: error: Need type annotation for 'pcoll' [var-annotated] apache_beam/pvalue.py:359: error: Cannot determine type of 'windowfn' [has-type] apache_beam/io/iobase.py:1302: error: Missing return statement [return] apache_beam/io/iobase.py:1310: error: Missing return statement [return] apache_beam/transforms/util.py:664: error: All conditional function variants must have identical signatures [misc] apache_beam/runners/common.py:493: error: "OutputProcessor" has no attribute "start_bundle_outputs" [attr-defined] apache_beam/runners/common.py:501: error: "OutputProcessor" has no attribute "finish_bundle_outputs" [attr-defined] apache_beam/runners/common.py:700: error: Argument 1 to "ThreadsafeWatermarkEstimator" has incompatible type "Optional[Any]"; expected "WatermarkEstimator" [arg-type] apache_beam/runners/common.py:820: error: Item "None" of "Optional[ThreadsafeWatermarkEstimator]" has no attribute "current_watermark" [union-attr] apache_beam/runners/common.py:822: error: Item "None" of "Optional[ThreadsafeWatermarkEstimator]" has no attribute "get_estimator_state" [union-attr] apache_beam/runners/common.py:839: error: Item "None" of "Optional[ThreadsafeWatermarkEstimator]" has no attribute "current_watermark" [union-attr] apache_beam/runners/common.py:841: error: Item "None" of "Optional[ThreadsafeWatermarkEstimator]" has no attribute "get_estimator_state" [union-attr] apache_beam/pipeline.py:424: error: Incompatible types in assignment (expression has type "List[PValue]", target has type "Sequence[Union[PBegin, PCollection[Any]]]") [assignment] apache_beam/pipeline.py:430: error: Incompatible types in assignment (expression has type "PValue", variable has type "PCollection[Any]") [assignment] apache_beam/pipeline.py:660: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "int") [assignment] apache_beam/pipeline.py:669: error: Incompatible types in assignment (expression has type "Optional[int]", variable has type "int") [assignment] apache_beam/pipeline.py:815: error: Item "None" of "Optional[AppliedPTransform]" has no attribute "full_label" [union-attr] apache_beam/pipeline.py:1173: error: Item "RunnerAPIPTransformHolder" of "Union[ParDo, RunnerAPIPTransformHolder]" has no attribute "output_tags" [union-attr] apache_beam/runners/worker/operations.py:842: error: "float" not callable [operator] apache_beam/runners/worker/operations.py:843: error: "float" not callable [operator] apache_beam/runners/worker/operations.py:844: error: "float" not callable [operator] apache_beam/runners/worker/operations.py:846: error: "float" not callable [operator] apache_beam/runners/worker/operations.py:847: error: "float" not callable [operator] apache_beam/runners/worker/operations.py:851: error: Module has no attribute "LATEST_DOUBLES_URN"; maybe "LATEST_DOUBLES_TYPE"? [attr-defined] apache_beam/runners/worker/operations.py:857: error: Module has no attribute "LATEST_DOUBLES_URN"; maybe "LATEST_DOUBLES_TYPE"? [attr-defined] apache_beam/runners/worker/bundle_processor.py:152: error: "ClosableOutputStream" has no attribute "maybe_flush" [attr-defined] apache_beam/runners/worker/bundle_processor.py:219: error: Signature of "try_split" incompatible with supertype "Operation" [override] apache_beam/runners/worker/bundle_processor.py:939: error: 'None' object is not iterable [misc] apache_beam/runners/worker/bundle_processor.py:1467: error: Argument 5 to "StateBackedSideInputMap" has incompatible type "Coder"; expected "WindowedValueCoder" [arg-type] apache_beam/runners/worker/bundle_processor.py:1504: error: Incompatible types in assignment (expression has type "Coder", variable has type "Optional[WindowedValueCoder]") [assignment] apache_beam/runners/portability/fn_api_runner_transforms.py:278: error: Invalid index type "Optional[str]" for "MutableMapping[str, Environment]"; expected type "str" [index] apache_beam/runners/direct/transform_evaluator.py:636: error: Argument 1 to "PBegin" has incompatible type "Optional[Pipeline]"; expected "Pipeline" [arg-type] apache_beam/runners/portability/fn_api_runner.py:905: error: "Stage" has no attribute "context" [attr-defined] apache_beam/runners/portability/fn_api_runner.py:906: error: "Stage" has no attribute "context" [attr-defined] apache_beam/runners/portability/fn_api_runner.py:908: error: "Stage" has no attribute "context" [attr-defined] apache_beam/runners/portability/fn_api_runner.py:1627: error: Item "None" of "Optional[ProvisionInfo]" has no attribute "logging_endpoint" [union-attr] apache_beam/runners/portability/fn_api_runner.py:1628: error: Item "None" of "Optional[ProvisionInfo]" has no attribute "artifact_endpoint" [union-attr] apache_beam/runners/portability/fn_api_runner.py:1629: error: Item "None" of "Optional[ProvisionInfo]" has no attribute "control_endpoint" [union-attr] apache_beam/runners/portability/portable_runner.py:106: error: Argument 2 to "run" of "JobServiceHandle" has incompatible type "Optional[Any]"; expected "str" [arg-type] apache_beam/runners/portability/portable_runner.py:290: error: Incompatible types in assignment (expression has type "ExternalJobServer", variable has type "EmbeddedJobServer") [assignment] apache_beam/runners/portability/portable_runner.py:292: error: Incompatible types in assignment (expression has type "JobServer", variable has type "EmbeddedJobServer") [assignment] apache_beam/ml/gcp/naturallanguageml.py:81: error: Dict entry 1 has incompatible type "str": "Optional[str]"; expected "str": "str" [dict-item] apache_beam/io/flink/flink_streaming_impulse_source.py:71: error: Argument 1 has incompatible type "Callable[[Any, Any], Any]"; expected "Union[type, Callable[[PTransform, bytes, PipelineContext], Any]]" [arg-type] apache_beam/transforms/trigger_test.py:714: error: Need type annotation for 'create_accumulator' [var-annotated] apache_beam/transforms/trigger_test.py:716: error: Need type annotation for 'merge_accumulators' [var-annotated] apache_beam/transforms/combiners_test.py:386: error: All conditional function variants must have identical signatures [misc] apache_beam/ml/gcp/cloud_dlp_test.py:106: error: Name 'TestDeidentifyFn' already defined on line 57 [no-redef] Found 59 errors in 20 files (checked 655 source files) error: mypy exited with status 1 py37-mypy run-test-post: commands[0] | <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/scripts/run_tox_cleanup.sh> ___________________________________ summary ____________________________________ py37-mypy: commands succeeded congratulations :) > Task :sdks:python:test-suites:tox:py2:lintPy27_3 -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) 625.60user 11.45system 1:49.62elapsed 581%CPU (0avgtext+0avgdata 523876maxresident)k 3888inputs+256outputs (0major+1075524minor)pagefaults 0swaps py27-lint3 run-test-post: commands[0] | <https://builds.apache.org/job/beam_PreCommit_PythonLint_Cron/ws/src/sdks/python/test-suites/tox/py2/build/srcs/sdks/python/scripts/run_tox_cleanup.sh> ___________________________________ summary ____________________________________ py27-lint3: commands succeeded congratulations :) > Task :sdks:python:test-suites:tox:py2:lint FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':sdks:python:test-suites:tox:py37:lintPy37'. > Process 'command 'sh'' finished with non-zero exit value 1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.2.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 3m 57s 8 actionable tasks: 8 executed Publishing build scan... https://gradle.com/s/a6wm4a66oambq Build step 'Invoke Gradle script' changed build result to FAILURE Build step 'Invoke Gradle script' marked build as failure --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
