See <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/4629/display/redirect>
Changes: ------------------------------------------ [...truncated 1.34 KB...] Fetching upstream changes from https://github.com/apache/beam.git > git fetch --no-tags --force --progress --depth=1 -- > https://github.com/apache/beam.git +refs/heads/*:refs/remotes/origin/* > +refs/pull/${ghprbPullId}/*:refs/remotes/origin/pr/${ghprbPullId}/* # > timeout=10 > git rev-parse origin/master^{commit} # timeout=10 Checking out Revision 2c6a215b9d87e2b94809d54f75b2dda12eb92c90 (origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 2c6a215b9d87e2b94809d54f75b2dda12eb92c90 # timeout=10 Commit message: "Wesbite fix update booking (#26364)" > git rev-list --no-walk 634bcf1f219f04f19fd7dca5cf85c1aa3bb415fc # timeout=10 First time build. Skipping changelog. No emails were triggered. [EnvInject] - Executing scripts and injecting environment variables after the SCM step. [EnvInject] - Injecting as environment variables the properties content SETUPTOOLS_USE_DISTUTILS=stdlib SPARK_LOCAL_IP=127.0.0.1 [EnvInject] - Variables injected successfully. [Gradle] - Launching build. [src] $ <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/gradlew> --continue --max-workers=8 -Dorg.gradle.jvmargs=-Xms2g -Dorg.gradle.jvmargs=-Xmx6g -Dorg.gradle.vfs.watch=false -Pdocker-pull-licenses :pythonFormatterPreCommit To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.5.1/userguide/gradle_daemon.html#sec:disabling_the_daemon. Daemon will be stopped at the end of the build Configuration on demand is an incubating feature. Gradle Enterprise plugins resolution: https://plugins.gradle.org/m2 Applying com.gradle.CommonCustomUserDataGradlePlugin via init script > Task :buildSrc:compileJava NO-SOURCE > Task :buildSrc:compileGroovy FROM-CACHE > Task :buildSrc:pluginDescriptors > Task :buildSrc:processResources > Task :buildSrc:classes > Task :buildSrc:jar > Task :buildSrc:assemble > Task :buildSrc:spotlessGroovy FROM-CACHE > Task :buildSrc:spotlessGroovyCheck UP-TO-DATE > Task :buildSrc:spotlessGroovyGradle FROM-CACHE > Task :buildSrc:spotlessGroovyGradleCheck UP-TO-DATE > Task :buildSrc:spotlessCheck UP-TO-DATE > Task :buildSrc:pluginUnderTestMetadata > Task :buildSrc:compileTestJava NO-SOURCE > Task :buildSrc:compileTestGroovy NO-SOURCE > Task :buildSrc:processTestResources NO-SOURCE > Task :buildSrc:testClasses UP-TO-DATE > Task :buildSrc:test NO-SOURCE > Task :buildSrc:validatePlugins FROM-CACHE > Task :buildSrc:check UP-TO-DATE > Task :buildSrc:build > Task :sdks:python:setupVirtualenv Collecting pip Using cached pip-23.1-py3-none-any.whl (2.1 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 20.0.2 Uninstalling pip-20.0.2: Successfully uninstalled pip-20.0.2 Successfully installed pip-23.1 Collecting tox==3.20.1 Using cached tox-3.20.1-py2.py3-none-any.whl (83 kB) Requirement already satisfied: setuptools in <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/build/gradleenv/1922375555/lib/python3.8/site-packages> (from -r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 20)) (44.0.0) Collecting setuptools (from -r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 20)) Using cached setuptools-67.7.0-py3-none-any.whl (1.1 MB) Collecting wheel>=0.36.0 (from -r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 21)) Using cached wheel-0.40.0-py3-none-any.whl (64 kB) Collecting grpcio-tools==1.53.0 (from -r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 22)) Using cached grpcio_tools-1.53.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB) Collecting mypy-protobuf==3.4.0 (from -r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 23)) Using cached mypy_protobuf-3.4.0-py3-none-any.whl (15 kB) Collecting distlib==0.3.6 (from -r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 25)) Using cached distlib-0.3.6-py2.py3-none-any.whl (468 kB) Collecting numpy<1.25,>=1.14.3 (from -r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 28)) Using cached numpy-1.24.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB) Collecting filelock>=3.0.0 (from tox==3.20.1) Using cached filelock-3.12.0-py3-none-any.whl (10 kB) Collecting packaging>=14 (from tox==3.20.1) Using cached packaging-23.1-py3-none-any.whl (48 kB) Collecting pluggy>=0.12.0 (from tox==3.20.1) Using cached pluggy-1.0.0-py2.py3-none-any.whl (13 kB) Collecting py>=1.4.17 (from tox==3.20.1) Using cached py-1.11.0-py2.py3-none-any.whl (98 kB) Collecting six>=1.14.0 (from tox==3.20.1) Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting toml>=0.9.4 (from tox==3.20.1) Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB) Collecting virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0 (from tox==3.20.1) Using cached virtualenv-20.22.0-py3-none-any.whl (3.2 MB) Collecting protobuf<5.0dev,>=4.21.6 (from grpcio-tools==1.53.0->-r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 22)) Using cached protobuf-4.22.3-cp37-abi3-manylinux2014_x86_64.whl (302 kB) Collecting grpcio>=1.53.0 (from grpcio-tools==1.53.0->-r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 22)) Using cached grpcio-1.54.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB) Collecting types-protobuf>=3.20.4 (from mypy-protobuf==3.4.0->-r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 23)) Using cached types_protobuf-4.22.0.2-py3-none-any.whl (61 kB) Collecting platformdirs<4,>=3.2 (from virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0->tox==3.20.1) Using cached platformdirs-3.2.0-py3-none-any.whl (14 kB) Installing collected packages: types-protobuf, distlib, wheel, toml, six, setuptools, py, protobuf, pluggy, platformdirs, packaging, numpy, grpcio, filelock, virtualenv, mypy-protobuf, grpcio-tools, tox Attempting uninstall: setuptools Found existing installation: setuptools 44.0.0 Uninstalling setuptools-44.0.0: Successfully uninstalled setuptools-44.0.0 Successfully installed distlib-0.3.6 filelock-3.12.0 grpcio-1.54.0 grpcio-tools-1.53.0 mypy-protobuf-3.4.0 numpy-1.24.2 packaging-23.1 platformdirs-3.2.0 pluggy-1.0.0 protobuf-4.22.3 py-1.11.0 setuptools-67.7.0 six-1.16.0 toml-0.10.2 tox-3.20.1 types-protobuf-4.22.0.2 virtualenv-20.22.0 wheel-0.40.0 > Task :sdks:python:test-suites:tox:py38:setupVirtualenv Collecting pip Using cached pip-23.1-py3-none-any.whl (2.1 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 20.0.2 Uninstalling pip-20.0.2: Successfully uninstalled pip-20.0.2 Successfully installed pip-23.1 Collecting tox==3.20.1 Using cached tox-3.20.1-py2.py3-none-any.whl (83 kB) Requirement already satisfied: setuptools in <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/build/gradleenv/-1227304282/lib/python3.8/site-packages> (from -r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 20)) (44.0.0) Collecting setuptools (from -r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 20)) Using cached setuptools-67.7.0-py3-none-any.whl (1.1 MB) Collecting wheel>=0.36.0 (from -r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 21)) Using cached wheel-0.40.0-py3-none-any.whl (64 kB) Collecting grpcio-tools==1.53.0 (from -r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 22)) Using cached grpcio_tools-1.53.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB) Collecting mypy-protobuf==3.4.0 (from -r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 23)) Using cached mypy_protobuf-3.4.0-py3-none-any.whl (15 kB) Collecting distlib==0.3.6 (from -r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 25)) Using cached distlib-0.3.6-py2.py3-none-any.whl (468 kB) Collecting numpy<1.25,>=1.14.3 (from -r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 28)) Using cached numpy-1.24.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB) Collecting filelock>=3.0.0 (from tox==3.20.1) Using cached filelock-3.12.0-py3-none-any.whl (10 kB) Collecting packaging>=14 (from tox==3.20.1) Using cached packaging-23.1-py3-none-any.whl (48 kB) Collecting pluggy>=0.12.0 (from tox==3.20.1) Using cached pluggy-1.0.0-py2.py3-none-any.whl (13 kB) Collecting py>=1.4.17 (from tox==3.20.1) Using cached py-1.11.0-py2.py3-none-any.whl (98 kB) Collecting six>=1.14.0 (from tox==3.20.1) Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting toml>=0.9.4 (from tox==3.20.1) Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB) Collecting virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0 (from tox==3.20.1) Using cached virtualenv-20.22.0-py3-none-any.whl (3.2 MB) Collecting protobuf<5.0dev,>=4.21.6 (from grpcio-tools==1.53.0->-r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 22)) Using cached protobuf-4.22.3-cp37-abi3-manylinux2014_x86_64.whl (302 kB) Collecting grpcio>=1.53.0 (from grpcio-tools==1.53.0->-r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 22)) Using cached grpcio-1.54.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB) Collecting types-protobuf>=3.20.4 (from mypy-protobuf==3.4.0->-r <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/build-requirements.txt> (line 23)) Using cached types_protobuf-4.22.0.2-py3-none-any.whl (61 kB) Collecting platformdirs<4,>=3.2 (from virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0->tox==3.20.1) Using cached platformdirs-3.2.0-py3-none-any.whl (14 kB) Installing collected packages: types-protobuf, distlib, wheel, toml, six, setuptools, py, protobuf, pluggy, platformdirs, packaging, numpy, grpcio, filelock, virtualenv, mypy-protobuf, grpcio-tools, tox Attempting uninstall: setuptools Found existing installation: setuptools 44.0.0 Uninstalling setuptools-44.0.0: Successfully uninstalled setuptools-44.0.0 Successfully installed distlib-0.3.6 filelock-3.12.0 grpcio-1.54.0 grpcio-tools-1.53.0 mypy-protobuf-3.4.0 numpy-1.24.2 packaging-23.1 platformdirs-3.2.0 pluggy-1.0.0 protobuf-4.22.3 py-1.11.0 setuptools-67.7.0 six-1.16.0 toml-0.10.2 tox-3.20.1 types-protobuf-4.22.0.2 virtualenv-20.22.0 wheel-0.40.0 > Task :sdks:python:sdist org/apache/beam/model/interactive/v1/beam_interactive_api.proto:36:1: warning: Import google/protobuf/timestamp.proto is unused. Writing mypy to org/apache/beam/model/pipeline/v1/external_transforms_pb2.pyi Writing mypy to org/apache/beam/model/pipeline/v1/beam_runner_api_pb2.pyi Writing mypy to org/apache/beam/model/pipeline/v1/standard_window_fns_pb2.pyi Writing mypy to org/apache/beam/model/pipeline/v1/metrics_pb2.pyi Writing mypy to org/apache/beam/model/pipeline/v1/endpoints_pb2.pyi Writing mypy to org/apache/beam/model/pipeline/v1/schema_pb2.pyi Writing mypy to org/apache/beam/model/job_management/v1/beam_artifact_api_pb2.pyi Writing mypy to org/apache/beam/model/job_management/v1/beam_expansion_api_pb2.pyi Writing mypy to org/apache/beam/model/job_management/v1/beam_job_api_pb2.pyi Writing mypy to org/apache/beam/model/fn_execution/v1/beam_provision_api_pb2.pyi Writing mypy to org/apache/beam/model/fn_execution/v1/beam_fn_api_pb2.pyi Writing mypy to org/apache/beam/model/interactive/v1/beam_interactive_api_pb2.pyi <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/build/gradleenv/1922375555/lib/python3.8/site-packages/setuptools/dist.py>:518: InformationOnly: Normalizing '2.48.0.dev' to '2.48.0.dev0' self.metadata.version = self._normalize_version( warning: no files found matching 'README.md' warning: no files found matching 'NOTICE' warning: no files found matching 'LICENSE' warning: no files found matching 'LICENSE.python' warning: sdist: standard file not found: should have one of README, README.rst, README.txt, README.md > Task :sdks:python:test-suites:tox:py38:formatter [1mGLOB sdist-make: <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/test-suites/tox/py38/build/srcs/sdks/python/setup.py> [0m[1mpy3-yapf-check create: <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/test-suites/tox/py38/build/srcs/sdks/python/target/.tox-py3-yapf-check/py3-yapf-check> [0m[1mpy3-yapf-check installdeps: yapf==0.29.0 [0m[1mpy3-yapf-check inst: <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/test-suites/tox/py38/build/srcs/sdks/python/target/.tox-py3-yapf-check/.tmp/package/1/apache-beam-2.48.0.dev0.zip> [0m[1mpy3-yapf-check installed: apache-beam @ file://<https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/test-suites/tox/py38/build/srcs/sdks/python/target/.tox-py3-yapf-check/.tmp/package/1/apache-beam-2.48.0.dev0.zip,attrs==23.1.0,certifi==2022.12.7,cffi==1.15.1,charset-normalizer==3.1.0,cloudpickle==2.2.1,crcmod==1.7,cryptography==40.0.2,deprecation==2.1.0,dill==0.3.1.1,dnspython==2.3.0,docker==6.0.1,docopt==0.6.2,exceptiongroup==1.1.1,execnet==1.9.0,fastavro==1.7.3,fasteners==0.18,freezegun==1.2.2,greenlet==2.0.2,grpcio==1.54.0,hdfs==2.7.0,httplib2==0.21.0,hypothesis==6.72.1,idna==3.4,iniconfig==2.0.0,joblib==1.2.0,mock==5.0.2,numpy==1.24.2,objsize==0.6.1,orjson==3.8.10,packaging==23.1,pandas==1.5.3,parameterized==0.9.0,pluggy==1.0.0,proto-plus==1.22.2,protobuf==4.22.3,psycopg2-binary==2.9.6,pyarrow==11.0.0,pycparser==2.21,pydot==1.4.2,PyHamcrest==1.10.1,pymongo==4.3.3,PyMySQL==1.0.3,pyparsing==3.0.9,pytest==7.3.1,pytest-timeout==2.1.0,pytest-xdist==3.2.1,python-dateutil==2.8.2,pytz==2023.3,PyYAML==6.0,regex==2023.3.23,requests==2.28.2,requests-mock==1.10.0,scikit-learn==1.2.2,scipy==1.10.1,six==1.16.0,sortedcontainers==2.4.0,SQLAlchemy==1.4.47,tenacity==8.2.2,testcontainers==3.7.1,threadpoolctl==3.1.0,tomli==2.0.1,typing_extensions==4.5.0,urllib3==1.26.15,websocket-client==1.5.1,wrapt==1.15.0,yapf==0.29.0,zstandard==0.21.0> [0m[1mpy3-yapf-check run-test-pre: PYTHONHASHSEED='1628487150' [0m[1mpy3-yapf-check run-test-pre: commands[0] | python --version [0mPython 3.8.10 [1mpy3-yapf-check run-test-pre: commands[1] | pip --version [0mpip 23.0.1 from <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/test-suites/tox/py38/build/srcs/sdks/python/target/.tox-py3-yapf-check/py3-yapf-check/lib/python3.8/site-packages/pip> (python 3.8) [1mpy3-yapf-check run-test-pre: commands[2] | pip check [0mNo broken requirements found. [1mpy3-yapf-check run-test-pre: commands[3] | bash <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/test-suites/tox/py38/build/srcs/sdks/python/scripts/run_tox_cleanup.sh> [0m[1mpy3-yapf-check run-test: commands[0] | yapf --version [0myapf 0.29.0 [1mpy3-yapf-check run-test: commands[1] | time yapf --diff --parallel --recursive apache_beam [0m--- apache_beam/examples/inference/tensorflow_imagenet_segmentation.py (original) +++ apache_beam/examples/inference/tensorflow_imagenet_segmentation.py (reformatted) @@ -42,8 +42,7 @@ 'ImageNetLabels.txt', 'https://storage.googleapis.com/download.tensorflow.org/data/ImageNetLabels.txt' # pylint: disable=line-too-long ) - self._imagenet_labels = numpy.array( - open(labels_path).read().splitlines()) + self._imagenet_labels = numpy.array(open(labels_path).read().splitlines()) def process(self, element: PredictionResult) -> Iterable[str]: predicted_class = numpy.argmax(element.inference, axis=-1) Command exited with non-zero status 1 419.71user 2.18system 0:30.25elapsed 1394%CPU (0avgtext+0avgdata 82728maxresident)k 0inputs+0outputs (0major+338117minor)pagefaults 0swaps [31mERROR: InvocationError for command /usr/bin/time yapf --diff --parallel --recursive apache_beam (exited with code 1) [0m[1mpy3-yapf-check run-test-post: commands[0] | bash <https://ci-beam.apache.org/job/beam_PreCommit_PythonFormatter_Cron/ws/src/sdks/python/test-suites/tox/py38/build/srcs/sdks/python/scripts/run_tox_cleanup.sh> [0m___________________________________ summary ____________________________________ [31mERROR: py3-yapf-check: commands failed [0m > Task :sdks:python:test-suites:tox:py38:formatter FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':sdks:python:test-suites:tox:py38:formatter'. > 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. * Get more help at https://help.gradle.org BUILD FAILED in 1m 46s 14 actionable tasks: 8 executed, 4 from cache, 2 up-to-date Build scan background action failed. java.lang.IllegalArgumentException: com.gradle.enterprise.gradleplugin.internal.extension.a is not an interface at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:590) at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:557) at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:230) at java.lang.reflect.WeakCache.get(WeakCache.java:127) at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:419) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:719) at com.gradle.ProxyFactory$ProxyingInvocationHandler.createLocalProxy(ProxyFactory.java:64) at com.gradle.ProxyFactory$ProxyingInvocationHandler.lambda$adaptActionArg$1(ProxyFactory.java:59) at com.gradle.enterprise.gradleplugin.internal.extension.b$3.run(SourceFile:100) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) Publishing build scan... https://gradle.com/s/pn6kn2ke5dn4s 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]
