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

[New Rule] Detect WorksForMe Bugs #2362

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

Updated rules configuration to target bugs created within the past ye…

664752d
Select commit
Loading
Failed to load commit list.
Open

[New Rule] Detect WorksForMe Bugs #2362

Updated rules configuration to target bugs created within the past ye…
664752d
Select commit
Loading
Failed to load commit list.
Community-TC Integration / bugbot tests succeeded Mar 4, 2024 in 4m 43s

Community-TC (pull_request)

bugbot tests

Details

View task in Taskcluster
View logs in Taskcluster


[taskcluster:warn 2024-03-04T11:25:17.613Z] Converted task definition (conversion performed by d2g):
[taskcluster:warn 2024-03-04T11:25:17.613Z] ---
[taskcluster:warn 2024-03-04T11:25:17.613Z]   created: "2024-03-04T11:23:01.318Z"
[taskcluster:warn 2024-03-04T11:25:17.613Z]   deadline: "2024-03-04T12:23:01.318Z"
[taskcluster:warn 2024-03-04T11:25:17.613Z]   dependencies: []
[taskcluster:warn 2024-03-04T11:25:17.613Z]   expires: "2025-03-04T12:23:01.318Z"
[taskcluster:warn 2024-03-04T11:25:17.613Z]   extra: {}
[taskcluster:warn 2024-03-04T11:25:17.613Z]   metadata:
[taskcluster:warn 2024-03-04T11:25:17.613Z]     description: bugbot tests
[taskcluster:warn 2024-03-04T11:25:17.613Z]     name: bugbot tests
[taskcluster:warn 2024-03-04T11:25:17.613Z]     owner: mcastelluccio@mozilla.com
[taskcluster:warn 2024-03-04T11:25:17.613Z]     source: https://github.com/PromiseFru/bugbot/raw/664752dfeb637e78fe05b7307a5e6a859b40bda5/.taskcluster.yml
[taskcluster:warn 2024-03-04T11:25:17.613Z]   payload:
[taskcluster:warn 2024-03-04T11:25:17.613Z]     command:
[taskcluster:warn 2024-03-04T11:25:17.613Z]     - - bash
[taskcluster:warn 2024-03-04T11:25:17.613Z]       - -cx
[taskcluster:warn 2024-03-04T11:25:17.613Z]       - podman run -t --rm -e COVERALLS_REPO_TOKEN -e RUN_ID -e TASKCLUSTER_ROOT_URL
[taskcluster:warn 2024-03-04T11:25:17.613Z]         -e TASKCLUSTER_WORKER_LOCATION -e TASK_ID -e TOX_ENV 'python:3.10' /bin/bash
[taskcluster:warn 2024-03-04T11:25:17.613Z]         -lcx 'git clone --quiet https://github.com/PromiseFru/bugbot bugbot && cd bugbot
[taskcluster:warn 2024-03-04T11:25:17.613Z]         && git -c advice.detachedHead=false checkout 664752dfeb637e78fe05b7307a5e6a859b40bda5
[taskcluster:warn 2024-03-04T11:25:17.613Z]         && pip install --quiet -r requirements-test.txt && pre-commit run --all-files
[taskcluster:warn 2024-03-04T11:25:17.613Z]         --show-diff-on-failure && tox -e $TOX_ENV && coveralls'
[taskcluster:warn 2024-03-04T11:25:17.613Z]     env:
[taskcluster:warn 2024-03-04T11:25:17.613Z]       COVERALLS_REPO_TOKEN: VWnjgqWLHfmgSQMJPFdIRYIG5ontiAGl6
[taskcluster:warn 2024-03-04T11:25:17.613Z]       TOX_ENV: py310
[taskcluster:warn 2024-03-04T11:25:17.613Z]     features:
[taskcluster:warn 2024-03-04T11:25:17.613Z]       backingLog: true
[taskcluster:warn 2024-03-04T11:25:17.613Z]       liveLog: true
[taskcluster:warn 2024-03-04T11:25:17.613Z]     logs:
[taskcluster:warn 2024-03-04T11:25:17.613Z]       backing: public/logs/live_backing.log
[taskcluster:warn 2024-03-04T11:25:17.613Z]       live: public/logs/live.log
[taskcluster:warn 2024-03-04T11:25:17.613Z]     maxRunTime: 3600
[taskcluster:warn 2024-03-04T11:25:17.613Z]     onExitStatus:
[taskcluster:warn 2024-03-04T11:25:17.613Z]       retry:
[taskcluster:warn 2024-03-04T11:25:17.613Z]       - 125
[taskcluster:warn 2024-03-04T11:25:17.613Z]       - 128
[taskcluster:warn 2024-03-04T11:25:17.613Z]   priority: lowest
[taskcluster:warn 2024-03-04T11:25:17.613Z]   projectId: none
[taskcluster:warn 2024-03-04T11:25:17.613Z]   provisionerId: proj-relman
[taskcluster:warn 2024-03-04T11:25:17.613Z]   requires: all-completed
[taskcluster:warn 2024-03-04T11:25:17.613Z]   retries: 5
[taskcluster:warn 2024-03-04T11:25:17.613Z]   routes:
[taskcluster:warn 2024-03-04T11:25:17.613Z]   - checks
[taskcluster:warn 2024-03-04T11:25:17.613Z]   schedulerId: taskcluster-github
[taskcluster:warn 2024-03-04T11:25:17.613Z]   scopes: []
[taskcluster:warn 2024-03-04T11:25:17.613Z]   tags: {}
[taskcluster:warn 2024-03-04T11:25:17.613Z]   taskGroupId: P1komaffRO-lQY3yClAerw
[taskcluster:warn 2024-03-04T11:25:17.613Z]   taskQueueId: proj-relman/ci
[taskcluster:warn 2024-03-04T11:25:17.613Z]   workerType: ci
[taskcluster:warn 2024-03-04T11:25:17.613Z] 
[taskcluster 2024-03-04T11:25:18.500Z] Uploading redirect artifact public/logs/live.log to URL https://community-websocktunnel.services.mozilla.com/us-central1.2736728124493926863.60099/log/S4jtGxolSQ-qWK2CgSTsvw with mime type "text/plain; charset=utf-8" and expiry 2024-03-04T12:40:18.444Z
[taskcluster 2024-03-04T11:25:18.569Z] Executing command 0: bash -cx 'podman run -t --rm -e COVERALLS_REPO_TOKEN -e RUN_ID -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION -e TASK_ID -e TOX_ENV '\''python:3.10'\'' /bin/bash -lcx '\''git clone --quiet https://github.com/PromiseFru/bugbot bugbot && cd bugbot && git -c advice.detachedHead=false checkout 664752dfeb637e78fe05b7307a5e6a859b40bda5 && 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 -e COVERALLS_REPO_TOKEN -e RUN_ID -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION -e TASK_ID -e TOX_ENV python:3.10 /bin/bash -lcx 'git clone --quiet https://github.com/PromiseFru/bugbot bugbot && cd bugbot && git -c advice.detachedHead=false checkout 664752dfeb637e78fe05b7307a5e6a859b40bda5 && 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:78d5a34402079647b3f5d1b4a135d37cb6167a23b4f15a6c8d416f2f5cf2aa65
Copying blob sha256:2b9b41aaa3c52ab268b47da303015b94ced04a1eb02e58860e58b283404974f4
Copying blob sha256:49b40be4436eff6fe463f6977159dc727df37cabe65ade75c75c1caa3cb0a234
Copying blob sha256:7bb465c2914923b08ae03b7fc67b92a1ef9b09c4c1eb9d6711b22ee6bbb46a00
Copying blob sha256:11402150a57e537c64dc69a28bba37f13acdedd50d8788894398a7b774786e7d
Copying blob sha256:c558fac597f8ecbb7a66712e14912ce1d83b23a92ca8b6ff14eef209ab01aff2
Copying blob sha256:c558fac597f8ecbb7a66712e14912ce1d83b23a92ca8b6ff14eef209ab01aff2
Copying blob sha256:7bb465c2914923b08ae03b7fc67b92a1ef9b09c4c1eb9d6711b22ee6bbb46a00
Copying blob sha256:78d5a34402079647b3f5d1b4a135d37cb6167a23b4f15a6c8d416f2f5cf2aa65
Copying blob sha256:49b40be4436eff6fe463f6977159dc727df37cabe65ade75c75c1caa3cb0a234
Copying blob sha256:11402150a57e537c64dc69a28bba37f13acdedd50d8788894398a7b774786e7d
Copying blob sha256:2b9b41aaa3c52ab268b47da303015b94ced04a1eb02e58860e58b283404974f4
Copying blob sha256:833a11e16f36c23366129c918ae1d86fc298983b90732aef008d82ab00de6233
Copying blob sha256:833a11e16f36c23366129c918ae1d86fc298983b90732aef008d82ab00de6233
Copying blob sha256:e81a4b56efff3a2dc20e84f5e6397ab525bfb41f93037c8462a02812fd2bb2b8
Copying blob sha256:e81a4b56efff3a2dc20e84f5e6397ab525bfb41f93037c8462a02812fd2bb2b8
Copying config sha256:22546fe66182be0806cd35d8fd3b211c7a386f0b0621288099d60e2abe8eb416
Writing manifest to image destination
Storing signatures
++ 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/PromiseFru/bugbot bugbot
+ cd bugbot
+ git -c advice.detachedHead=false checkout 664752dfeb637e78fe05b7307a5e6a859b40bda5
HEAD is now at 664752d Updated rules configuration to target bugs created within the past year but untouched in the last month.
+ 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.0
[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-03-04 11:27:31,715 - INFO - Run rule ../bzcleaner.py

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

2024-03-04 11:27:31,716 - INFO - Run rule ../bzcleaner.py

2024-03-04 11:27:31,716 - INFO - Run rule ../bzcleaner.py

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

2024-03-04 11:27:31,716 - INFO - Run rule ../bzcleaner.py

test_name (tests.test_bzcleaner.TestBZClearner) ... ok

test_subject (tests.test_bzcleaner.TestBZClearner) ... ok

2024-03-04 11:27:31,717 - INFO - Run rule ../bzcleaner.py

2024-03-04 11:27:31,717 - INFO - Run rule ../bzcleaner.py

2024-03-04 11:27:31,717 - INFO - Run rule ../bzcleaner.py

2024-03-04 11:27:31,717 - INFO - Run rule inactive_ni_pending.py

2024-03-04 11:27:31,718 - INFO - Run rule inactive_ni_pending.py

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

2024-03-04 11:27:31,718 - INFO - Run rule inactive_ni_pending.py

2024-03-04 11:27:31,718 - INFO - Run rule inactive_ni_pending.py

2024-03-04 11:27:31,718 - INFO - Run rule inactive_ni_pending.py

2024-03-04 11:27:31,719 - 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-03-04 11:27:32,189 - INFO - Run rule duplicate_copy_metadata.py

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

2024-03-04 11:27:32,190 - 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-03-04 11:27:39,174 - 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-03-04 11:27:39,193 - 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-03-04 11:27:39,196 - 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-03-04 11:27:39,200 - 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-03-04 11:27:39,202 - 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-03-04 11:27:39,205 - 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-03-04 11:27:39,208 - 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 7.495s



OK

  py310: OK (23.64=setup[14.76]+cmd[0.38,0.10,8.40] seconds)
  congratulations :) (23.81 seconds)
+ coveralls
Submitting coverage to coveralls.io...
Coverage submitted!
Job ##4953.1
https://coveralls.io/jobs/137066241
[taskcluster 2024-03-04T11:27:43.803Z]    Exit Code: 0
[taskcluster 2024-03-04T11:27:43.803Z]    User Time: 26.045502s
[taskcluster 2024-03-04T11:27:43.803Z]  Kernel Time: 4.494689s
[taskcluster 2024-03-04T11:27:43.803Z]    Wall Time: 2m25.233260024s
[taskcluster 2024-03-04T11:27:43.803Z]       Result: SUCCEEDED
[taskcluster 2024-03-04T11:27:43.803Z] === Task Finished ===
[taskcluster 2024-03-04T11:27:43.803Z] Task Duration: 2m25.233770857s
[taskcluster 2024-03-04T11:27:43.881Z] Uploading link artifact public/logs/live.log to artifact public/logs/live_backing.log with expiry 2025-03-04T12:23:01.318Z