Bump sqlalchemy from 1.3.24 to 2.0.36 #2512
Open
Community-TC Integration / bugbot tests
failed
Nov 5, 2024 in 4m 33s
Community-TC (pull_request)
bugbot tests
Details
View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster
Task Status
Started: 2024-11-05T16:32:22.138Z
Resolved: 2024-11-05T16:34:28.681Z
Task Execution Time: 2 minutes, 6 seconds, 543 milliseconds
Task Status: failed
Reason Resolved: failed
RunId: 0
Artifacts
- public/logs/live_backing.log
- public/logs/live.log
[taskcluster 2024-11-05T16:32:22.173Z] Worker Type (proj-relman/ci) settings:
[taskcluster 2024-11-05T16:32:22.173Z] {
[taskcluster 2024-11-05T16:32:22.173Z] "config": {
[taskcluster 2024-11-05T16:32:22.173Z] "deploymentId": "ca9be1ec3241fd87"
[taskcluster 2024-11-05T16:32:22.173Z] },
[taskcluster 2024-11-05T16:32:22.173Z] "generic-worker": {
[taskcluster 2024-11-05T16:32:22.173Z] "config": {
[taskcluster 2024-11-05T16:32:22.173Z] "headlessTasks": false,
[taskcluster 2024-11-05T16:32:22.173Z] "runTasksAsCurrentUser": false
[taskcluster 2024-11-05T16:32:22.173Z] },
[taskcluster 2024-11-05T16:32:22.173Z] "engine": "multiuser",
[taskcluster 2024-11-05T16:32:22.173Z] "go-arch": "amd64",
[taskcluster 2024-11-05T16:32:22.173Z] "go-os": "linux",
[taskcluster 2024-11-05T16:32:22.173Z] "go-version": "go1.23.2",
[taskcluster 2024-11-05T16:32:22.173Z] "release": "https://github.com/taskcluster/taskcluster/releases/tag/v74.0.0",
[taskcluster 2024-11-05T16:32:22.173Z] "revision": "fc2ffecedd4c0364ab0a98ae5cc895b94ee8a709",
[taskcluster 2024-11-05T16:32:22.173Z] "source": "https://github.com/taskcluster/taskcluster/commits/fc2ffecedd4c0364ab0a98ae5cc895b94ee8a709",
[taskcluster 2024-11-05T16:32:22.173Z] "version": "74.0.0"
[taskcluster 2024-11-05T16:32:22.173Z] },
[taskcluster 2024-11-05T16:32:22.173Z] "image": "projects/community-tc-workers/global/images/generic-worker-ubuntu-24-04-s40adw6ki8n724herxu4",
...(136 lines hidden)...
HEAD is now at bb5bc7e Bump sqlalchemy from 1.3.24 to 2.0.36
+ 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.3.1
[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] 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-11-05 16:34:18,364 - INFO - Run rule ../bzcleaner.py
2024-11-05 16:34:18,365 - INFO - Run rule ../bzcleaner.py
2024-11-05 16:34:18,365 - INFO - Run rule ../bzcleaner.py
test_description (tests.test_bzcleaner.TestBZClearner) ... ok
test_email_subject (tests.test_bzcleaner.TestBZClearner) ... ok
2024-11-05 16:34:18,365 - INFO - Run rule ../bzcleaner.py
2024-11-05 16:34:18,366 - INFO - Run rule ../bzcleaner.py
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
2024-11-05 16:34:18,366 - INFO - Run rule ../bzcleaner.py
2024-11-05 16:34:18,366 - INFO - Run rule ../bzcleaner.py
2024-11-05 16:34:18,366 - INFO - Run rule inactive_ni_pending.py
test_description (tests.test_bzcleaner.TestBZClearnerClass) ... ok
test_get_bz_params (tests.test_bzcleaner.TestBZClearnerClass) ... ok
2024-11-05 16:34:18,367 - INFO - Run rule inactive_ni_pending.py
2024-11-05 16:34:18,367 - INFO - Run rule inactive_ni_pending.py
test_ignore_date (tests.test_bzcleaner.TestBZClearnerClass) ... ok
2024-11-05 16:34:18,367 - INFO - Run rule inactive_ni_pending.py
2024-11-05 16:34:18,367 - INFO - Run rule inactive_ni_pending.py
test_name (tests.test_bzcleaner.TestBZClearnerClass) ... ok
2024-11-05 16:34:18,368 - INFO - Run rule inactive_ni_pending.py
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) ... /bugbot/bugbot/db.py:259: SAWarning: Object of type <BugChange> not in session, add operation along 'Tool.bugchanges' will not proceed (This warning originated from the Session 'autoflush' process, which was invoked automatically in response to a user-initiated operation.)
session.query(Extra).filter(Extra.extra == extra).one()
ERROR
test_email (tests.test_db.TestDB) ... /bugbot/bugbot/db.py:224: SAWarning: Object of type <Email> not in session, add operation along 'Tool.emails' will not proceed (This warning originated from the Session 'autoflush' process, which was invoked automatically in response to a user-initiated operation.)
return session.query(User).filter(User.email == email).one()
/bugbot/bugbot/db.py:259: SAWarning: Object of type <Email> not in session, add operation along 'User.mails' will not proceed (This warning originated from the Session 'autoflush' process, which was invoked automatically in response to a user-initiated operation.)
session.query(Extra).filter(Extra.extra == extra).one()
ERROR
2024-11-05 16:34:18,964 - INFO - Run rule duplicate_copy_metadata.py
test_get_previously_copied_fields (tests.test_duplicate_copy_metadata.TestDuplicateCopyMetadata) ... ok
2024-11-05 16:34:18,964 - 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-11-05 16:34:25,406 - 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-11-05 16:34:25,425 - 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-11-05 16:34:25,431 - 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-11-05 16:34:25,435 - 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-11-05 16:34:25,437 - 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-11-05 16:34:25,441 - 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-11-05 16:34:25,445 - 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
======================================================================
ERROR: test_bugchange (tests.test_db.TestDB)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/bugbot/tests/test_db.py", line 55, in test_bugchange
db.BugChange.add("A", 123, ts=123456789, extra="")
File "/bugbot/bugbot/db.py", line 107, in add
check(BugChange.__tablename__)
File "/bugbot/bugbot/db.py", line 39, in check
if not engine.dialect.has_table(engine, table_name):
File "<string>", line 2, in has_table
File "/bugbot/.tox/py310/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 89, in cache
return fn(self, con, *args, **kw)
File "/bugbot/.tox/py310/lib/python3.10/site-packages/sqlalchemy/dialects/sqlite/base.py", line 2149, in has_table
self._ensure_has_table_connection(connection)
File "/bugbot/.tox/py310/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 441, in _ensure_has_table_connection
raise exc.ArgumentError(
sqlalchemy.exc.ArgumentError: The argument passed to Dialect.has_table() should be a <class 'sqlalchemy.engine.base.Connection'>, got <class 'sqlalchemy.engine.base.Engine'>. Additionally, the Dialect.has_table() method is for internal dialect use only; please use ``inspect(some_engine).has_table(<tablename>>)`` for public API use.
======================================================================
ERROR: test_email (tests.test_db.TestDB)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/bugbot/tests/test_db.py", line 99, in test_email
db.Email.add("I", ["J", "K"], "L", "Success", ts=123456789)
File "/bugbot/bugbot/db.py", line 347, in add
check(Email.__tablename__)
File "/bugbot/bugbot/db.py", line 39, in check
if not engine.dialect.has_table(engine, table_name):
File "<string>", line 2, in has_table
File "/bugbot/.tox/py310/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 89, in cache
return fn(self, con, *args, **kw)
File "/bugbot/.tox/py310/lib/python3.10/site-packages/sqlalchemy/dialects/sqlite/base.py", line 2149, in has_table
self._ensure_has_table_connection(connection)
File "/bugbot/.tox/py310/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 441, in _ensure_has_table_connection
raise exc.ArgumentError(
sqlalchemy.exc.ArgumentError: The argument passed to Dialect.has_table() should be a <class 'sqlalchemy.engine.base.Connection'>, got <class 'sqlalchemy.engine.base.Engine'>. Additionally, the Dialect.has_table() method is for internal dialect use only; please use ``inspect(some_engine).has_table(<tablename>>)`` for public API use.
----------------------------------------------------------------------
Ran 42 tests in 7.083s
FAILED (errors=2)
py310: exit 1 (8.21 seconds) /bugbot> coverage run --branch --source /bugbot/bugbot -m unittest -v pid=768
py310: FAIL code 1 (24.59=setup[15.69]+cmd[0.59,0.10,8.21] seconds)
evaluation failed :( (24.76 seconds)
[taskcluster 2024-11-05T16:34:28.300Z] Exit Code: 1
[taskcluster 2024-11-05T16:34:28.300Z] User Time: 52.374ms
[taskcluster 2024-11-05T16:34:28.300Z] Kernel Time: 56.739ms
[taskcluster 2024-11-05T16:34:28.300Z] Wall Time: 2m4.722916618s
[taskcluster 2024-11-05T16:34:28.300Z] Result: FAILED
[taskcluster 2024-11-05T16:34:28.301Z] === Task Finished ===
[taskcluster 2024-11-05T16:34:28.301Z] Task Duration: 2m4.723276573s
[taskcluster 2024-11-05T16:34:28.437Z] Uploading link artifact public/logs/live.log to artifact public/logs/live_backing.log with expiry 2025-11-05T17:29:54.921Z
[taskcluster:error] exit status 1
Loading