build(deps-dev): bump webpack-cli from 5.1.4 to 6.0.1 in /frontend #2584
Community-TC Integration / Code Review Events checks: unit tests
succeeded
Dec 23, 2024 in 3m 5s
Community-TC (pull_request)
Check python code with pytest
Details
View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster
Task Status
Started: 2024-12-23T14:56:17.290Z
Resolved: 2024-12-23T14:57:17.577Z
Task Execution Time: 1 minute, 287 milliseconds
Task Status: completed
Reason Resolved: completed
RunId: 0
Artifacts
- public/logs/live_backing.log
- public/logs/live.log
[taskcluster 2024-12-23T14:56:17.325Z] Worker Type (proj-relman/generic-worker-ubuntu-24-04) settings:
[taskcluster 2024-12-23T14:56:17.325Z] {
[taskcluster 2024-12-23T14:56:17.325Z] "config": {
[taskcluster 2024-12-23T14:56:17.325Z] "deploymentId": "1ce97b667461a3b3"
[taskcluster 2024-12-23T14:56:17.325Z] },
[taskcluster 2024-12-23T14:56:17.325Z] "generic-worker": {
[taskcluster 2024-12-23T14:56:17.325Z] "config": {
[taskcluster 2024-12-23T14:56:17.325Z] "headlessTasks": false,
[taskcluster 2024-12-23T14:56:17.325Z] "runTasksAsCurrentUser": false
[taskcluster 2024-12-23T14:56:17.325Z] },
[taskcluster 2024-12-23T14:56:17.325Z] "engine": "multiuser",
[taskcluster 2024-12-23T14:56:17.325Z] "go-arch": "amd64",
[taskcluster 2024-12-23T14:56:17.325Z] "go-os": "linux",
[taskcluster 2024-12-23T14:56:17.325Z] "go-version": "go1.23.4",
[taskcluster 2024-12-23T14:56:17.325Z] "release": "https://github.com/taskcluster/taskcluster/releases/tag/v77.0.0",
[taskcluster 2024-12-23T14:56:17.325Z] "revision": "4e04b1997ded4dc7d50c25ccd72d2eee8f5b7f65",
[taskcluster 2024-12-23T14:56:17.325Z] "source": "https://github.com/taskcluster/taskcluster/commits/4e04b1997ded4dc7d50c25ccd72d2eee8f5b7f65",
[taskcluster 2024-12-23T14:56:17.325Z] "version": "77.0.0"
[taskcluster 2024-12-23T14:56:17.325Z] },
[taskcluster 2024-12-23T14:56:17.325Z] "image": "projects/community-tc-workers/global/images/generic-worker-ubuntu-24-04-8d44y714pa2kw7unk7pb",
...(41 lines hidden)...
[taskcluster:warn 2024-12-23T14:56:17.330Z] - -cx
[taskcluster:warn 2024-12-23T14:56:17.330Z] - docker run -t --rm --memory-swap -1 --pids-limit -1 -e RUN_ID -e TASKCLUSTER_INSTANCE_TYPE
[taskcluster:warn 2024-12-23T14:56:17.330Z] -e TASKCLUSTER_ROOT_URL -e TASKCLUSTER_WORKER_LOCATION -e TASK_GROUP_ID -e TASK_ID
[taskcluster:warn 2024-12-23T14:56:17.330Z] 'python:3.12' sh -lxce 'apt-get -qq update && apt-get -qq install -y redis-server
[taskcluster:warn 2024-12-23T14:56:17.330Z] && git clone --quiet https://github.com/mozilla/code-review /src && cd /src
[taskcluster:warn 2024-12-23T14:56:17.330Z] && git checkout 7b6aa34b7f98b6bf5c301ea539529b16f3679252 -b checks && cd /src/tools
[taskcluster:warn 2024-12-23T14:56:17.330Z] && pip install --disable-pip-version-check --no-cache-dir --quiet . && cd /src/events
[taskcluster:warn 2024-12-23T14:56:17.330Z] && pip install --disable-pip-version-check --no-cache-dir --quiet . && pip install
[taskcluster:warn 2024-12-23T14:56:17.330Z] --disable-pip-version-check --no-cache-dir --quiet -r requirements-dev.txt &&
[taskcluster:warn 2024-12-23T14:56:17.330Z] export REDIS_URL='\''redis://localhost:6379/'\'' && redis-server --daemonize
[taskcluster:warn 2024-12-23T14:56:17.330Z] yes && pytest -v'
[taskcluster:warn 2024-12-23T14:56:17.330Z] features:
[taskcluster:warn 2024-12-23T14:56:17.330Z] backingLog: true
[taskcluster:warn 2024-12-23T14:56:17.330Z] liveLog: true
[taskcluster:warn 2024-12-23T14:56:17.330Z] logs:
[taskcluster:warn 2024-12-23T14:56:17.330Z] backing: public/logs/live_backing.log
[taskcluster:warn 2024-12-23T14:56:17.330Z] live: public/logs/live.log
[taskcluster:warn 2024-12-23T14:56:17.330Z] maxRunTime: 3600
[taskcluster:warn 2024-12-23T14:56:17.330Z] onExitStatus:
[taskcluster:warn 2024-12-23T14:56:17.330Z] retry:
[taskcluster:warn 2024-12-23T14:56:17.330Z] - 125
[taskcluster:warn 2024-12-23T14:56:17.330Z] - 128
[taskcluster:warn 2024-12-23T14:56:17.330Z] osGroups:
[taskcluster:warn 2024-12-23T14:56:17.330Z] - docker
[taskcluster:warn 2024-12-23T14:56:17.330Z] priority: lowest
[taskcluster:warn 2024-12-23T14:56:17.330Z] projectId: none
[taskcluster:warn 2024-12-23T14:56:17.330Z] provisionerId: proj-relman
[taskcluster:warn 2024-12-23T14:56:17.330Z] requires: all-completed
[taskcluster:warn 2024-12-23T14:56:17.330Z] retries: 5
[taskcluster:warn 2024-12-23T14:56:17.330Z] routes:
[taskcluster:warn 2024-12-23T14:56:17.330Z] - checks
[taskcluster:warn 2024-12-23T14:56:17.330Z] schedulerId: taskcluster-github
[taskcluster:warn 2024-12-23T14:56:17.330Z] scopes:
[taskcluster:warn 2024-12-23T14:56:17.330Z] - generic-worker:os-group:proj-relman/generic-worker-ubuntu-24-04/docker
[taskcluster:warn 2024-12-23T14:56:17.330Z] tags: {}
[taskcluster:warn 2024-12-23T14:56:17.330Z] taskGroupId: KzKWoNV-Riur7Mv6REBEpg
[taskcluster:warn 2024-12-23T14:56:17.330Z] taskQueueId: proj-relman/generic-worker-ubuntu-24-04
[taskcluster:warn 2024-12-23T14:56:17.330Z] workerType: generic-worker-ubuntu-24-04
[taskcluster:warn 2024-12-23T14:56:17.330Z]
[taskcluster 2024-12-23T14:56:17.936Z] Uploading redirect artifact public/logs/live.log to URL https://community-websocktunnel.services.mozilla.com/us-central1-a.2103906977355974520.60099/log/Ha5u3kVoRv2nId27spN6Qw with mime type "text/plain; charset=utf-8" and expiry 2024-12-23T16:11:17.875Z
[taskcluster 2024-12-23T14:56:18.051Z] Executing command 0: bash -cx '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'\'' sh -lxce '\''apt-get -qq update && apt-get -qq install -y redis-server && git clone --quiet https://github.com/mozilla/code-review /src && cd /src && git checkout 7b6aa34b7f98b6bf5c301ea539529b16f3679252 -b checks && cd /src/tools && pip install --disable-pip-version-check --no-cache-dir --quiet . && cd /src/events && pip install --disable-pip-version-check --no-cache-dir --quiet . && pip install --disable-pip-version-check --no-cache-dir --quiet -r requirements-dev.txt && export REDIS_URL='\''\'\'\''redis://localhost:6379/'\''\'\'\'' && redis-server --daemonize yes && pytest -v'\'
+ 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 sh -lxce 'apt-get -qq update && apt-get -qq install -y redis-server && git clone --quiet https://github.com/mozilla/code-review /src && cd /src && git checkout 7b6aa34b7f98b6bf5c301ea539529b16f3679252 -b checks && cd /src/tools && pip install --disable-pip-version-check --no-cache-dir --quiet . && cd /src/events && pip install --disable-pip-version-check --no-cache-dir --quiet . && pip install --disable-pip-version-check --no-cache-dir --quiet -r requirements-dev.txt && export REDIS_URL='\''redis://localhost:6379/'\'' && redis-server --daemonize yes && pytest -v'
Unable to find image 'python:3.12' locally
3.12: Pulling from library/python
fdf894e782a2: Pulling fs layer
5bd71677db44: Pulling fs layer
551df7f94f9c: Pulling fs layer
ce82e98d553d: Pulling fs layer
53dbba7cf7ca: Pulling fs layer
b167200c1204: Pulling fs layer
8871a2ca0dba: Pulling fs layer
ce82e98d553d: Waiting
53dbba7cf7ca: Waiting
b167200c1204: Waiting
8871a2ca0dba: Waiting
5bd71677db44: Verifying Checksum
5bd71677db44: Download complete
fdf894e782a2: Verifying Checksum
fdf894e782a2: Download complete
551df7f94f9c: Verifying Checksum
551df7f94f9c: Download complete
53dbba7cf7ca: Download complete
8871a2ca0dba: Verifying Checksum
8871a2ca0dba: Download complete
b167200c1204: Verifying Checksum
b167200c1204: Download complete
ce82e98d553d: Verifying Checksum
ce82e98d553d: Download complete
fdf894e782a2: Pull complete
5bd71677db44: Pull complete
551df7f94f9c: Pull complete
ce82e98d553d: Pull complete
53dbba7cf7ca: Pull complete
b167200c1204: Pull complete
8871a2ca0dba: Pull complete
Digest: sha256:752ce4a954589eb94d32849db7ede17ce120945cb71f6feabab3697550932ff9
Status: Downloaded newer image for python:3.12
+ id -u
+ [ 0 -eq 0 ]
+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export PATH
+ [ # ]
+ [ ]
+ id -u
+ [ 0 -eq 0 ]
+ PS1=#
+ [ -d /etc/profile.d ]
+ [ -r /etc/profile.d/*.sh ]
+ unset i
+ [ ]
+ mesg n
+ true
+ apt-get -qq update
+ apt-get -qq install -y redis-server
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libjemalloc2:amd64.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 23969 files and directories currently installed.)
Preparing to unpack .../libjemalloc2_5.3.0-1_amd64.deb ...
Unpacking libjemalloc2:amd64 (5.3.0-1) ...
Selecting previously unselected package liblzf1:amd64.
Preparing to unpack .../liblzf1_3.6-3_amd64.deb ...
Unpacking liblzf1:amd64 (3.6-3) ...
Selecting previously unselected package redis-tools.
Preparing to unpack .../redis-tools_5%3a7.0.15-1~deb12u1_amd64.deb ...
Unpacking redis-tools (5:7.0.15-1~deb12u1) ...
Selecting previously unselected package redis-server.
Preparing to unpack .../redis-server_5%3a7.0.15-1~deb12u1_amd64.deb ...
Unpacking redis-server (5:7.0.15-1~deb12u1) ...
Setting up libjemalloc2:amd64 (5.3.0-1) ...
Setting up liblzf1:amd64 (3.6-3) ...
Setting up redis-tools (5:7.0.15-1~deb12u1) ...
Setting up redis-server (5:7.0.15-1~deb12u1) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Processing triggers for libc-bin (2.36-9+deb12u9) ...
+ git clone --quiet https://github.com/mozilla/code-review /src
+ cd /src
+ git checkout 7b6aa34b7f98b6bf5c301ea539529b16f3679252 -b checks
Switched to a new branch 'checks'
+ cd /src/tools
+ pip install --disable-pip-version-check --no-cache-dir --quiet .
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ cd /src/events
+ pip install --disable-pip-version-check --no-cache-dir --quiet .
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ pip install --disable-pip-version-check --no-cache-dir --quiet -r requirements-dev.txt
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ export REDIS_URL=redis://localhost:6379/
+ redis-server --daemonize yes
+ pytest -v
/usr/local/lib/python3.12/site-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"
warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
============================= test session starts ==============================
platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 -- /usr/local/bin/python3.12
cachedir: .pytest_cache
rootdir: /src
configfile: pyproject.toml
plugins: asyncio-0.25.0, aiohttp-1.0.5
asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=None
collecting ...
collected 19 items
tests/test_bugbug_utils.py::test_risk_analysis_should_trigger PASSED [ 5%]
tests/test_bugbug_utils.py::test_risk_analysis_shouldnt_trigger PASSED [ 10%]
tests/test_bugbug_utils.py::test_should_run_test_selection PASSED [ 15%]
tests/test_bugbug_utils.py::test_start_test_selection PASSED [ 21%]
tests/test_bugbug_utils.py::test_process_push PASSED [ 26%]
tests/test_bugbug_utils.py::test_got_bugbug_test_select_end PASSED [ 31%]
tests/test_bugbug_utils.py::test_got_try_task_end PASSED [ 36%]
tests/test_dockerflow.py::test_get_version_error SKIPPED (async def ...) [ 42%]
tests/test_dockerflow.py::test_get_version SKIPPED (async def functi...) [ 47%]
tests/test_dockerflow.py::test_get_heartbeat SKIPPED (async def func...) [ 52%]
tests/test_dockerflow.py::test_get_lbheartbeat SKIPPED (async def fu...) [ 57%]
tests/test_workflow.py::test_blacklist PASSED [ 63%]
tests/test_workflow.py::test_publish_results_success_mode PASSED [ 68%]
tests/test_workflow.py::test_publish_results_success_mode_missing_base_rev PASSED [ 73%]
tests/test_workflow.py::test_publish_results_test_result_mode PASSED [ 78%]
tests/test_workflow.py::test_repositories PASSED [ 84%]
tests/test_workflow.py::test_publish_results_lando_success PASSED [ 89%]
tests/test_workflow.py::test_publish_results_fail PASSED [ 94%]
tests/test_workflow.py::test_publish_results_lando_general_fail PASSED [100%]
=============================== warnings summary ===============================
events/tests/test_bugbug_utils.py::test_got_bugbug_test_select_end
/usr/local/lib/python3.12/site-packages/jsone/shared.py:97: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
reference = datetime.datetime.utcnow()
events/tests/test_dockerflow.py::test_get_version_error
events/tests/test_dockerflow.py::test_get_version
events/tests/test_dockerflow.py::test_get_heartbeat
events/tests/test_dockerflow.py::test_get_lbheartbeat
/usr/local/lib/python3.12/site-packages/_pytest/python.py:148: PytestUnhandledCoroutineWarning: async def functions are not natively supported and have been skipped.
You need to install a suitable plugin for your async framework, for example:
- anyio
- pytest-asyncio
- pytest-tornasync
- pytest-trio
- pytest-twisted
warnings.warn(PytestUnhandledCoroutineWarning(msg.format(nodeid)))
events/tests/test_workflow.py::test_publish_results_lando_success
events/tests/test_workflow.py::test_publish_results_fail
events/tests/test_workflow.py::test_publish_results_lando_general_fail
/usr/local/lib/python3.12/site-packages/libmozdata/phabricator.py:187: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================== 15 passed, 4 skipped, 8 warnings in 3.74s ===================
2024-12-23 14:57:16 [info ] Removed ssh key
2024-12-23 14:57:16 [info ] Removed ssh key
[taskcluster 2024-12-23T14:57:17.238Z] Exit Code: 0
[taskcluster 2024-12-23T14:57:17.238Z] User Time: 43.615ms
[taskcluster 2024-12-23T14:57:17.238Z] Kernel Time: 35.105ms
[taskcluster 2024-12-23T14:57:17.238Z] Wall Time: 59.186140288s
[taskcluster 2024-12-23T14:57:17.238Z] Result: SUCCEEDED
[taskcluster 2024-12-23T14:57:17.238Z] === Task Finished ===
[taskcluster 2024-12-23T14:57:17.238Z] Task Duration: 59.186567321s
[taskcluster 2024-12-23T14:57:17.340Z] Uploading link artifact public/logs/live.log to artifact public/logs/live_backing.log with expiry 2025-12-23T15:54:12.180Z
Loading