Read the version using importlib
instead of pkg_resources
#4476
Community-TC Integration / bugbug lint
succeeded
Sep 9, 2024 in 3m 58s
Community-TC (pull_request)
bugbug lint
Details
View task in Taskcluster
View logs in Taskcluster
[taskcluster:warn 2024-09-09T05:44:18.884Z] Converted task definition (conversion performed by d2g):
[taskcluster:warn 2024-09-09T05:44:18.884Z] ---
[taskcluster:warn 2024-09-09T05:44:18.884Z] created: "2024-09-09T05:42:22.095Z"
[taskcluster:warn 2024-09-09T05:44:18.884Z] deadline: "2024-09-09T06:42:22.095Z"
[taskcluster:warn 2024-09-09T05:44:18.884Z] dependencies: []
[taskcluster:warn 2024-09-09T05:44:18.884Z] expires: "2025-09-09T06:42:22.095Z"
[taskcluster:warn 2024-09-09T05:44:18.884Z] extra: {}
[taskcluster:warn 2024-09-09T05:44:18.884Z] metadata:
[taskcluster:warn 2024-09-09T05:44:18.884Z] description: bugbug lint
[taskcluster:warn 2024-09-09T05:44:18.884Z] name: bugbug lint
[taskcluster:warn 2024-09-09T05:44:18.884Z] owner: [email protected]
[taskcluster:warn 2024-09-09T05:44:18.884Z] source: https://github.com/suhaibmujahid/bugbug/raw/7abcbf906d61ca5eda8067e480604b924e30bb47/.taskcluster.yml
[taskcluster:warn 2024-09-09T05:44:18.884Z] payload:
[taskcluster:warn 2024-09-09T05:44:18.884Z] command:
[taskcluster:warn 2024-09-09T05:44:18.884Z] - - bash
[taskcluster:warn 2024-09-09T05:44:18.884Z] - -cx
[taskcluster:warn 2024-09-09T05:44:18.884Z] - podman run -t --rm --memory-swap -1 --pids-limit -1 --ulimit host -e RUN_ID
[taskcluster:warn 2024-09-09T05:44:18.884Z] -e TASKCLUSTER_INSTANCE_TYPE -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION
[taskcluster:warn 2024-09-09T05:44:18.884Z] -e TASK_GROUP_ID -e TASK_ID 'python:3.12' /bin/bash -lcx 'git clone --quiet
[taskcluster:warn 2024-09-09T05:44:18.884Z] https://github.com/suhaibmujahid/bugbug && cd bugbug && git -c advice.detachedHead=false
[taskcluster:warn 2024-09-09T05:44:18.884Z] checkout 7abcbf906d61ca5eda8067e480604b924e30bb47 && pip install --disable-pip-version-check
[taskcluster:warn 2024-09-09T05:44:18.884Z] --no-cache-dir --progress-bar off -r test-requirements.txt && pre-commit run
[taskcluster:warn 2024-09-09T05:44:18.884Z] -a --show-diff-on-failure'
[taskcluster:warn 2024-09-09T05:44:18.884Z] features:
[taskcluster:warn 2024-09-09T05:44:18.884Z] backingLog: true
[taskcluster:warn 2024-09-09T05:44:18.884Z] liveLog: true
[taskcluster:warn 2024-09-09T05:44:18.884Z] logs:
[taskcluster:warn 2024-09-09T05:44:18.884Z] backing: public/logs/live_backing.log
[taskcluster:warn 2024-09-09T05:44:18.884Z] live: public/logs/live.log
[taskcluster:warn 2024-09-09T05:44:18.884Z] maxRunTime: 3600
[taskcluster:warn 2024-09-09T05:44:18.884Z] onExitStatus:
[taskcluster:warn 2024-09-09T05:44:18.884Z] retry:
[taskcluster:warn 2024-09-09T05:44:18.884Z] - 125
[taskcluster:warn 2024-09-09T05:44:18.884Z] - 128
[taskcluster:warn 2024-09-09T05:44:18.884Z] priority: lowest
[taskcluster:warn 2024-09-09T05:44:18.884Z] projectId: none
[taskcluster:warn 2024-09-09T05:44:18.884Z] provisionerId: proj-bugbug
[taskcluster:warn 2024-09-09T05:44:18.884Z] requires: all-completed
[taskcluster:warn 2024-09-09T05:44:18.884Z] retries: 5
[taskcluster:warn 2024-09-09T05:44:18.884Z] routes:
[taskcluster:warn 2024-09-09T05:44:18.884Z] - checks
[taskcluster:warn 2024-09-09T05:44:18.884Z] schedulerId: taskcluster-github
[taskcluster:warn 2024-09-09T05:44:18.884Z] scopes: []
[taskcluster:warn 2024-09-09T05:44:18.884Z] tags: {}
[taskcluster:warn 2024-09-09T05:44:18.884Z] taskGroupId: KEC2gOb2QcC3HvfwenIDFg
[taskcluster:warn 2024-09-09T05:44:18.884Z] taskQueueId: proj-bugbug/batch
[taskcluster:warn 2024-09-09T05:44:18.884Z] workerType: batch
[taskcluster:warn 2024-09-09T05:44:18.884Z]
[taskcluster 2024-09-09T05:44:20.092Z] Uploading redirect artifact public/logs/live.log to URL https://community-websocktunnel.services.mozilla.com/us-central1-b.931465194259035176.60099/log/LoVJgM1gTra2XigOtls2Bw with mime type "text/plain; charset=utf-8" and expiry 2024-09-09T06:59:20.040Z
[taskcluster 2024-09-09T05:44:20.159Z] Executing command 0: bash -cx 'podman run -t --rm --memory-swap -1 --pids-limit -1 --ulimit host -e RUN_ID -e TASKCLUSTER_INSTANCE_TYPE -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION -e TASK_GROUP_ID -e TASK_ID '\''python:3.12'\'' /bin/bash -lcx '\''git clone --quiet https://github.com/suhaibmujahid/bugbug && cd bugbug && git -c advice.detachedHead=false checkout 7abcbf906d61ca5eda8067e480604b924e30bb47 && pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r test-requirements.txt && pre-commit run -a --show-diff-on-failure'\'
+ podman run -t --rm --memory-swap -1 --pids-limit -1 --ulimit host -e RUN_ID -e TASKCLUSTER_INSTANCE_TYPE -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION -e TASK_GROUP_ID -e TASK_ID python:3.12 /bin/bash -lcx 'git clone --quiet https://github.com/suhaibmujahid/bugbug && cd bugbug && git -c advice.detachedHead=false checkout 7abcbf906d61ca5eda8067e480604b924e30bb47 && pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r test-requirements.txt && pre-commit run -a --show-diff-on-failure'
Resolved "python" as an alias (/etc/containers/registries.conf.d/shortnames.conf)
Trying to pull docker.io/library/python:3.12...
Getting image source signatures
Copying blob sha256:2e6afa3f266c11e8960349e7866203a9df478a50362bb5488c45fe39d99b2707
Copying blob sha256:2e66a70da0bec13fb3d492fcdef60fd8a5ef0a1a65c4e8a4909e26742852f0f2
Copying blob sha256:1c8ff076d818ad6b8557e03e10c83657cc716ab287c8380054ff91571c8cae81
Copying blob sha256:d0871d6741a8dcd729852894a8947af3790439a69b905ce34a491a647ffab141
Copying blob sha256:8cd46d290033f265db57fd808ac81c444ec5a5b3f189c3d6d85043b647336913
Copying blob sha256:032d5bff19073949e3df9a288ad2b6579a9a3518593ff798687fbb92dcb58574
Copying blob sha256:dd43c92222e84b32ae0861eceea3f06f16e23de239e493a668a730c3cf9fde34
Copying blob sha256:0c867f41564f479e0f00a7ba3bb696b2301a7cb7b424cfbb5178d81eaf7b7d01
Copying config sha256:3aa52f796435c7f490eeeb2233d7b44b15aee72e110513c3a60c3def45382407
Writing manifest to image destination
++ id -u
+ '[' 0 -eq 0 ']'
+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export PATH
+ '[' '' ']'
+ '[' -d /etc/profile.d ']'
+ for i in /etc/profile.d/*.sh
+ '[' -r '/etc/profile.d/*.sh' ']'
+ unset i
+ '[' /bin/bash ']'
+ '[' -f /root/.bashrc ']'
+ . /root/.bashrc
+ mesg n
+ true
+ git clone --quiet https://github.com/suhaibmujahid/bugbug
+ cd bugbug
+ git -c advice.detachedHead=false checkout 7abcbf906d61ca5eda8067e480604b924e30bb47
HEAD is now at 7abcbf90 Fix the import statement
+ pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r test-requirements.txt
Collecting coverage==7.5.3 (from -r test-requirements.txt (line 1))
Downloading coverage-7.5.3-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.2 kB)
Collecting hypothesis==6.103.0 (from -r test-requirements.txt (line 2))
Downloading hypothesis-6.103.0-py3-none-any.whl.metadata (6.3 kB)
Collecting igraph==0.11.5 (from -r test-requirements.txt (line 3))
Downloading igraph-0.11.5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.9 kB)
Collecting jsonschema==4.22.0 (from -r test-requirements.txt (line 4))
Downloading jsonschema-4.22.0-py3-none-any.whl.metadata (8.2 kB)
Collecting pre-commit==3.7.1 (from -r test-requirements.txt (line 5))
Downloading pre_commit-3.7.1-py2.py3-none-any.whl.metadata (1.3 kB)
Collecting pytest==8.2.1 (from -r test-requirements.txt (line 6))
Downloading pytest-8.2.1-py3-none-any.whl.metadata (7.6 kB)
Collecting pytest-cov==5.0.0 (from -r test-requirements.txt (line 7))
Downloading pytest_cov-5.0.0-py3-none-any.whl.metadata (27 kB)
Collecting pytest-responses==0.5.1 (from -r test-requirements.txt (line 8))
Downloading pytest_responses-0.5.1-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting responses==0.21.0 (from -r test-requirements.txt (line 9))
Downloading responses-0.21.0-py3-none-any.whl.metadata (41 kB)
Collecting attrs>=22.2.0 (from hypothesis==6.103.0->-r test-requirements.txt (line 2))
Downloading attrs-24.2.0-py3-none-any.whl.metadata (11 kB)
Collecting sortedcontainers<3.0.0,>=2.1.0 (from hypothesis==6.103.0->-r test-requirements.txt (line 2))
Downloading sortedcontainers-2.4.0-py2.py3-none-any.whl.metadata (10 kB)
Collecting texttable>=1.6.2 (from igraph==0.11.5->-r test-requirements.txt (line 3))
Downloading texttable-1.7.0-py2.py3-none-any.whl.metadata (9.8 kB)
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema==4.22.0->-r test-requirements.txt (line 4))
Downloading jsonschema_specifications-2023.12.1-py3-none-any.whl.metadata (3.0 kB)
Collecting referencing>=0.28.4 (from jsonschema==4.22.0->-r test-requirements.txt (line 4))
Downloading referencing-0.35.1-py3-none-any.whl.metadata (2.8 kB)
Collecting rpds-py>=0.7.1 (from jsonschema==4.22.0->-r test-requirements.txt (line 4))
Downloading rpds_py-0.20.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.2 kB)
Collecting cfgv>=2.0.0 (from pre-commit==3.7.1->-r test-requirements.txt (line 5))
Downloading cfgv-3.4.0-py2.py3-none-any.whl.metadata (8.5 kB)
Collecting identify>=1.0.0 (from pre-commit==3.7.1->-r test-requirements.txt (line 5))
Downloading identify-2.6.0-py2.py3-none-any.whl.metadata (4.4 kB)
Collecting nodeenv>=0.11.1 (from pre-commit==3.7.1->-r test-requirements.txt (line 5))
Downloading nodeenv-1.9.1-py2.py3-none-any.whl.metadata (21 kB)
Collecting pyyaml>=5.1 (from pre-commit==3.7.1->-r test-requirements.txt (line 5))
Downloading PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
Collecting virtualenv>=20.10.0 (from pre-commit==3.7.1->-r test-requirements.txt (line 5))
Downloading virtualenv-20.26.4-py3-none-any.whl.metadata (4.5 kB)
Collecting iniconfig (from pytest==8.2.1->-r test-requirements.txt (line 6))
Downloading iniconfig-2.0.0-py3-none-any.whl.metadata (2.6 kB)
Collecting packaging (from pytest==8.2.1->-r test-requirements.txt (line 6))
Downloading packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting pluggy<2.0,>=1.5 (from pytest==8.2.1->-r test-requirements.txt (line 6))
Downloading pluggy-1.5.0-py3-none-any.whl.metadata (4.8 kB)
Collecting requests<3.0,>=2.0 (from responses==0.21.0->-r test-requirements.txt (line 9))
Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting urllib3>=1.25.10 (from responses==0.21.0->-r test-requirements.txt (line 9))
Downloading urllib3-2.2.2-py3-none-any.whl.metadata (6.4 kB)
Collecting charset-normalizer<4,>=2 (from requests<3.0,>=2.0->responses==0.21.0->-r test-requirements.txt (line 9))
Downloading charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB)
Collecting idna<4,>=2.5 (from requests<3.0,>=2.0->responses==0.21.0->-r test-requirements.txt (line 9))
Downloading idna-3.8-py3-none-any.whl.metadata (9.9 kB)
Collecting certifi>=2017.4.17 (from requests<3.0,>=2.0->responses==0.21.0->-r test-requirements.txt (line 9))
Downloading certifi-2024.8.30-py3-none-any.whl.metadata (2.2 kB)
Collecting distlib<1,>=0.3.7 (from virtualenv>=20.10.0->pre-commit==3.7.1->-r test-requirements.txt (line 5))
Downloading distlib-0.3.8-py2.py3-none-any.whl.metadata (5.1 kB)
Collecting filelock<4,>=3.12.2 (from virtualenv>=20.10.0->pre-commit==3.7.1->-r test-requirements.txt (line 5))
Downloading filelock-3.16.0-py3-none-any.whl.metadata (3.0 kB)
Collecting platformdirs<5,>=3.9.1 (from virtualenv>=20.10.0->pre-commit==3.7.1->-r test-requirements.txt (line 5))
Downloading platformdirs-4.3.2-py3-none-any.whl.metadata (11 kB)
Downloading coverage-7.5.3-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (236 kB)
Downloading hypothesis-6.103.0-py3-none-any.whl (459 kB)
Downloading igraph-0.11.5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB)
Downloading jsonschema-4.22.0-py3-none-any.whl (88 kB)
Downloading pre_commit-3.7.1-py2.py3-none-any.whl (204 kB)
Downloading pytest-8.2.1-py3-none-any.whl (339 kB)
Downloading pytest_cov-5.0.0-py3-none-any.whl (21 kB)
Downloading pytest_responses-0.5.1-py2.py3-none-any.whl (6.7 kB)
Downloading responses-0.21.0-py3-none-any.whl (45 kB)
Downloading attrs-24.2.0-py3-none-any.whl (63 kB)
Downloading cfgv-3.4.0-py2.py3-none-any.whl (7.2 kB)
Downloading identify-2.6.0-py2.py3-none-any.whl (98 kB)
Downloading jsonschema_specifications-2023.12.1-py3-none-any.whl (18 kB)
Downloading nodeenv-1.9.1-py2.py3-none-any.whl (22 kB)
Downloading pluggy-1.5.0-py3-none-any.whl (20 kB)
Downloading PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (767 kB)
Downloading referencing-0.35.1-py3-none-any.whl (26 kB)
Downloading requests-2.32.3-py3-none-any.whl (64 kB)
Downloading rpds_py-0.20.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (357 kB)
Downloading sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Downloading texttable-1.7.0-py2.py3-none-any.whl (10 kB)
Downloading urllib3-2.2.2-py3-none-any.whl (121 kB)
Downloading virtualenv-20.26.4-py3-none-any.whl (6.0 MB)
Downloading iniconfig-2.0.0-py3-none-any.whl (5.9 kB)
Downloading packaging-24.1-py3-none-any.whl (53 kB)
Downloading certifi-2024.8.30-py3-none-any.whl (167 kB)
Downloading charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (141 kB)
Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
Downloading filelock-3.16.0-py3-none-any.whl (16 kB)
Downloading idna-3.8-py3-none-any.whl (66 kB)
Downloading platformdirs-4.3.2-py3-none-any.whl (18 kB)
Installing collected packages: texttable, sortedcontainers, distlib, urllib3, rpds-py, pyyaml, pluggy, platformdirs, packaging, nodeenv, iniconfig, igraph, idna, identify, filelock, coverage, charset-normalizer, cfgv, certifi, attrs, virtualenv, requests, referencing, pytest, hypothesis, responses, pytest-cov, pre-commit, jsonschema-specifications, pytest-responses, jsonschema
Successfully installed attrs-24.2.0 certifi-2024.8.30 cfgv-3.4.0 charset-normalizer-3.3.2 coverage-7.5.3 distlib-0.3.8 filelock-3.16.0 hypothesis-6.103.0 identify-2.6.0 idna-3.8 igraph-0.11.5 iniconfig-2.0.0 jsonschema-4.22.0 jsonschema-specifications-2023.12.1 nodeenv-1.9.1 packaging-24.1 platformdirs-4.3.2 pluggy-1.5.0 pre-commit-3.7.1 pytest-8.2.1 pytest-cov-5.0.0 pytest-responses-0.5.1 pyyaml-6.0.2 referencing-0.35.1 requests-2.32.3 responses-0.21.0 rpds-py-0.20.0 sortedcontainers-2.4.0 texttable-1.7.0 urllib3-2.2.2 virtualenv-20.26.4
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ pre-commit run -a --show-diff-on-failure
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:[email protected].
[INFO] Initializing environment for https://github.com/astral-sh/ruff-pre-commit.
[INFO] Initializing environment for https://github.com/pycqa/pydocstyle.
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/codespell-project/codespell.
[INFO] Initializing environment for https://github.com/marco-c/taskcluster_yml_validator.
[INFO] Initializing environment for https://github.com/asottile/yesqa.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-mypy.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-mypy:types-pkg_resources==0.1.2,types-python-dateutil==0.1.3,types-PyYAML==5.4.0,types-orjson==0.1.0,types-tabulate==0.1.0,types-requests==0.1.11.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-mypy:types-pkg_resources==0.1.2,types-requests==0.1.11,types-Flask==1.1.0,types-redis==3.5.1,types-python-dateutil==0.1.3,types-orjson==0.1.0,types-tabulate==0.1.0.
[INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/astral-sh/ruff-pre-commit.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pycqa/pydocstyle.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/codespell-project/codespell.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/marco-c/taskcluster_yml_validator.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/asottile/yesqa.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/mirrors-mypy.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/mirrors-mypy.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
prettier.................................................................Passed
ruff.....................................................................Passed
ruff-format..............................................................Passed
pydocstyle...............................................................Passed
check python ast.........................................................Passed
check docstring is first.................................................Passed
check that executables have shebangs.....................................Passed
check for merge conflicts................................................Passed
check for broken symlinks............................(no files to check)Skipped
debug statements (python)................................................Passed
trim trailing whitespace.................................................Passed
check yaml...............................................................Passed
mixed line ending........................................................Passed
python tests naming......................................................Passed
check json...............................................................Passed
fix requirements.txt.....................................................Passed
check vcs permalinks.....................................................Passed
codespell................................................................Passed
taskcluster_yml..........................................................Passed
Strip unnecessary `# noqa`s..............................................Passed
mypy-bugbug..............................................................Passed
mypy-bugbug-http.........................................................Passed
Check for useless excludes...............................................Passed
[taskcluster 2024-09-09T05:46:20.431Z] Exit Code: 0
[taskcluster 2024-09-09T05:46:20.431Z] User Time: 26.170553s
[taskcluster 2024-09-09T05:46:20.431Z] Kernel Time: 4.464505s
[taskcluster 2024-09-09T05:46:20.431Z] Wall Time: 2m0.271897128s
[taskcluster 2024-09-09T05:46:20.431Z] Result: SUCCEEDED
[taskcluster 2024-09-09T05:46:20.431Z] === Task Finished ===
[taskcluster 2024-09-09T05:46:20.431Z] Task Duration: 2m0.272211984s
[taskcluster 2024-09-09T05:46:20.497Z] Uploading link artifact public/logs/live.log to artifact public/logs/live_backing.log with expiry 2025-09-09T06:42:22.095Z
Loading