Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[searchfox_api] Handle elements without line number id #4798

Closed
wants to merge 2 commits into from

Added conditional to only include descendants with the line number id

f024506
Select commit
Loading
Failed to load commit list.
Closed

[searchfox_api] Handle elements without line number id #4798

Added conditional to only include descendants with the line number id
f024506
Select commit
Loading
Failed to load commit list.
Community-TC Integration / bugbug lint succeeded Feb 12, 2025 in 5m 13s

Community-TC (pull_request)

bugbug lint

Details

View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster

Task Status

Started: 2025-02-12T17:18:37.047Z
Resolved: 2025-02-12T17:21:11.261Z
Task Execution Time: 2 minutes, 34 seconds, 214 milliseconds
Task Status: completed
Reason Resolved: completed
RunId: 0

Artifacts

- public/logs/live_backing.log
- public/logs/live.log


[taskcluster 2025-02-12T17:18:37.112Z] Worker Type (proj-bugbug/batch) settings:
[taskcluster 2025-02-12T17:18:37.112Z]   {
[taskcluster 2025-02-12T17:18:37.112Z]     "config": {
[taskcluster 2025-02-12T17:18:37.112Z]       "deploymentId": "b777153648df6655"
[taskcluster 2025-02-12T17:18:37.112Z]     },
[taskcluster 2025-02-12T17:18:37.112Z]     "generic-worker": {
[taskcluster 2025-02-12T17:18:37.112Z]       "config": {
[taskcluster 2025-02-12T17:18:37.112Z]         "headlessTasks": false,
[taskcluster 2025-02-12T17:18:37.112Z]         "runTasksAsCurrentUser": false
[taskcluster 2025-02-12T17:18:37.112Z]       },
[taskcluster 2025-02-12T17:18:37.112Z]       "engine": "multiuser",
[taskcluster 2025-02-12T17:18:37.112Z]       "go-arch": "amd64",
[taskcluster 2025-02-12T17:18:37.112Z]       "go-os": "linux",
[taskcluster 2025-02-12T17:18:37.112Z]       "go-version": "go1.23.5",
[taskcluster 2025-02-12T17:18:37.112Z]       "release": "https://github.com/taskcluster/taskcluster/releases/tag/v80.0.0",
[taskcluster 2025-02-12T17:18:37.112Z]       "revision": "01b577eea5805777d14db26f5051fa3f226dfceb",
[taskcluster 2025-02-12T17:18:37.112Z]       "source": "https://github.com/taskcluster/taskcluster/commits/01b577eea5805777d14db26f5051fa3f226dfceb",
[taskcluster 2025-02-12T17:18:37.112Z]       "version": "80.0.0"
[taskcluster 2025-02-12T17:18:37.112Z]     },
[taskcluster 2025-02-12T17:18:37.112Z]     "image": "projects/community-tc-workers/global/images/generic-worker-ubuntu-24-04-phw5kd3e31e4pbpgdax6",

...(109 lines hidden)...

6582c62583ef: Pull complete
bf2c3e352f3d: Pull complete
a99509a32390: Pull complete
d46a03def8d9: Pull complete
4429b810e09e: Pull complete
2a4ca5af09fa: Pull complete
Digest: sha256:3966b81808d864099f802080d897cef36c01550472ab3955fdd716d1c665acd6
Status: Downloaded newer image for python:3.12.3
docker.io/library/python:3.12.3
+ docker run -t --rm --memory-swap -1 --pids-limit -1 -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.3 /bin/bash -lcx 'git clone --quiet https://github.com/benjaminmah/bugbug && cd bugbug && git -c advice.detachedHead=false checkout f0245069baee23876f96756028711161214b1664 && pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r test-requirements.txt && pre-commit run -a --show-diff-on-failure'
++ 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/benjaminmah/bugbug
+ cd bugbug
+ git -c advice.detachedHead=false checkout f0245069baee23876f96756028711161214b1664
HEAD is now at f0245069 Added conditional to only include descendants with the line number id
+ pip install --disable-pip-version-check --no-cache-dir --progress-bar off -r test-requirements.txt
Collecting coverage==7.6.9 (from -r test-requirements.txt (line 1))
  Downloading coverage-7.6.9-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.124.7 (from -r test-requirements.txt (line 2))
  Downloading hypothesis-6.124.7-py3-none-any.whl.metadata (6.3 kB)
Collecting igraph==0.11.8 (from -r test-requirements.txt (line 3))
  Downloading igraph-0.11.8-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.8 kB)
