{"language": "Python", "id": 189, "repo_owner": "openvinotoolkit", "repo_name": "open_model_zoo", "head_branch": "ac_sub_evaluation", "workflow_name": "github-actions", "workflow_filename": "accuracy_checker.yml", "workflow_path": ".github/workflows/accuracy_checker.yml", "contributor": "pwolnows", "sha_fail": "07bc10c0e7858b22e9345812af8e6bb6c4ef18be", "sha_success": "76a4c47015ae5c1280dcf23d3d8592df40dbced8", "workflow": "name: github-actions\non: pull_request\njobs:\n accuracy_checker:\n strategy:\n matrix:\n runs-on: [ubuntu-20.04, ubuntu-22.04]\n python-version: [3.8, 3.9, '3.10']\n runs-on: ${{ matrix.runs-on }}\n steps:\n - uses: actions/checkout@v3\n - uses: actions/setup-python@v4\n with:\n python-version: ${{ matrix.python-version }}\n - name: Pip install dependencies\n run: |\n python -m pip install --upgrade pip\n python -m pip install tools/accuracy_checker openvino -r tools/accuracy_checker/requirements-test.in\n - name: python -m pytest tools/accuracy_checker\n run: |\n python -m pytest tools/accuracy_checker\n - name: Pip install and run pylint\n working-directory: ./tools/accuracy_checker\n run: |\n python -m pip install pylint==2.10.2\n PYTHONPATH=. python -m pylint --rcfile=.pylintrc `find -wholename '?*/**/*.py' -not -path \"./tests/*\" -not -path \"./build/*\"`\n", "logs": [{"step_name": "accuracy_checker (ubuntu-20.04, 3.8)/6_Pip install and run pylint.txt", "log": "##[group]Run python -m pip install pylint==2.10.2\n\u001b[36;1mpython -m pip install pylint==2.10.2\u001b[0m\n\u001b[36;1mPYTHONPATH=. python -m pylint --rcfile=.pylintrc `find -wholename '?*/**/*.py' -not -path \"./tests/*\" -not -path \"./build/*\"`\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib\n##[endgroup]\nCollecting pylint==2.10.2\n Downloading pylint-2.10.2-py3-none-any.whl (392 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 392.6/392.6 kB 15.3 MB/s eta 0:00:00\nCollecting platformdirs>=2.2.0 (from pylint==2.10.2)\n Downloading platformdirs-4.1.0-py3-none-any.whl.metadata (11 kB)\nCollecting astroid<2.8,>=2.7.2 (from pylint==2.10.2)\n Downloading astroid-2.7.3-py3-none-any.whl (240 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 240.6/240.6 kB 46.7 MB/s eta 0:00:00\nCollecting isort<6,>=4.2.5 (from pylint==2.10.2)\n Downloading isort-5.13.2-py3-none-any.whl.metadata (12 kB)\nCollecting mccabe<0.7,>=0.6 (from pylint==2.10.2)\n Downloading mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)\nCollecting toml>=0.7.1 (from pylint==2.10.2)\n Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)\nCollecting lazy-object-proxy>=1.4.0 (from astroid<2.8,>=2.7.2->pylint==2.10.2)\n Downloading lazy_object_proxy-1.10.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (7.8 kB)\nCollecting wrapt<1.13,>=1.11 (from astroid<2.8,>=2.7.2->pylint==2.10.2)\n Downloading wrapt-1.12.1.tar.gz (27 kB)\n Installing build dependencies: started\n Installing build dependencies: finished with status 'done'\n Getting requirements to build wheel: started\n Getting requirements to build wheel: finished with status 'done'\n Preparing metadata (pyproject.toml): started\n Preparing metadata (pyproject.toml): finished with status 'done'\nRequirement already satisfied: setuptools>=20.0 in /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages (from astroid<2.8,>=2.7.2->pylint==2.10.2) (56.0.0)\nDownloading isort-5.13.2-py3-none-any.whl (92 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 92.3/92.3 kB 21.2 MB/s eta 0:00:00\nDownloading platformdirs-4.1.0-py3-none-any.whl (17 kB)\nDownloading lazy_object_proxy-1.10.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (66 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 66.4/66.4 kB 16.7 MB/s eta 0:00:00\nBuilding wheels for collected packages: wrapt\n Building wheel for wrapt (pyproject.toml): started\n Building wheel for wrapt (pyproject.toml): finished with status 'done'\n Created wheel for wrapt: filename=wrapt-1.12.1-cp38-cp38-linux_x86_64.whl size=81820 sha256=be1d80d6ab9cc886aa44b352ed5ead61a5f3ec49ae66639ac53a214d9cb2af26\n Stored in directory: /home/runner/.cache/pip/wheels/5f/fd/9e/b6cf5890494cb8ef0b5eaff72e5d55a70fb56316007d6dfe73\nSuccessfully built wrapt\nInstalling collected packages: wrapt, mccabe, toml, platformdirs, lazy-object-proxy, isort, astroid, pylint\nSuccessfully installed astroid-2.7.3 isort-5.13.2 lazy-object-proxy-1.10.0 mccabe-0.6.1 platformdirs-4.1.0 pylint-2.10.2 toml-0.10.2 wrapt-1.12.1\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/astroid/raw_building.py:416: FutureWarning: In the future `np.long` will be defined as the corresponding NumPy scalar.\n getattr(sys.modules[modname], name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/astroid/raw_building.py:416: FutureWarning: In the future `np.long` will be defined as the corresponding NumPy scalar.\n getattr(sys.modules[modname], name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/astroid/raw_building.py:416: FutureWarning: In the future `np.long` will be defined as the corresponding NumPy scalar.\n getattr(sys.modules[modname], name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/astroid/raw_building.py:416: FutureWarning: In the future `np.long` will be defined as the corresponding NumPy scalar.\n getattr(sys.modules[modname], name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/astroid/raw_building.py:416: FutureWarning: In the future `np.long` will be defined as the corresponding NumPy scalar.\n getattr(sys.modules[modname], name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/astroid/raw_building.py:416: FutureWarning: In the future `np.long` will be defined as the corresponding NumPy scalar.\n getattr(sys.modules[modname], name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/astroid/raw_building.py:416: FutureWarning: In the future `np.long` will be defined as the corresponding NumPy scalar.\n getattr(sys.modules[modname], name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/astroid/raw_building.py:416: FutureWarning: In the future `np.long` will be defined as the corresponding NumPy scalar.\n getattr(sys.modules[modname], name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/astroid/raw_building.py:416: FutureWarning: In the future `np.long` will be defined as the corresponding NumPy scalar.\n getattr(sys.modules[modname], name)\n/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/astroid/raw_building.py:416: FutureWarning: In the future `np.long` will be defined as the corresponding NumPy scalar.\n getattr(sys.modules[modname], name)\n************* Module openvino.tools.accuracy_checker.evaluators.model_evaluator\nopenvino/tools/accuracy_checker/evaluators/model_evaluator.py:805:0: C0303: Trailing whitespace (trailing-whitespace)\n\n------------------------------------\nYour code has been rated at 10.00/10\n\n##[error]Process completed with exit code 16.\n"}], "diff": "diff --git a/tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/model_evaluator.py b/tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/model_evaluator.py\nindex adb41abf5..5a310a979 100644\n--- a/tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/model_evaluator.py\n+++ b/tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/model_evaluator.py\n@@ -802,5 +802,4 @@ def get_config_metrics(config):\n # first subset_metrics or matching subsample_size\n metrics = item.get('metrics')\n break\n- \n return config.get('metrics',[]) if (metrics is None) else metrics\n", "difficulty": 0, "changed_files": ["tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/model_evaluator.py"], "commit_link": "https://github.com/openvinotoolkit/open_model_zoo/tree/07bc10c0e7858b22e9345812af8e6bb6c4ef18be"}