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

[inactive_reviewer] Create util functions for inactive_reviewer rule #2472

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Added `get_revisions` as a util function

f3852a6
Select commit
Loading
Failed to load commit list.
Draft

[inactive_reviewer] Create util functions for inactive_reviewer rule #2472

Added `get_revisions` as a util function
f3852a6
Select commit
Loading
Failed to load commit list.
Community-TC Integration / bugbot tests succeeded Aug 28, 2024 in 4m 20s

Community-TC (pull_request)

bugbot tests

Details

View task in Taskcluster
View logs in Taskcluster


[taskcluster:warn 2024-08-28T19:42:38.353Z]     https://github.com/taskcluster/taskcluster/tree/main/clients/client-shell#translating-docker-worker-task-definitionpayload-to-generic-worker-task-definitionpayload
[taskcluster:warn 2024-08-28T19:42:38.353Z] 
[taskcluster:warn 2024-08-28T19:42:38.353Z] We recommend that you convert all your Docker Worker tasks to Generic Worker tasks, to ensure
[taskcluster:warn 2024-08-28T19:42:38.353Z] continued support. For this task, see the converted payload below. If you have many tasks that
[taskcluster:warn 2024-08-28T19:42:38.353Z] require conversion, consider using the d2g tool (above) directly. It simply takes a Docker
[taskcluster:warn 2024-08-28T19:42:38.353Z] Worker task payload as input, and outputs a Generic Worker task payload. It can also convert
[taskcluster:warn 2024-08-28T19:42:38.353Z] Docker Worker scopes to equivalent Generic Worker scopes.
[taskcluster:warn 2024-08-28T19:42:38.353Z] 
[taskcluster:warn 2024-08-28T19:42:38.353Z] Converted task definition (conversion performed by d2g):
[taskcluster:warn 2024-08-28T19:42:38.353Z] ---
[taskcluster:warn 2024-08-28T19:42:38.353Z]   created: "2024-08-28T19:40:13.728Z"
[taskcluster:warn 2024-08-28T19:42:38.353Z]   deadline: "2024-08-28T20:40:13.728Z"
[taskcluster:warn 2024-08-28T19:42:38.353Z]   dependencies: []
[taskcluster:warn 2024-08-28T19:42:38.353Z]   expires: "2025-08-28T20:40:13.728Z"
[taskcluster:warn 2024-08-28T19:42:38.353Z]   extra: {}
[taskcluster:warn 2024-08-28T19:42:38.353Z]   metadata:
[taskcluster:warn 2024-08-28T19:42:38.353Z]     description: bugbot tests
[taskcluster:warn 2024-08-28T19:42:38.353Z]     name: bugbot tests
[taskcluster:warn 2024-08-28T19:42:38.353Z]     owner: [email protected]
[taskcluster:warn 2024-08-28T19:42:38.353Z]     source: https://github.com/benjaminmah/bugbot/raw/f3852a6e88633e08ab82b828d2635ff40ccf3382/.taskcluster.yml
[taskcluster:warn 2024-08-28T19:42:38.353Z]   payload:
[taskcluster:warn 2024-08-28T19:42:38.353Z]     command:
[taskcluster:warn 2024-08-28T19:42:38.353Z]     - - bash
[taskcluster:warn 2024-08-28T19:42:38.353Z]       - -cx
[taskcluster:warn 2024-08-28T19:42:38.353Z]       - podman run -t --rm --memory-swap -1 --pids-limit -1 --ulimit host -e COVERALLS_REPO_TOKEN
[taskcluster:warn 2024-08-28T19:42:38.353Z]         -e RUN_ID -e TASKCLUSTER_INSTANCE_TYPE -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION
[taskcluster:warn 2024-08-28T19:42:38.353Z]         -e TASK_GROUP_ID -e TASK_ID -e TOX_ENV 'python:3.10' /bin/bash -lcx 'git clone
[taskcluster:warn 2024-08-28T19:42:38.353Z]         --quiet https://github.com/benjaminmah/bugbot bugbot && cd bugbot && git -c
[taskcluster:warn 2024-08-28T19:42:38.353Z]         advice.detachedHead=false checkout f3852a6e88633e08ab82b828d2635ff40ccf3382
[taskcluster:warn 2024-08-28T19:42:38.353Z]         && pip install --quiet -r requirements-test.txt && pre-commit run --all-files
[taskcluster:warn 2024-08-28T19:42:38.353Z]         --show-diff-on-failure && tox -e $TOX_ENV && coveralls'
[taskcluster:warn 2024-08-28T19:42:38.353Z]     env:
[taskcluster:warn 2024-08-28T19:42:38.353Z]       COVERALLS_REPO_TOKEN: VWnjgqWLHfmgSQMJPFdIRYIG5ontiAGl6
[taskcluster:warn 2024-08-28T19:42:38.353Z]       TOX_ENV: py310
[taskcluster:warn 2024-08-28T19:42:38.353Z]     features:
[taskcluster:warn 2024-08-28T19:42:38.353Z]       backingLog: true
[taskcluster:warn 2024-08-28T19:42:38.353Z]       liveLog: true
[taskcluster:warn 2024-08-28T19:42:38.353Z]     logs:
[taskcluster:warn 2024-08-28T19:42:38.353Z]       backing: public/logs/live_backing.log
[taskcluster:warn 2024-08-28T19:42:38.353Z]       live: public/logs/live.log
[taskcluster:warn 2024-08-28T19:42:38.353Z]     maxRunTime: 3600
[taskcluster:warn 2024-08-28T19:42:38.353Z]     onExitStatus:
[taskcluster:warn 2024-08-28T19:42:38.353Z]       retry:
[taskcluster:warn 2024-08-28T19:42:38.353Z]       - 125
[taskcluster:warn 2024-08-28T19:42:38.353Z]       - 128
[taskcluster:warn 2024-08-28T19:42:38.353Z]   priority: lowest
[taskcluster:warn 2024-08-28T19:42:38.353Z]   projectId: none
[taskcluster:warn 2024-08-28T19:42:38.353Z]   provisionerId: proj-relman
[taskcluster:warn 2024-08-28T19:42:38.353Z]   requires: all-completed
[taskcluster:warn 2024-08-28T19:42:38.353Z]   retries: 5
[taskcluster:warn 2024-08-28T19:42:38.353Z]   routes:
[taskcluster:warn 2024-08-28T19:42:38.353Z]   - checks
[taskcluster:warn 2024-08-28T19:42:38.353Z]   schedulerId: taskcluster-github
[taskcluster:warn 2024-08-28T19:42:38.353Z]   scopes: []
[taskcluster:warn 2024-08-28T19:42:38.353Z]   tags: {}
[taskcluster:warn 2024-08-28T19:42:38.353Z]   taskGroupId: fquEY9kAToqxm-zzIibgxg
[taskcluster:warn 2024-08-28T19:42:38.353Z]   taskQueueId: proj-relman/ci
[taskcluster:warn 2024-08-28T19:42:38.353Z]   workerType: ci
[taskcluster:warn 2024-08-28T19:42:38.353Z] 
[taskcluster 2024-08-28T19:42:39.048Z] Uploading redirect artifact public/logs/live.log to URL https://community-websocktunnel.services.mozilla.com/us-central1-a.1984065621563982789.60099/log/ByUsUGhOQ2SwU_GHp2ogTw with mime type "text/plain; charset=utf-8" and expiry 2024-08-28T20:57:38.992Z
[taskcluster 2024-08-28T19:42:39.143Z] Executing command 0: bash -cx 'podman run -t --rm --memory-swap -1 --pids-limit -1 --ulimit host -e COVERALLS_REPO_TOKEN -e RUN_ID -e TASKCLUSTER_INSTANCE_TYPE -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION -e TASK_GROUP_ID -e TASK_ID -e TOX_ENV '\''python:3.10'\'' /bin/bash -lcx '\''git clone --quiet https://github.com/benjaminmah/bugbot bugbot && cd bugbot && git -c advice.detachedHead=false checkout f3852a6e88633e08ab82b828d2635ff40ccf3382 && pip install --quiet -r requirements-test.txt && pre-commit run --all-files --show-diff-on-failure && tox -e $TOX_ENV && coveralls'\'
+ podman run -t --rm --memory-swap -1 --pids-limit -1 --ulimit host -e COVERALLS_REPO_TOKEN -e RUN_ID -e TASKCLUSTER_INSTANCE_TYPE -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION -e TASK_GROUP_ID -e TASK_ID -e TOX_ENV python:3.10 /bin/bash -lcx 'git clone --quiet https://github.com/benjaminmah/bugbot bugbot && cd bugbot && git -c advice.detachedHead=false checkout f3852a6e88633e08ab82b828d2635ff40ccf3382 && pip install --quiet -r requirements-test.txt && pre-commit run --all-files --show-diff-on-failure && tox -e $TOX_ENV && coveralls'
Resolved "python" as an alias (/etc/containers/registries.conf.d/shortnames.conf)
Trying to pull docker.io/library/python:3.10...
Getting image source signatures
Copying blob sha256:903681d87777d28dc56866a07a2774c3fd5bf65fd734b24c9d0ecd9a13c9f636
Copying blob sha256:787c78da43830be6d988d34c7ee091f98d828516ce5478ca10a4933d655191bf
Copying blob sha256:fedc1ae4a5668313ca9bc3a7dcde1efaac1b21be1a8abd65ab8ba6de2bc2f802
Copying blob sha256:6ed93aa58a52c9abc1ee472f1ac74b73d3adcccc2c30744498fd5f14f3f5d22c
Copying blob sha256:9c3d5faef3abb746eb2a33bfa1085a8ea5ba37d17daa259cae0409c8996c9910
Copying blob sha256:3cbbe86a28c2f6b3c3e0e8c6dcfba369e1ea656cf8daf69be789e0fe2105982b
Copying blob sha256:27c76a968f85ed9e1434931a3ffe103a1f2acefd0b1f8749825f9eb7780f0a8b
Copying blob sha256:1b3529b158acff88f589cc2391ed566e0a6c5a8faa135b0c08ddace5b2817d85
Copying config sha256:177d23d7dd98a40e68670acb8509555f74b3256d56577e63fd2723299b9e608b
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/benjaminmah/bugbot bugbot
+ cd bugbot
+ git -c advice.detachedHead=false checkout f3852a6e88633e08ab82b828d2635ff40ccf3382
HEAD is now at f3852a6 Added `get_revisions` as a util function
+ pip install --quiet -r requirements-test.txt
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 -> 24.2
[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.
[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] 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...
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.....................................................Passed
check vcs permalinks.....................................................Passed
codespell................................................................Passed
taskcluster_yml..........................................................Passed
Strip unnecessary `# noqa`s..............................................Passed
mypy.....................................................................Passed
Check for useless excludes...............................................Passed
+ tox -e py310
py310: install_deps> python -I -m pip install -r requirements.txt -r requirements-dev.txt
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

2024-08-28 19:44:22,834 - INFO - Run rule ../bzcleaner.py

2024-08-28 19:44:22,834 - INFO - Run rule ../bzcleaner.py

2024-08-28 19:44:22,835 - INFO - Run rule ../bzcleaner.py

test_description (tests.test_bzcleaner.TestBZClearner) ... ok

test_email_subject (tests.test_bzcleaner.TestBZClearner) ... ok

test_has_individual_autofix (tests.test_bzcleaner.TestBZClearner) ... ok

2024-08-28 19:44:22,835 - INFO - Run rule ../bzcleaner.py

2024-08-28 19:44:22,835 - INFO - Run rule ../bzcleaner.py

2024-08-28 19:44:22,835 - INFO - Run rule ../bzcleaner.py

2024-08-28 19:44:22,836 - INFO - Run rule ../bzcleaner.py

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

2024-08-28 19:44:22,836 - INFO - Run rule inactive_ni_pending.py

2024-08-28 19:44:22,836 - INFO - Run rule inactive_ni_pending.py

2024-08-28 19:44:22,836 - INFO - Run rule inactive_ni_pending.py

2024-08-28 19:44:22,837 - INFO - Run rule inactive_ni_pending.py

2024-08-28 19:44:22,837 - INFO - Run rule inactive_ni_pending.py

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

2024-08-28 19:44:22,837 - INFO - Run rule inactive_ni_pending.py

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

2024-08-28 19:44:23,293 - INFO - Run rule duplicate_copy_metadata.py

test_get_previously_copied_fields (tests.test_duplicate_copy_metadata.TestDuplicateCopyMetadata) ... ok

2024-08-28 19:44:23,293 - INFO - Run rule no_assignee.py

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

2024-08-28 19:44:28,434 - INFO - Run rule regression_set_status_flags.py

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

2024-08-28 19:44:28,454 - 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)