Collecting jsonschema==4.23.0 (from -r test-requirements.txt (line 4))
  Downloading jsonschema-4.23.0-py3-none-any.whl.metadata (7.9 kB)
Collecting pre-commit==4.1.0 (from -r test-requirements.txt (line 5))
  Downloading pre_commit-4.1.0-py2.py3-none-any.whl.metadata (1.3 kB)
Collecting pytest==8.3.4 (from -r test-requirements.txt (line 6))
  Downloading pytest-8.3.4-py3-none-any.whl.metadata (7.5 kB)
Collecting pytest-cov==6.0.0 (from -r test-requirements.txt (line 7))
  Downloading pytest_cov-6.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.124.7->-r test-requirements.txt (line 2))
  Downloading attrs-25.1.0-py3-none-any.whl.metadata (10 kB)
Collecting sortedcontainers<3.0.0,>=2.1.0 (from hypothesis==6.124.7->-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.8->-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.23.0->-r test-requirements.txt (line 4))
  Downloading jsonschema_specifications-2024.10.1-py3-none-any.whl.metadata (3.0 kB)
Collecting referencing>=0.28.4 (from jsonschema==4.23.0->-r test-requirements.txt (line 4))
  Downloading referencing-0.36.2-py3-none-any.whl.metadata (2.8 kB)
Collecting rpds-py>=0.7.1 (from jsonschema==4.23.0->-r test-requirements.txt (line 4))
  Downloading rpds_py-0.22.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.2 kB)
Collecting cfgv>=2.0.0 (from pre-commit==4.1.0->-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==4.1.0->-r test-requirements.txt (line 5))
  Downloading identify-2.6.7-py2.py3-none-any.whl.metadata (4.4 kB)
Collecting nodeenv>=0.11.1 (from pre-commit==4.1.0->-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==4.1.0->-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==4.1.0->-r test-requirements.txt (line 5))
  Downloading virtualenv-20.29.2-py3-none-any.whl.metadata (4.5 kB)
Collecting iniconfig (from pytest==8.3.4->-r test-requirements.txt (line 6))
  Downloading iniconfig-2.0.0-py3-none-any.whl.metadata (2.6 kB)
Collecting packaging (from pytest==8.3.4->-r test-requirements.txt (line 6))
  Downloading packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
