Added custom pre-commit hook#2499
Open
hrishi-1337 wants to merge 7 commits into
Open
Community-TC Integration / bugbot tests
succeeded
Dec 6, 2025 in 5m 28s
Community-TC (pull_request)
bugbot tests
Details
View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster
Task Status
Started: 2025-12-06T00:11:27.144Z
Resolved: 2025-12-06T00:13:50.244Z
Task Execution Time: 2 minutes, 23 seconds, 100 milliseconds
Task Status: completed
Reason Resolved: completed
RunId: 0
Artifacts
- public/logs/live_backing.log
- public/logs/live.log
[taskcluster 2025-12-06T00:11:27.204Z] Worker Type (proj-relman/ci) settings:
[taskcluster 2025-12-06T00:11:27.204Z] {
[taskcluster 2025-12-06T00:11:27.204Z] "config": {
[taskcluster 2025-12-06T00:11:27.204Z] "deploymentId": "1ac429db7669f687"
[taskcluster 2025-12-06T00:11:27.204Z] },
[taskcluster 2025-12-06T00:11:27.204Z] "generic-worker": {
[taskcluster 2025-12-06T00:11:27.204Z] "config": {
[taskcluster 2025-12-06T00:11:27.204Z] "headlessTasks": false
[taskcluster 2025-12-06T00:11:27.204Z] },
[taskcluster 2025-12-06T00:11:27.204Z] "engine": "multiuser",
[taskcluster 2025-12-06T00:11:27.204Z] "go-arch": "amd64",
[taskcluster 2025-12-06T00:11:27.204Z] "go-os": "linux",
[taskcluster 2025-12-06T00:11:27.204Z] "go-version": "go1.25.5",
[taskcluster 2025-12-06T00:11:27.204Z] "release": "https://github.com/taskcluster/taskcluster/releases/tag/v94.1.1",
[taskcluster 2025-12-06T00:11:27.204Z] "revision": "34be876dfac542c7d9e60124af5634d64f1c8e77",
[taskcluster 2025-12-06T00:11:27.204Z] "source": "https://github.com/taskcluster/taskcluster/commits/34be876dfac542c7d9e60124af5634d64f1c8e77",
[taskcluster 2025-12-06T00:11:27.204Z] "version": "94.1.1"
[taskcluster 2025-12-06T00:11:27.204Z] },
[taskcluster 2025-12-06T00:11:27.204Z] "image": "projects/community-tc-workers/global/images/generic-worker-ubuntu-24-04-cnovaaydelfyokjgyjsa",
[taskcluster 2025-12-06T00:11:27.204Z] "instance-id": "192592822033894093",
[taskcluster 2025-12-06T00:11:27.204Z] "instance-type": "projects/757942385826/machineTypes/n2-standard-4",
[taskcluster 2025-12-06T00:11:27.204Z] "local-ipv4": "10.128.0.31",
[taskcluster 2025-12-06T00:11:27.204Z] "machine-setup": {
[taskcluster 2025-12-06T00:11:27.204Z] "maintainer": "taskcluster-notifications+workers@mozilla.com",
[taskcluster 2025-12-06T00:11:27.204Z] "script": "https://raw.githubusercontent.com/taskcluster/community-tc-config/b5b7c2ad856c144a6759e6e72280c4a958f8a930/imagesets/generic-worker-ubuntu-24-04/bootstrap.sh"
[taskcluster 2025-12-06T00:11:27.204Z] },
[taskcluster 2025-12-06T00:11:27.204Z] "project-id": "community-tc-workers",
[taskcluster 2025-12-06T00:11:27.204Z] "public-hostname": "proj-relman-ci-fqau7yptq2yfc6ywkmqbcw.c.community-tc-workers.internal",
[taskcluster 2025-12-06T00:11:27.204Z] "public-ipv4": "34.28.12.99",
[taskcluster 2025-12-06T00:11:27.204Z] "region": "us-central1",
[taskcluster 2025-12-06T00:11:27.204Z] "zone": "us-central1-f"
[taskcluster 2025-12-06T00:11:27.204Z] }
[taskcluster 2025-12-06T00:11:27.204Z] Task ID: JcbneFAYQde8Yo8AOpHtjg
[taskcluster 2025-12-06T00:11:27.204Z] === Task Starting ===
[taskcluster 2025-12-06T00:11:27.922Z] [d2g] Loading docker image
[taskcluster 2025-12-06T00:11:45.888Z] [d2g] Loaded docker image "docker.io/library/python:3.10"
[taskcluster 2025-12-06T00:11:45.888Z] Executing command 0: docker run -t --name taskcontainer_bMV88oZxTkq3TCtUbB_Asg --memory-swap -1 --pids-limit -1 '--add-host=localhost.localdomain:127.0.0.1' --env-file 'env.list' 'python:3.10' /bin/bash -lcx 'git clone --quiet https://github.com/hrishi-1337/bugbot bugbot && cd bugbot && git -c advice.detachedHead=false checkout f38ed4973db1dc7879a22b6c789e48217a1e09a3 && chmod +x pre-commit/check_json_indentation.py && pip install --quiet -e '\''.[test]'\'' && pre-commit run --all-files --show-diff-on-failure && tox -e $TOX_ENV && coveralls'
++ id -u
+ '[' 0 -eq 0 ']'
+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export PATH
+ '[' '' ']'
+ '[' -d /etc/profile.d ']'
++ run-parts --list --regex '^[a-zA-Z0-9_][a-zA-Z0-9._-]*\.sh$' /etc/profile.d
+ unset i
+ '[' /bin/bash ']'
+ '[' -f /root/.bashrc ']'
+ . /root/.bashrc
+ git clone --quiet https://github.com/hrishi-1337/bugbot bugbot
+ cd bugbot
+ git -c advice.detachedHead=false checkout f38ed4973db1dc7879a22b6c789e48217a1e09a3
HEAD is now at f38ed49 Remove pip install for requirements-test.txt
+ chmod +x pre-commit/check_json_indentation.py
+ pip install --quiet -e '.[test]'
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
[notice] A new release of pip is available: 23.0.1 -> 25.3
[notice] To update, run: pip install --upgrade pip
+ pre-commit run --all-files --show-diff-on-failure
[INFO] Initializing environment for https://github.com/Riverside-Healthcare/djLint.
[INFO] Initializing environment for https://github.com/astral-sh/ruff-pre-commit.
[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:tokenize-rt==4.2.1,types-filelock==3.2.7,types-pytz==2021.3.8,types-python-dateutil==2.8.17,types-PyYAML==6.0.8,types-requests==2.27.30,types-tabulate==0.8.9.
[INFO] Initializing environment for local.
[INFO] Initializing environment for https://github.com/astral-sh/uv-pre-commit.
[INFO] Installing environment for https://github.com/Riverside-Healthcare/djLint.
[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/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 local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/astral-sh/uv-pre-commit.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
djLint linting for Jinja.................................................Passed
djLint linting for Jinja.................................................Passed
ruff.....................................................................Passed
ruff-format..............................................................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.................................(no files to check)Skipped
check vcs permalinks.....................................................Passed
codespell................................................................Passed
taskcluster_yml..........................................................Passed
Strip unnecessary `# noqa`s..............................................Passed
mypy.....................................................................Passed
Check for useless excludes...............................................Passed
Check JSON Indentation Consistency.......................................Passed
uv-lock..................................................................Passed
+ tox -e py310
py310: install_deps> python -I -m pip install '.[dev]'
py310: commands[0]> alembic upgrade head
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> ac0a01dcb3a9, Init the database
py310: commands[1]> coverage erase
py310: commands[2]> coverage run --branch --source /bugbot/bugbot -m unittest -v
test_set_status_flags (tests.test_bug_analyzer.TestSetStatusFlags) ... ok
test_description (tests.test_bzcleaner.TestBZClearner) ... ok
test_email_subject (tests.test_bzcleaner.TestBZClearner) ... ok
test_has_individual_autofix (tests.test_bzcleaner.TestBZClearner) ... ok
test_ignore_date (tests.test_bzcleaner.TestBZClearner) ... ok
test_name (tests.test_bzcleaner.TestBZClearner) ... ok
test_subject (tests.test_bzcleaner.TestBZClearner) ... ok
test_template (tests.test_bzcleaner.TestBZClearner) ... ok
test_description (tests.test_bzcleaner.TestBZClearnerClass) ... ok
test_get_bz_params (tests.test_bzcleaner.TestBZClearnerClass) ... ok
test_ignore_date (tests.test_bzcleaner.TestBZClearnerClass) ... ok
test_name (tests.test_bzcleaner.TestBZClearnerClass) ... ok
test_subject (tests.test_bzcleaner.TestBZClearnerClass) ... ok
test_template (tests.test_bzcleaner.TestBZClearnerClass) ... ok
test_cache (tests.test_cache.TestCache) ... ok
test_dom_lws_calendar (tests.test_calendar.TestICSCalendar)
Test the triage rotation calendar from DOM LWS team. ... ok
test_performance_tools_calendar (tests.test_calendar.TestICSCalendar)
Test the triage rotation calendar from Performance Tools team. ... ok
test_recurring_event (tests.test_calendar.TestICSCalendar)
Test a calendar with a recurring event. ... ok
test_bugchange (tests.test_db.TestDB) ... ok
test_email (tests.test_db.TestDB) ... ok
test_get_previously_copied_fields (tests.test_duplicate_copy_metadata.TestDuplicateCopyMetadata) ... ok
test_nobody (tests.test_email_no_assignee.TestEmailNoAssignee) ... ok
test_escalation (tests.test_escalation.TestEscalation) ... ok
test_str (tests.test_escalation.TestEscalation) ... ok
test_replaceUnicode (tests.test_mail.TestMail) ... ok
test_merge_changes (tests.test_multi_autofixers.TestMultiAutoFixers) ... ok
test_missed_merge_function (tests.test_multi_autofixers.TestMultiAutoFixers) ... ok
test_unsported_rule_in_merge_function (tests.test_multi_autofixers.TestMultiAutoFixers) ... ok
test_add_signatures (tests.test_new_utils.TestUtils) ... ok
test_get_signatures (tests.test_new_utils.TestUtils) ... ok
test_status_changes (tests.test_regression_set_status_flags.TestSetStatusFlags) ... ok
test_get (tests.test_round_robin.TestRoundRobin) ... ok
test_get_ics (tests.test_round_robin.TestRoundRobin) ... ok
test_get_who_to_nag (tests.test_round_robin.TestRoundRobin) ... ok
test_logical_comparison (tests.test_severity.TestSeverity) ... ok
2025-12-06 00:13:42,270 - INFO - Using mock file /bugbot/bugbot/../tests/mocks/https_crash-stats.mozilla.org/api/SuperSearch/GET__facets_size=1000__results_number=0_signature==IPCError-browser | ShutDownKill_signature==OOM | small_signature=^EMPTY: .json
test_get_blocked_signatures (tests.test_topcrash.TestTopcrash) ... ok
test_check_users (tests.test_user_activity.UserActivityTest)
2025-12-06 00:13:42,275 - INFO - Using mock file /bugbot/bugbot/../tests/mocks/https_bugzilla.mozilla.org/rest/user/GET_include_fields=can_login_include_fields=creation_time_include_fields=last_activity_time_include_fiel_ac510acb1e109087e2f8cc7dc76970ca.json
Test the check_users method ... ok
2025-12-06 00:13:42,279 - INFO - Using mock file /bugbot/bugbot/../tests/mocks/https_bugzilla.mozilla.org/rest/user/GET_include_fields=can_login_include_fields=creation_time_include_fields=last_activity_time_include_fiel_561d80df788e2b565356201ffc83bbeb.json
2025-12-06 00:13:42,282 - INFO - Using mock file /bugbot/bugbot/../tests/mocks/https_bugzilla.mozilla.org/rest/user/GET_include_fields=can_login_include_fields=creation_time_include_fields=last_activity_time_include_fiel_0fed22d912a794760085e714c58db05a.json
test_check_users_ignore_bots (tests.test_user_activity.UserActivityTest) ... ok
test_check_users_keep_active (tests.test_user_activity.UserActivityTest)
2025-12-06 00:13:42,285 - INFO - Using mock file /bugbot/bugbot/../tests/mocks/https_bugzilla.mozilla.org/rest/user/GET_include_fields=can_login_include_fields=creation_time_include_fields=last_activity_time_include_fiel_ac510acb1e109087e2f8cc7dc76970ca.json
Test the check_users method with keep_active set to True ... ok
test_get_bz_users_with_status (tests.test_user_activity.UserActivityTest)
2025-12-06 00:13:42,288 - INFO - Using mock file /bugbot/bugbot/../tests/mocks/https_bugzilla.mozilla.org/rest/user/GET_include_fields=can_login_include_fields=creation_time_include_fields=id_include_fields=last_activity_6ab2aafe037af940ec0d7b4fccbc24cb.json
Test the get_bz_users_with_status method ... ok
test_get_status_from_bz_user (tests.test_user_activity.UserActivityTest)
Test the get_status_from_bz_user method ... ok
test_logical_comparison (tests.test_webcompat_priority.TestWebcompatPriority) ... ok
----------------------------------------------------------------------
Ran 42 tests in 6.696s
OK
py310: OK (24.18=setup[15.77]+cmd[0.53,0.10,7.78] seconds)
congratulations :) (24.20 seconds)
+ coveralls
Submitting coverage to coveralls.io...
Coverage submitted!
Job ##5683.1
https://coveralls.io/jobs/175266486
[taskcluster 2025-12-06T00:13:48.919Z] Exit Code: 0
[taskcluster 2025-12-06T00:13:48.919Z] User Time: 79.242ms
[taskcluster 2025-12-06T00:13:48.919Z] Kernel Time: 27.429ms
[taskcluster 2025-12-06T00:13:48.919Z] Wall Time: 2m3.030519523s
[taskcluster 2025-12-06T00:13:48.919Z] Average Available System Memory: 14.06 GiB
[taskcluster 2025-12-06T00:13:48.919Z] Average System Memory Used: 1.56 GiB
[taskcluster 2025-12-06T00:13:48.919Z] Peak System Memory Used: 1.89 GiB
[taskcluster 2025-12-06T00:13:48.919Z] Total System Memory: 15.62 GiB
[taskcluster 2025-12-06T00:13:48.919Z] Result: SUCCEEDED
[taskcluster 2025-12-06T00:13:48.919Z] === Task Finished ===
[taskcluster 2025-12-06T00:13:48.919Z] Task Duration: 2m3.031060943s
Loading