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 Backend checks: unit tests succeeded Dec 6, 2024 in 1m 31s

Community-TC (pull_request)

Check python code with Django tests

Details

View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster

Task Status

Started: 2024-12-06T17:23:00.836Z
Resolved: 2024-12-06T17:24:32.940Z
Task Execution Time: 1 minute, 32 seconds, 104 milliseconds
Task Status: completed
Reason Resolved: completed
RunId: 1

Artifacts

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


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

...(398 lines hidden)...

Forbidden: /v1/diff/1234/issues/
{"Timestamp": 1733505865955815168, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "POST", "path": "/v1/diff/1234/issues/", "uid": 9, "rid": "60385684-f6d0-4df1-a1b7-eeabfdfab425", "t": 0}}
Method Not Allowed: /v1/diff/1234/issues/
.{"Timestamp": 1733505865960761088, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "POST", "path": "/v1/revision/0011101000101001/issues/", "uid": 10, "rid": "932d2ed7-4a10-44a0-9c03-fec654a86a35", "t": 1}}
Not Found: /v1/revision/0011101000101001/issues/
.{"Timestamp": 1733505865966449920, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "POST", "path": "/v1/revision/", "uid": "", "rid": "299c3785-b529-4530-82b5-c2af7da2f9fc", "t": 0}}
Forbidden: /v1/revision/
{"Timestamp": 1733505865972295680, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "POST", "path": "/v1/revision/", "uid": 11, "rid": "1d4d3d5c-f806-4a10-850e-70c6e1239996", "t": 4}}
{"Timestamp": 1733505865977087488, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "POST", "path": "/v1/revision/", "uid": 11, "rid": "81e5e394-9827-487f-ad26-1744edf9c4c6", "t": 2}}
.{"Timestamp": 1733505865988630784, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "POST", "path": "/v1/revision/", "uid": 12, "rid": "3d380ea1-0ed4-418e-b260-0f7980c1a9ba", "t": 4}}
.{"Timestamp": 1733505865998804480, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "POST", "path": "/v1/revision/", "uid": 13, "rid": "8c0257f7-7ef3-471d-afa5-adb52eee5fea", "t": 3}}
Bad Request: /v1/revision/
../usr/local/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1606: RuntimeWarning: DateTimeField Diff.created received a naive datetime (2024-09-07 00:00:00) while time zone support is active.
  warnings.warn(
{"Timestamp": 1733505866053496320, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/diff/", "uid": "", "rid": "5881fe1a-9eab-4c8b-b64c-ac125e9075f0", "t": 12}}
{"Timestamp": 1733505866056496640, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/diff/", "uid": "", "rid": "9192da07-ae83-4453-a241-25f53e087b9b", "t": 2}}
.{"Timestamp": 1733505866073426176, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/diff/", "uid": "", "rid": "1b5668c5-39b9-4d74-8446-e0f8144428e0", "t": 14}}
{"Timestamp": 1733505866077411584, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/diff/", "uid": "", "rid": "61bbcbf1-ede6-4b87-bd73-8deffc8bfaee", "t": 3}}
.{"Timestamp": 1733505866088632576, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/diff/", "uid": "", "rid": "c76ec8f2-0361-46cc-a239-1b6606af146d", "t": 8}}
.{"Timestamp": 1733505866100463360, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/diff/", "uid": "", "rid": "d97cd781-1f74-4317-8983-0cdb0551d7c7", "t": 9}}
{"Timestamp": 1733505866109636096, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/diff/", "uid": "", "rid": "02a9d0f5-c4dc-4e7b-91ac-c507b38419af", "t": 8}}
.security.W008: Your SECURE_SSL_REDIRECT setting is not set to True. Unless your site should be available over both SSL and non-SSL connections, you may want to either set this setting True or configure a load balancer or reverse-proxy server to redirect all connections to HTTPS.
security.W012: SESSION_COOKIE_SECURE is not set to True. Using a secure-only session cookie makes it more difficult for network traffic sniffers to hijack user sessions.
security.W004: You have not set a value for the SECURE_HSTS_SECONDS setting. If your entire site is served only over SSL, you may want to consider setting a value and enabling HTTP Strict Transport Security. Be sure to read the documentation first; enabling HSTS carelessly can cause serious, irreversible problems.
security.W016: You have 'django.middleware.csrf.CsrfViewMiddleware' in your MIDDLEWARE, but you have not set CSRF_COOKIE_SECURE to True. Using a secure-only CSRF cookie makes it more difficult for network traffic sniffers to steal the CSRF token.
{"Timestamp": 1733505866127359232, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/__heartbeat__", "uid": "", "rid": "02a9d0f5-c4dc-4e7b-91ac-c507b38419af"}}
.{"Timestamp": 1733505866136995584, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/__heartbeat__", "uid": "", "rid": "02a9d0f5-c4dc-4e7b-91ac-c507b38419af"}}
.{"Timestamp": 1733505866138610688, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/__lbheartbeat__", "uid": "", "rid": "02a9d0f5-c4dc-4e7b-91ac-c507b38419af"}}
.{"Timestamp": 1733505866140236544, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/__version__", "uid": "", "rid": "02a9d0f5-c4dc-4e7b-91ac-c507b38419af"}}
./usr/local/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Revision.created received a naive datetime (2010-01-01 10:00:00) while time zone support is active.
  warnings.warn(
/usr/local/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Revision.updated received a naive datetime (2010-01-01 10:00:00) while time zone support is active.
  warnings.warn(
/usr/local/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Revision.created received a naive datetime (2000-01-01 10:00:00) while time zone support is active.
  warnings.warn(
/usr/local/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Revision.updated received a naive datetime (2000-01-01 10:00:00) while time zone support is active.
  warnings.warn(
{"Timestamp": 1733505866160433920, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/issues/repo_slug/", "uid": "", "rid": "7a1865c1-de31-4a8e-bbeb-3d2e7073b3ac", "t": 6}}
./usr/local/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Revision.created received a naive datetime (2000-01-01 00:00:00) while time zone support is active.
  warnings.warn(
/usr/local/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Revision.created received a naive datetime (2000-01-03 00:00:00) while time zone support is active.
  warnings.warn(
{"Timestamp": 1733505866179574272, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/issues/repo_slug/", "uid": "", "rid": "5e960747-6278-4931-b830-2f258037aac2", "t": 12}}
./usr/local/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Revision.created received a naive datetime (1998-12-31 00:00:00) while time zone support is active.
  warnings.warn(
/usr/local/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Revision.created received a naive datetime (1999-01-02 00:00:00) while time zone support is active.
  warnings.warn(
{"Timestamp": 1733505866189040384, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/issues/repo_slug/", "uid": "", "rid": "10a573c6-a450-4216-b051-2fc89cfa24dd", "t": 3}}
./usr/local/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Revision.created received a naive datetime (2009-12-31 00:00:00) while time zone support is active.
  warnings.warn(
/usr/local/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1665: RuntimeWarning: DateTimeField Revision.created received a naive datetime (2010-01-02 00:00:00) while time zone support is active.
  warnings.warn(
{"Timestamp": 1733505866200409344, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/issues/repo_slug/", "uid": "", "rid": "d3aa3c04-78e1-4e55-9711-2f633f57874d", "t": 5}}
.{"Timestamp": 1733505866215178752, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/issues/repo_slug/", "uid": "", "rid": "caeafcaf-0829-479a-9088-305709dcad26", "t": 6}}
.{"Timestamp": 1733505866223467264, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/issues/repo_slug/", "uid": "", "rid": "e2a0b9d6-4af6-44f3-a4f6-73af8059824a", "t": 2}}
.{"Timestamp": 1733505866231004160, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/issues/no/", "uid": "", "rid": "031d2bf0-1db1-44de-be50-97a2384f73fe", "t": 1}}
Bad Request: /v1/issues/no/
..{"Timestamp": 1733505866270076928, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/repository/", "uid": "", "rid": "c9a29c35-dd06-46e1-9fba-9efff3ca04c1", "t": 2}}
..{"Timestamp": 1733505866441292288, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/check/myrepo-try/analyzer-X/check-1/", "uid": "", "rid": "991b1ab9-d16e-4f87-badb-7386460d8405", "t": 77}}
./usr/local/lib/python3.12/site-packages/django/db/models/fields/__init__.py:1606: RuntimeWarning: DateTimeField Revision.created received a naive datetime (2024-09-07 00:00:00) while time zone support is active.
  warnings.warn(
{"Timestamp": 1733505866559212800, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v1/check/stats/", "uid": "", "rid": "da0e16f6-6abe-4e61-a2a2-d1447fb67828", "t": 9}}
.{"Timestamp": 1733505866589214720, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v2/diff/2/issues/closed/", "uid": "", "rid": "fd1bd633-479f-4437-9ac6-d1641070aaff", "t": 6}}
.{"Timestamp": 1733505866601104896, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 3, "Pid": 2832, "Fields": {"errno": 500, "agent": "", "lang": "", "method": "GET", "path": "/v2/diff/1/issues/closed/", "uid": "", "rid": "e33af877-9c3f-478f-84e9-151ee04c6cb1", "t": 2, "msg": "No previous diff was found to compare issues"}}
No previous diff was found to compare issues: /v2/diff/1/issues/closed/
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/views/decorators/csrf.py", line 65, in _view_wrapper
    return view_func(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/views/generic/base.py", line 104, in view
    return self.dispatch(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/usr/local/lib/python3.12/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/usr/local/lib/python3.12/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rest_framework/generics.py", line 203, in get
    return self.list(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rest_framework/mixins.py", line 38, in list
    queryset = self.filter_queryset(self.get_queryset())
                                    ^^^^^^^^^^^^^^^^^^^
  File "/src/backend/code_review_backend/issues/v2/api.py", line 68, in get_queryset
    return getattr(self, f"{self.mode}_issues").filter(**{self.mode: True})
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/src/backend/code_review_backend/issues/v2/api.py", line 108, in closed_issues
    raise BadRequest("No previous diff was found to compare issues")
django.core.exceptions.BadRequest: No previous diff was found to compare issues
.{"Timestamp": 1733505866614090752, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v2/diff/424242/issues/known/", "uid": "", "rid": "7d7a116a-754b-44be-ae83-3cd8507f8b81", "t": 1}}
Not Found: /v2/diff/424242/issues/known/
.{"Timestamp": 1733505866622245632, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v2/diff/2/issues/test/", "uid": "", "rid": "0cc9801d-cb44-4574-9b1b-6c7702170488", "t": 0}}
Bad Request: /v2/diff/2/issues/test/
.{"Timestamp": 1733505866633679360, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v2/diff/2/issues/known/", "uid": "", "rid": "0dad4e73-496d-459a-b659-5c082b9f5b90", "t": 4}}
.{"Timestamp": 1733505866647785984, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v2/diff/3/issues/unresolved/", "uid": "", "rid": "0250bbe1-be1c-460e-8fb4-2fb17e68295e", "t": 5}}
{"Timestamp": 1733505866651629056, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v2/diff/3/issues/known/", "uid": "", "rid": "da083bcf-cfc3-4692-bcba-468f7949cac5", "t": 3}}
{"Timestamp": 1733505866656827392, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v2/diff/3/issues/closed/", "uid": "", "rid": "e47c5126-758a-4658-9b90-44a3e72143c9", "t": 4}}
.{"Timestamp": 1733505866672214784, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 6, "Pid": 2832, "Fields": {"errno": 0, "agent": "", "lang": "", "method": "GET", "path": "/v2/diff/2/issues/unresolved/", "uid": "", "rid": "a980a5a0-60c6-4175-ae2e-1420ecf44b0c", "t": 5}}
.{"Timestamp": 1733505866684002816, "Type": "request.summary", "Logger": "code_review_backend", "Hostname": "effa74dd16af", "EnvVersion": "2.0", "Severity": 3, "Pid": 2832, "Fields": {"errno": 500, "agent": "", "lang": "", "method": "GET", "path": "/v2/diff/1/issues/unresolved/", "uid": "", "rid": "bc9bfad1-6687-4d4d-97af-c706643e9c57", "t": 2, "msg": "No previous diff was found to compare issues"}}
No previous diff was found to compare issues: /v2/diff/1/issues/unresolved/
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/views/decorators/csrf.py", line 65, in _view_wrapper
    return view_func(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/views/generic/base.py", line 104, in view
    return self.dispatch(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/usr/local/lib/python3.12/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/usr/local/lib/python3.12/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rest_framework/generics.py", line 203, in get
    return self.list(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rest_framework/mixins.py", line 38, in list
    queryset = self.filter_queryset(self.get_queryset())
                                    ^^^^^^^^^^^^^^^^^^^
  File "/src/backend/code_review_backend/issues/v2/api.py", line 68, in get_queryset
    return getattr(self, f"{self.mode}_issues").filter(**{self.mode: True})
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/src/backend/code_review_backend/issues/v2/api.py", line 93, in unresolved_issues
    raise BadRequest("No previous diff was found to compare issues")
django.core.exceptions.BadRequest: No previous diff was found to compare issues
.
----------------------------------------------------------------------
Ran 46 tests in 0.943s

OK (expected failures=1)
Destroying test database for alias 'default'...
+ ./manage.py makemigrations --check --noinput --dry-run -v 3
Adding sequence initialization for Repository PK to issues.0015 with PostgreSQL backend
System check identified some issues:

WARNINGS:
?: (dockerflow.health.W001) Unapplied migration admin.0001_initial
?: (dockerflow.health.W001) Unapplied migration admin.0002_logentry_remove_auto_add
?: (dockerflow.health.W001) Unapplied migration admin.0003_logentry_add_action_flag_choices
?: (dockerflow.health.W001) Unapplied migration auth.0001_initial
?: (dockerflow.health.W001) Unapplied migration auth.0002_alter_permission_name_max_length
?: (dockerflow.health.W001) Unapplied migration auth.0003_alter_user_email_max_length
?: (dockerflow.health.W001) Unapplied migration auth.0004_alter_user_username_opts
?: (dockerflow.health.W001) Unapplied migration auth.0005_alter_user_last_login_null
?: (dockerflow.health.W001) Unapplied migration auth.0006_require_contenttypes_0002
?: (dockerflow.health.W001) Unapplied migration auth.0007_alter_validators_add_error_messages
?: (dockerflow.health.W001) Unapplied migration auth.0008_alter_user_username_max_length
?: (dockerflow.health.W001) Unapplied migration auth.0009_alter_user_last_name_max_length
?: (dockerflow.health.W001) Unapplied migration auth.0010_alter_group_name_max_length
?: (dockerflow.health.W001) Unapplied migration auth.0011_update_proxy_permissions
?: (dockerflow.health.W001) Unapplied migration auth.0012_alter_user_first_name_max_length
?: (dockerflow.health.W001) Unapplied migration contenttypes.0001_initial
?: (dockerflow.health.W001) Unapplied migration contenttypes.0002_remove_content_type_name
?: (dockerflow.health.W001) Unapplied migration issues.0001_initial
?: (dockerflow.health.W001) Unapplied migration issues.0002_compare_issues
?: (dockerflow.health.W001) Unapplied migration issues.0003_diff_repository
?: (dockerflow.health.W001) Unapplied migration issues.0004_issue_in_patch
?: (dockerflow.health.W001) Unapplied migration issues.0005_rename_check_issue_analyzer_check
?: (dockerflow.health.W001) Unapplied migration issues.0006_issuelink_initial
?: (dockerflow.health.W001) Unapplied migration issues.0007_issuelink_swap
?: (dockerflow.health.W001) Unapplied migration issues.0008_revision_base_head_references
?: (dockerflow.health.W001) Unapplied migration issues.0009_revision_optional_phab_references
?: (dockerflow.health.W001) Unapplied migration issues.0010_alter_revision_id
?: (dockerflow.health.W001) Unapplied migration issues.0011_indexes_revision_issue_path
?: (dockerflow.health.W001) Unapplied migration issues.0012_move_issues_attributes_part_1
?: (dockerflow.health.W001) Unapplied migration issues.0013_move_issues_attributes_part_2
?: (dockerflow.health.W001) Unapplied migration issues.0014_unique_hash
?: (dockerflow.health.W001) Unapplied migration issues.0015_remove_repository_phid_alter_repository_id
?: (dockerflow.health.W001) Unapplied migration sessions.0001_initial
No changes detected
[taskcluster 2024-12-06T17:24:32.412Z]    Exit Code: 0
[taskcluster 2024-12-06T17:24:32.412Z]    User Time: 47.008ms
[taskcluster 2024-12-06T17:24:32.412Z]  Kernel Time: 51.485ms
[taskcluster 2024-12-06T17:24:32.412Z]    Wall Time: 1m30.396651686s
[taskcluster 2024-12-06T17:24:32.412Z]       Result: SUCCEEDED
[taskcluster 2024-12-06T17:24:32.412Z] === Task Finished ===
[taskcluster 2024-12-06T17:24:32.412Z] Task Duration: 1m30.397066824s
[taskcluster 2024-12-06T17:24:32.608Z] Uploading link artifact public/logs/live.log to artifact public/logs/live_backing.log with expiry 2025-12-06T17:58:24.443Z