Collecting pluggy<2,>=1.5 (from pytest==8.3.4->-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.3.0-py3-none-any.whl.metadata (6.5 kB)
Collecting typing-extensions>=4.4.0 (from referencing>=0.28.4->jsonschema==4.23.0->-r test-requirements.txt (line 4))
  Downloading typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 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.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (35 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.10-py3-none-any.whl.metadata (10 kB)
Collecting certifi>=2017.4.17 (from requests<3.0,>=2.0->responses==0.21.0->-r test-requirements.txt (line 9))
  Downloading certifi-2025.1.31-py3-none-any.whl.metadata (2.5 kB)
Collecting distlib<1,>=0.3.7 (from virtualenv>=20.10.0->pre-commit==4.1.0->-r test-requirements.txt (line 5))
  Downloading distlib-0.3.9-py2.py3-none-any.whl.metadata (5.2 kB)
Collecting filelock<4,>=3.12.2 (from virtualenv>=20.10.0->pre-commit==4.1.0->-r test-requirements.txt (line 5))
  Downloading filelock-3.17.0-py3-none-any.whl.metadata (2.9 kB)
Collecting platformdirs<5,>=3.9.1 (from virtualenv>=20.10.0->pre-commit==4.1.0->-r test-requirements.txt (line 5))
  Downloading platformdirs-4.3.6-py3-none-any.whl.metadata (11 kB)
Downloading coverage-7.6.9-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (239 kB)
Downloading hypothesis-6.124.7-py3-none-any.whl (479 kB)
Downloading igraph-0.11.8-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
Downloading jsonschema-4.23.0-py3-none-any.whl (88 kB)
Downloading pre_commit-4.1.0-py2.py3-none-any.whl (220 kB)
Downloading pytest-8.3.4-py3-none-any.whl (343 kB)
Downloading pytest_cov-6.0.0-py3-none-any.whl (22 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-25.1.0-py3-none-any.whl (63 kB)
Downloading cfgv-3.4.0-py2.py3-none-any.whl (7.2 kB)
Downloading identify-2.6.7-py2.py3-none-any.whl (99 kB)
Downloading jsonschema_specifications-2024.10.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.36.2-py3-none-any.whl (26 kB)
Downloading requests-2.32.3-py3-none-any.whl (64 kB)
Downloading rpds_py-0.22.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (385 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.3.0-py3-none-any.whl (128 kB)
Downloading virtualenv-20.29.2-py3-none-any.whl (4.3 MB)
Downloading iniconfig-2.0.0-py3-none-any.whl (5.9 kB)
Downloading packaging-24.2-py3-none-any.whl (65 kB)
Downloading certifi-2025.1.31-py3-none-any.whl (166 kB)
Downloading charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (145 kB)
Downloading distlib-0.3.9-py2.py3-none-any.whl (468 kB)
Downloading filelock-3.17.0-py3-none-any.whl (16 kB)
Downloading idna-3.10-py3-none-any.whl (70 kB)
Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Installing collected packages: texttable, sortedcontainers, distlib, urllib3, typing-extensions, 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-25.1.0 certifi-2025.1.31 cfgv-3.4.0 charset-normalizer-3.4.1 coverage-7.6.9 distlib-0.3.9 filelock-3.17.0 hypothesis-6.124.7 identify-2.6.7 idna-3.10 igraph-0.11.8 iniconfig-2.0.0 jsonschema-4.23.0 jsonschema-specifications-2024.10.1 nodeenv-1.9.1 packaging-24.2 platformdirs-4.3.6 pluggy-1.5.0 pre-commit-4.1.0 pytest-8.3.4 pytest-cov-6.0.0 pytest-responses-0.5.1 pyyaml-6.0.2 referencing-0.36.2 requests-2.32.3 responses-0.21.0 rpds-py-0.22.3 sortedcontainers-2.4.0 texttable-1.7.0 typing-extensions-4.12.2 urllib3-2.3.0 virtualenv-20.29.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ 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.
[WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version.  Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this.  if it does not -- consider reporting an issue to that repo.
[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.9.0.20240106,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.9.0.20240106.
[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 2025-02-12T17:21:10.642Z]    Exit Code: 0
[taskcluster 2025-02-12T17:21:10.642Z]    User Time: 99.341ms
[taskcluster 2025-02-12T17:21:10.642Z]  Kernel Time: 65.518ms
[taskcluster 2025-02-12T17:21:10.642Z]    Wall Time: 2m32.482115185s
[taskcluster 2025-02-12T17:21:10.642Z]       Result: SUCCEEDED
[taskcluster 2025-02-12T17:21:10.643Z] === Task Finished ===
[taskcluster 2025-02-12T17:21:10.643Z] Task Duration: 2m32.482701701s
[taskcluster 2025-02-12T17:21:10.872Z] Uploading link artifact public/logs/live.log to artifact public/logs/live_backing.log with expiry 2026-02-12T18:15:58.571Z