<#20864 Lint using code_quality_tool fails> Issue ...
# github-notifications
c
#20864 Lint using code_quality_tool fails Issue created by Nishikoh Describe the bug Added new lint for refurb using
code_quality_tool
target. Sometimes this lint fails and sometimes it succeeds. This behavior may be a bug in code_quality_tool or in the lint. Pants version 2.20.0 OS Linux(GitHub Actions Ubuntu 22.04) Additional info error log ``` $ pants --changed-since=origin/main --changed-dependents=transitive lint 102646.91 [INFO] Preserving local process execution dir /tmp/pants-sandbox-klRECX for Searching for
bash
on PATH=/usr/bin/bin/usr/local/bin:/opt/homebrew/bin 102646.92 [INFO] Preserving local process execution dir /tmp/pants-sandbox-aQpQKF for Test binary /bin/bash. 102646.92 [INFO] Preserving local process execution dir /tmp/pants-sandbox-RRxRFc for Test binary /usr/bin/bash. 102646.94 [INFO] Preserving local process execution dir /tmp/pants-sandbox-A22wfv for Searching for
git
on PATH=/usr/bin/bin/usr/local/bin:/opt/homebrew/bin 102651.63 [INFO] Preserving local process execution dir /tmp/pants-sandbox-A8GQ0y for Find interpreter for constraints: CPython!=3.11.0,==3.11.* 102651.76 [INFO] Preserving local process execution dir /tmp/pants-sandbox-iZUXIl for Searching for
tar
on PATH=/usr/bin/bin/usr/local/bin:/opt/homebrew/bin 102651.79 [INFO] Preserving local process execution dir /tmp/pants-sandbox-Tzdbep for Test binary /bin/tar. 102651.82 [INFO] Preserving local process execution dir /tmp/pants-sandbox-z6CG6l for Test binary /usr/bin/tar. 102651.85 [INFO] Preserving local process execution dir /tmp/pants-sandbox-3ptIUZ for Extract shellcheck-v0.8.0.linux.x86_64.tar.gz 102652.13 [INFO] Preserving local process execution dir /tmp/pants-sandbox-qMS9Dz for Detect Shell imports for 3rdparty/python/update_dep.sh 102653.73 [INFO] Starting: Building dockerfile_parser.pex from resource://pants.backend.docker.subsystems/dockerfile.lock 102653.73 [INFO] Preserving local process execution dir /tmp/pants-sandbox-CzXqOp for Building dockerfile_parser.pex from resource://pants.backend.docker.subsystems/dockerfile.lock 102656.91 [INFO] Canceled: Building dockerfile_parser.pex from resource://pants.backend.docker.subsystems/dockerfile.lock 102656.92 [INFO] Preserving local process execution dir /tmp/pants-sandbox-l5K8ZU for Parse Dockerfile. 102656.92 [INFO] Preserving local process execution dir /tmp/pants-sandbox-o66PEK for Parse Dockerfile. 102657.85 [INFO] Preserving local process execution dir /tmp/pants-sandbox-EzzgoC for Parse Dockerfile. 102657.85 [INFO] Preserving local process execution dir /tmp/pants-sandbox-bEr30s for Parse Dockerfile. 102657.97 [INFO] Preserving local process execution dir /tmp/pants-sandbox-2rFVk7 for Parse Dockerfile. 102657.98 [INFO] Preserving local process execution dir /tmp/pants-sandbox-NSsDmU for Parse Dockerfile. 102658.07 [INFO] Preserving local process execution dir /tmp/pants-sandbox-dDQDlC for Parse Dockerfile. 102658.13 [INFO] Preserving local process execution dir /tmp/pants-sandbox-r1o4rc for Parse Dockerfile. 102658.20 [INFO] Preserving local process execution dir /tmp/pants-sandbox-EzlS78 for Parse Dockerfile. 102658.24 [INFO] Preserving local process execution dir /tmp/pants-sandbox-96Mtku for Parse Dockerfile. 102658.35 [INFO] Preserving local process execution dir /tmp/pants-sandbox-Y1YTok for Parse Dockerfile. 102658.38 [INFO] Preserving local process execution dir /tmp/pants-sandbox-bFo5n1 for Parse Dockerfile. 102658.50 [INFO] Preserving local process execution dir /tmp/pants-sandbox-8vWk57 for Parse Dockerfile. 102658.52 [INFO] Preserving local process execution dir /tmp/pants-sandbox-3CLtbO for Parse Dockerfile. 102658.62 [INFO] Preserving local process execution dir /tmp/pants-sandbox-Hzxb3e for Parse Dockerfile. 102658.85 [INFO] Completed: Check for visibility rule violations - visibility succeeded. 102658.85 [INFO] Completed: Check for visibility rule violations - visibility succeeded. 102658.87 [INFO] Starting: Building add_trailing_comma.pex from resource://pants.backend.python.lint.add_trailing_comma/add_trailing_comma.lock 102658.87 [INFO] Preserving local process execution dir /tmp/pants-sandbox-es7OVR for Building add_trailing_comma.pex from resource://pants.backend.python.lint.add_trailing_comma/add_trailing_comma.lock 102658.91 [INFO] Starting: Building pyupgrade.pex 102658.91 [INFO] Preserving local process execution dir /tmp/pants-sandbox-cpsnrD for Building pyupgrade.pex 102658.98 [INFO] Canceled: Building add_trailing_comma.pex from resource://pants.backend.python.lint.add_trailing_comma/add_trailing_comma.lock 102658.98 [INFO] Starting: Building add_trailing_comma.pex from resource://pants.backend.python.lint.add_trailing_comma/add_trailing_comma.lock 102658.98 [INFO] Preserving local process execution dir /tmp/pants-sandbox-ZISLW9 for Building add_trailing_comma.pex from resource://pants.backend.python.lint.add_trailing_comma/add_trailing_comma.lock 102659.66 [INFO] Canceled: Building add_trailing_comma.pex from resource://pants.backend.python.lint.add_trailing_comma/add_trailing_comma.lock 102659.66 [INFO] Starting: Building pydocstyle.pex from resource://pants.backend.python.lint.pydocstyle/pydocstyle.lock 102659.66 [INFO] Preserving local process execution dir /tmp/pants-sandbox-ve7tDB for Building pydocstyle.pex from resource://pants.backend.python.lint.pydocstyle/pydocstyle.lock 102659.71 [INFO] Completed: Lint with Hadolint - hadolint succeeded. 102659.98 [INFO] Canceled: Building pyupgrade.pex 102659.98 [INFO] Starting: Building isort.pex from resource://pants.backend.python.lint.isort/isort.lock 102659.98 [INFO] Preserving local process execution dir /tmp/pants-sandbox-GukM0x for Building isort.pex from resource://pants.backend.python.lint.isort/isort.lock 102700.12 [INFO] Canceled: Building isort.pex from resource://pants.backend.python.lint.isort/isort.lock 102700.12 [INFO] Starting: Building bandit.pex from resource://pants.backend.python.lint.bandit/bandit.lock 102700.12 [INFO] Preserving local process execution dir /tmp/pants-sandbox-uzvKrR for Building bandit.pex from resource://pants.backend.python.lint.bandit/bandit.lock 102700.16 [INFO] Canceled: Building pydocstyle.pex from resource://pants.backend.python.lint.pydocstyle/pydocstyle.lock 102700.16 [INFO] Starting: Building local_dists.pex 102700.16 [INFO] Preserving local process execution dir /tmp/pants-sandbox-ONnmqr for Building local_dists.pex 102700.87 [INFO] Completed: Lint with Pydocstyle - pydocstyle succeeded. 102700.87 [INFO] Completed: Format with docformatter - docformatter made no changes. 102700.96 [INFO] Canceled: Building local_dists.pex 102700.96 [INFO] Starting: Building 1 requirement for ruff.pex from the 3rdparty/python/ruff.lock resolve: ruff>=0.0.287 102700.96 [INFO] Preserving local process execution dir /tmp/pants-sandbox-CeAGDn for Building 1 requirement for ruff.pex from the 3rdparty/python/ruff.lock resolve: ruff>=0.0.287 102700.97 [INFO] Canceled: Building bandit.pex from resource://pants.backend.python.lint.bandit/bandit.lock 102700.97 [INFO] Preserving local process execution dir /tmp/pants-sandbox-OSxz1c for Extract taplo-linux-x86_64.gz 102701.09 [INFO] Completed: Lint with Flake8 - flake8 succeeded. Partition: ['CPython!=3.11.0,==3.11.*'] 102701.16 [INFO] Preserving local process execution dir /tmp/pants-sandbox-3RgefL for Run add-trailing-comma on 63 files. 102701.17 [INFO] Completed: Format with add-trailing-comma - add-trailing-comma made no changes. 102701.17 [INFO] Preserving local process execution dir /tmp/pants-sandbox-j3HxWP for Run Autoflake on 63 files. 102701.23 [INFO] Completed: Lint with Bandit - bandit succeeded. Partition: ['CPython!=3.11.0,==3.11.*'] 102701.31 [INFO] Canceled: Building 1 requirement for ruff.pex from the 3rdparty/python/ruff.lock resolve: ruff>=0.0.287 102701.32 [INFO] Preserving local process execution … pantsbuild/pants