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 smart API to list issues #2534

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

Update tests

700f709
Select commit
Loading
Failed to load commit list.
Open

New smart API to list issues #2534

Update tests
700f709
Select commit
Loading
Failed to load commit list.
Community-TC Integration / Code Review Events checks: unit tests succeeded Dec 6, 2024 in 3m 35s

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-06T17:00:40.591Z
Resolved: 2024-12-06T17:02:00.572Z
Task Execution Time: 1 minute, 19 seconds, 981 milliseconds
Task Status: completed
Reason Resolved: completed
RunId: 0

Artifacts

- public/logs/live_backing.log
- public/logs/live.log


[taskcluster 2024-12-06T17:00:40.699Z] Worker Type (proj-relman/generic-worker-ubuntu-24-04) settings:
[taskcluster 2024-12-06T17:00:40.699Z]   {
[taskcluster 2024-12-06T17:00:40.699Z]     "config": {
[taskcluster 2024-12-06T17:00:40.699Z]       "deploymentId": "601b89ce4ec2e922"
[taskcluster 2024-12-06T17:00:40.699Z]     },
[taskcluster 2024-12-06T17:00:40.699Z]     "generic-worker": {
[taskcluster 2024-12-06T17:00:40.699Z]       "config": {
[taskcluster 2024-12-06T17:00:40.699Z]         "headlessTasks": false,
[taskcluster 2024-12-06T17:00:40.699Z]         "runTasksAsCurrentUser": false
[taskcluster 2024-12-06T17:00:40.699Z]       },
[taskcluster 2024-12-06T17:00:40.699Z]       "engine": "multiuser",
[taskcluster 2024-12-06T17:00:40.699Z]       "go-arch": "amd64",
[taskcluster 2024-12-06T17:00:40.699Z]       "go-os": "linux",
[taskcluster 2024-12-06T17:00:40.699Z]       "go-version": "go1.23.2",
[taskcluster 2024-12-06T17:00:40.699Z]       "release": "https://github.com/taskcluster/taskcluster/releases/tag/v74.0.0",
[taskcluster 2024-12-06T17:00:40.699Z]       "revision": "fc2ffecedd4c0364ab0a98ae5cc895b94ee8a709",
[taskcluster 2024-12-06T17:00:40.699Z]       "source": "https://github.com/taskcluster/taskcluster/commits/fc2ffecedd4c0364ab0a98ae5cc895b94ee8a709",
[taskcluster 2024-12-06T17:00:40.699Z]       "version": "74.0.0"
[taskcluster 2024-12-06T17:00:40.699Z]     },
[taskcluster 2024-12-06T17:00:40.699Z]     "image": "projects/community-tc-workers/global/images/generic-worker-ubuntu-24-04-ddqyjsebv0cix9iqxo98",

...(102 lines hidden)...

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:2fc3687451585d73c06624d54690baf71c61cc2a144549b5b7dbca60048a5fb2
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/vrigal/code-review /src
+ cd /src
+ git checkout 700f7090ec3355bb443bab11151a0e6266ceefe2 -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:208: 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.24.0, aiohttp-1.0.5
asyncio: mode=Mode.STRICT, default_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 Exception ignored in: <function AbstractConnection.__del__ at 0x72aff13f9760>
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/redis/asyncio/connection.py", line 217, in __del__
    self._close()
  File "/usr/local/lib/python3.12/site-packages/redis/asyncio/connection.py", line 224, in _close
    self._writer.close()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 358, in close
    return self._transport.close()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1210, in close
    super().close()
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 875, in close
    self._loop.call_soon(self._call_connection_lost, None)
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 794, in call_soon
    self._check_closed()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 540, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
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_bugbug_utils.py::test_got_bugbug_test_select_end
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/_pytest/unraisableexception.py:85: PytestUnraisableExceptionWarning: Exception ignored in: <function AbstractConnection.__del__ at 0x72aff13f9760>
  
  Traceback (most recent call last):
    File "/usr/local/lib/python3.12/site-packages/redis/asyncio/connection.py", line 217, in __del__
      self._close()
    File "/usr/local/lib/python3.12/site-packages/redis/asyncio/connection.py", line 224, in _close
      self._writer.close()
    File "/usr/local/lib/python3.12/asyncio/streams.py", line 358, in close
      return self._transport.close()
             ^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1210, in close
      super().close()
    File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 875, in close
      self._loop.call_soon(self._call_connection_lost, None)
    File "/usr/local/lib/python3.12/asyncio/base_events.py", line 794, in call_soon
      self._check_closed()
    File "/usr/local/lib/python3.12/asyncio/base_events.py", line 540, in _check_closed
      raise RuntimeError('Event loop is closed')
  RuntimeError: Event loop is closed
  
    warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

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, 11 warnings in 3.77s ==================
2024-12-06 17:01:58 [info     ] Removed ssh key
2024-12-06 17:01:58 [info     ] Removed ssh key
Exception ignored in: <function AbstractConnection.__del__ at 0x72aff13f9760>
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/redis/asyncio/connection.py", line 217, in __del__
    self._close()
  File "/usr/local/lib/python3.12/site-packages/redis/asyncio/connection.py", line 224, in _close
    self._writer.close()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 358, in close
    return self._transport.close()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1210, in close
    super().close()
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 875, in close
    self._loop.call_soon(self._call_connection_lost, None)
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 794, in call_soon
    self._check_closed()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 540, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
[taskcluster 2024-12-06T17:02:00.193Z]    Exit Code: 0
[taskcluster 2024-12-06T17:02:00.193Z]    User Time: 55.692ms
[taskcluster 2024-12-06T17:02:00.193Z]  Kernel Time: 82.425ms
[taskcluster 2024-12-06T17:02:00.193Z]    Wall Time: 1m18.048666804s
[taskcluster 2024-12-06T17:02:00.193Z]       Result: SUCCEEDED
[taskcluster 2024-12-06T17:02:00.193Z] === Task Finished ===
[taskcluster 2024-12-06T17:02:00.193Z] Task Duration: 1m18.049580487s
[taskcluster 2024-12-06T17:02:00.319Z] Uploading link artifact public/logs/live.log to artifact public/logs/live_backing.log with expiry 2025-12-06T17:58:24.443Z