2024-08-28 19:44:28,457 - 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

2024-08-28 19:44:28,460 - 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

2024-08-28 19:44:28,462 - 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)

2024-08-28 19:44:28,464 - 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)

2024-08-28 19:44:28,467 - 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 5.636s



OK

  py310: OK (32.02=setup[25.07]+cmd[0.38,0.09,6.47] seconds)
  congratulations :) (32.18 seconds)
+ coveralls
Submitting coverage to coveralls.io...
Coverage submitted!
Job ##5222.1
https://coveralls.io/jobs/150526883
[taskcluster 2024-08-28T19:44:34.086Z]    Exit Code: 0
[taskcluster 2024-08-28T19:44:34.086Z]    User Time: 24.421978s
[taskcluster 2024-08-28T19:44:34.086Z]  Kernel Time: 4.080607s
[taskcluster 2024-08-28T19:44:34.086Z]    Wall Time: 1m54.942861009s
[taskcluster 2024-08-28T19:44:34.086Z]       Result: SUCCEEDED
[taskcluster 2024-08-28T19:44:34.087Z] === Task Finished ===
[taskcluster 2024-08-28T19:44:34.087Z] Task Duration: 1m54.943335109s
[taskcluster 2024-08-28T19:44:34.222Z] Uploading link artifact public/logs/live.log to artifact public/logs/live_backing.log with expiry 2025-08-28T20:40:13.728Z